[Bug 25346] Geo lookup causes mime type errors in Chrome
https://bugzilla.wikimedia.org/show_bug.cgi?id=25346 Ryan Kaldari rkald...@wikimedia.org changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Comment #6 from Ryan Kaldari rkald...@wikimedia.org 2010-10-01 17:50:26 UTC --- fixed by Mark B. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 25346] Geo lookup causes mime type errors in Chrome
https://bugzilla.wikimedia.org/show_bug.cgi?id=25346 --- Comment #5 from Roan Kattouw roan.katt...@gmail.com 2010-09-29 15:21:22 UTC --- (In reply to comment #4) ticket collision: It's not JSON though is it ? I mean it has Geo = that makes it JS, much like JSONP is just javascript. application/json should only be used icw. XMLHTTPRequest objects I think. This is the right application, comment #2 and comment #3 are wrong. text/javascript is the MIME type for executable JS. JSONP is really just executable JS that does something (call a function or set a variable) with inlined JSON data. application/json is the MIME type for data encoded as JSON. By itself, this is valid JS, but executing it doesn't do much. This is used by XHR (i.e. normal same-domain AJAX) to grab JSON data that is then parsed (not executed!). -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 25346] Geo lookup causes mime type errors in Chrome
https://bugzilla.wikimedia.org/show_bug.cgi?id=25346 Roan Kattouw roan.katt...@gmail.com changed: What|Removed |Added CC||m...@nedworks.org, ||roan.katt...@gmail.com --- Comment #1 from Roan Kattouw roan.katt...@gmail.com 2010-09-28 13:01:53 UTC --- CC Mark, who setup geoiplookup IIRC. The problem is that geoiplookup is returning a Content-Type: application/json header; this should be text/javascript . -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 25346] Geo lookup causes mime type errors in Chrome
https://bugzilla.wikimedia.org/show_bug.cgi?id=25346 --- Comment #2 from Tomasz Finc tf...@wikimedia.org 2010-09-28 16:58:52 UTC --- What's interesting is the we changed it to application/json because that's what Safari was expecting. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 25346] Geo lookup causes mime type errors in Chrome
https://bugzilla.wikimedia.org/show_bug.cgi?id=25346 --- Comment #3 from Ryan Kaldari rkald...@wikimedia.org 2010-09-28 18:32:28 UTC --- application/json is the correct MIME type for json (and indeed it seems that Chrome is the only browser complaining in this case). However, the geoIP JSON is not technically well-formed JSON, so this may be why Chrome is complaining. The geoIP JSON may not constitute well-formed Javascript either, so changing it to text/javascript may cause Safari to complain (as Safari seems to be sensitive to this). I guess what we need to do is test both MIME types in both browsers and see what we get. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 25346] Geo lookup causes mime type errors in Chrome
https://bugzilla.wikimedia.org/show_bug.cgi?id=25346 Derk-Jan Hartman hart...@videolan.org changed: What|Removed |Added CC||hart...@videolan.org --- Comment #4 from Derk-Jan Hartman hart...@videolan.org 2010-09-28 18:43:37 UTC --- ticket collision: It's not JSON though is it ? I mean it has Geo = that makes it JS, much like JSONP is just javascript. application/json should only be used icw. XMLHTTPRequest objects I think. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l