Grammalecte  Check-in [4cb15368e7]

Overview
Comment:[fx] cancel code cosmetics
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | fx | comunicate
Files: files | file ages | folders
SHA3-256: 4cb15368e76d37a75491cc56d5ec830e0efc5ca256234a24e0d39389c3128bf8
User & Date: olr on 2020-03-10 08:41:11
Other Links: branch diff | manifest | tags
Context
2020-03-10
08:43
[fx] cancel code cosmetics check-in: bcfa44ecc9 user: olr tags: fx, comunicate
08:41
[fx] cancel code cosmetics check-in: 4cb15368e7 user: olr tags: fx, comunicate
08:33
[fx] cancel code cosmetics check-in: 686c43591b user: olr tags: fx, comunicate
Changes

Modified gc_lang/fr/webext/content_scripts/init.js from [6855746abd] to [5009f6ca62].

17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
    // console can’t display error objects from content scripts
    console.error(e.fileName + "\n" + e.name + "\nline: " + e.lineNumber + "\n" + e.message);
}

// Chrome don’t follow the W3C specification:
// https://browserext.github.io/browserext/
let bChrome = false;
if (typeof browser !== "object") {
    var browser = chrome;
    bChrome = true;
}

/*
function loadImage (sContainerClass, sImagePath) {
    let xRequest = new XMLHttpRequest();







|







17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
    // console can’t display error objects from content scripts
    console.error(e.fileName + "\n" + e.name + "\nline: " + e.lineNumber + "\n" + e.message);
}

// Chrome don’t follow the W3C specification:
// https://browserext.github.io/browserext/
let bChrome = false;
if (typeof(browser) !== "object") {
    var browser = chrome;
    bChrome = true;
}

/*
function loadImage (sContainerClass, sImagePath) {
    let xRequest = new XMLHttpRequest();
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
    xObserver: null,

    sExtensionUrl: null,

    listenRightClick: function () {
        // Node where a right click is done
        // Bug report: https://bugzilla.mozilla.org/show_bug.cgi?id=1325814
        document.addEventListener("contextmenu", function (xEvent) {
            this.xRightClickedNode = xEvent.target;
        }.bind(this), true);
    },

    clearRightClickedNode: function () {
        this.xRightClickedNode = null;
    },







|







58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
    xObserver: null,

    sExtensionUrl: null,

    listenRightClick: function () {
        // Node where a right click is done
        // Bug report: https://bugzilla.mozilla.org/show_bug.cgi?id=1325814
        document.addEventListener('contextmenu', function (xEvent) {
            this.xRightClickedNode = xEvent.target;
        }.bind(this), true);
    },

    clearRightClickedNode: function () {
        this.xRightClickedNode = null;
    },