Grammalecte  Check-in [4808b2cfbd]

Overview
Comment:[fx] WebExt: store node on which a right click is made
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | fx | webext3
Files: files | file ages | folders
SHA3-256: 4808b2cfbd36c8cfcda01ff988781355d91e32e3f360d761312d2ca0265d8014
User & Date: olr on 2017-10-11 09:10:34
Other Links: branch diff | manifest | tags
Context
2017-10-11
09:11
[fx] WebExt: remove shared worker check-in: f8269887a3 user: olr tags: fx, webext3
09:10
[fx] WebExt: store node on which a right click is made check-in: 4808b2cfbd user: olr tags: fx, webext3
08:52
[fx] WebExt: minor changes of main UI check-in: c8cfdeca32 user: olr tags: fx, webext3
Changes

Modified gc_lang/fr/webext/content_scripts/init.js from [3e98d11aad] to [b57bfdbc72].

110
111
112
113
114
115
116










117
118
119
120
121
122
123
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133







+
+
+
+
+
+
+
+
+
+







        }
        catch (e) {
            showError(e);
        }
    }
}


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


/*
    Connexion to the background
*/
let xGrammalectePort = browser.runtime.connect({name: "content-script port"});

xGrammalectePort.onMessage.addListener(function (oMessage) {