Overview
Comment: | [core] force text/json mimetype in helpers.loadFile |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | core | fx | webext2_fix |
Files: | files | file ages | folders |
SHA3-256: |
ccebd25f43df0aa0481a823183573f14 |
User & Date: | IllusionPerdu on 2017-08-08 18:28:46 |
Original Comment: | [core] force text/json minetype in helpers.loadFile |
Other Links: | branch diff | manifest | tags |
Context
2017-08-08
| ||
19:11 | [core] add inline config for JSHint assuming es6 synthax and some global check-in: b89dc82bc4 user: IllusionPerdu tags: webext2_fix | |
18:28 | [core] force text/json mimetype in helpers.loadFile check-in: ccebd25f43 user: IllusionPerdu tags: core, fx, webext2_fix | |
17:51 | [fx] merge webext2 check-in: 5a4cc905e2 user: IllusionPerdu tags: fx, webext2_fix | |
Changes
Modified gc_core/js/helpers.js from [8fee48eb89] to [92497407e8].
︙ | ︙ | |||
54 55 56 57 58 59 60 61 62 63 64 65 66 67 | } else { // JS bullshit again… necessary for Thunderbird let { Cc, Ci } = require("chrome"); xRequest = Cc["@mozilla.org/xmlextras/xmlhttprequest;1"].createInstance(); xRequest.QueryInterface(Ci.nsIXMLHttpRequest); } xRequest.open('GET', spf, false); // 3rd arg is false for synchronous, sync is acceptable in workers xRequest.send(); return xRequest.responseText; } catch (e) { this.logerror(e); return null; } | > | 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | } else { // JS bullshit again… necessary for Thunderbird let { Cc, Ci } = require("chrome"); xRequest = Cc["@mozilla.org/xmlextras/xmlhttprequest;1"].createInstance(); xRequest.QueryInterface(Ci.nsIXMLHttpRequest); } xRequest.open('GET', spf, false); // 3rd arg is false for synchronous, sync is acceptable in workers xRequest.overrideMimeType('text/json'); xRequest.send(); return xRequest.responseText; } catch (e) { this.logerror(e); return null; } |
︙ | ︙ |