Grammalecte  Check-in [478b05b29c]

Overview
Comment:[tb] TB don’t need <@mozilla.org/xmlextras/xmlhttprequest;1> anymore: new XMLHttpRequest() should work
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | tb | tbnext
Files: files | file ages | folders
SHA3-256: 478b05b29ca0eec389e8e9672189f8a8db479fd01a8c6c905ab427043ba8a605
User & Date: olr on 2018-03-09 08:33:13
Other Links: branch diff | manifest | tags
Context
2018-03-09
08:39
[tb] customizeToolbar has a new address check-in: 674a31cda9 user: olr tags: tb, tbnext
08:33
[tb] TB don’t need <@mozilla.org/xmlextras/xmlhttprequest;1> anymore: new XMLHttpRequest() should work check-in: 478b05b29c user: olr tags: tb, tbnext
08:28
[tb] new TB API: x-javascript > javascript check-in: 0e232d6b0f user: olr tags: tb, tbnext
Changes

Modified graphspell-js/helpers.js from [b70dea39e2] to [d93f7e0941].

    49     49   
    50     50       loadFile: function (spf) {
    51     51           // load ressources in workers (suggested by Mozilla extensions reviewers)
    52     52           // for more options have a look here: https://gist.github.com/Noitidart/ec1e6b9a593ec7e3efed
    53     53           // if not in workers, use sdk/data.load() instead
    54     54           try {
    55     55               let xRequest;
    56         -            if (typeof XMLHttpRequest !== "undefined") {
    57         -                xRequest = new XMLHttpRequest();
    58         -            } else {
    59         -                // JS sucks again… necessary for Thunderbird
    60         -                let { Cc, Ci } = require("chrome");
    61         -                xRequest = Cc["@mozilla.org/xmlextras/xmlhttprequest;1"].createInstance();
    62         -                xRequest.QueryInterface(Ci.nsIXMLHttpRequest);
    63         -            }
           56  +            xRequest = new XMLHttpRequest();
    64     57               xRequest.open('GET', spf, false); // 3rd arg is false for synchronous, sync is acceptable in workers
    65     58               xRequest.overrideMimeType('text/json');
    66     59               xRequest.send();
    67     60               return xRequest.responseText;
    68     61           }
    69     62           catch (e) {
    70     63               this.logerror(e);