Overview
| Comment: | [fx] Use only the Sharedworker (cleanup code in background) |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | fx | webext_sharedworker |
| Files: | files | file ages | folders |
| SHA3-256: |
db25c98bc2d49319935f19df8248e97f |
| User & Date: | IllusionPerdu on 2017-08-10 21:20:31 |
| Other Links: | branch diff | manifest | tags |
Context
|
2017-08-11
| ||
| 06:05 | [fx] some code cleaning + another test check-in: b1dd1ce191 user: olr tags: fx, webext_sharedworker | |
|
2017-08-10
| ||
| 21:20 | [fx] Use only the Sharedworker (cleanup code in background) check-in: db25c98bc2 user: IllusionPerdu tags: fx, webext_sharedworker | |
| 18:25 | [fx] Fix previous commit check-in: 438b74bcdf user: IllusionPerdu tags: fx, webext_sharedworker | |
Changes
Modified gc_lang/fr/webext/background.js from [eb2f1b3278] to [b961377700].
1 2 3 4 5 6 7 8 9 10 11 |
// Background
"use strict";
function showError (e) {
console.error(e.fileName + "\n" + e.name + "\nline: " + e.lineNumber + "\n" + e.message);
}
/*
Worker (separate thread to avoid freezing Firefox)
*/
| | > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
// Background
"use strict";
function showError (e) {
console.error(e.fileName + "\n" + e.name + "\nline: " + e.lineNumber + "\n" + e.message);
}
/*
Worker (separate thread to avoid freezing Firefox)
*/
//let xGCEWorker = new Worker("gce_worker.js");
let xGCESharedWorker = new SharedWorker(browser.extension.getURL("gce_sharedworker.js"));
let xGCEWorker = xGCESharedWorker.port;
xGCEWorker.onmessage = function (e) {
// https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent
try {
switch (e.data[0]) {
case "grammar_errors":
console.log("GRAMMAR ERRORS");
|
| ︙ | ︙ | |||
174 175 176 177 178 179 180 |
type: 'panel', url: browser.extension.getURL("panel/conjugueur.html"), top: top, left: left, width: width, height: height,
});
browser.windows.update(xWin.id, { top:top, left:left, }); // firefox currently ignores top and left in .create(), so move it here
console.log("Async done");
}
//newwin();
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < | 176 177 178 179 180 181 182 |
type: 'panel', url: browser.extension.getURL("panel/conjugueur.html"), top: top, left: left, width: width, height: height,
});
browser.windows.update(xWin.id, { top:top, left:left, }); // firefox currently ignores top and left in .create(), so move it here
console.log("Async done");
}
//newwin();
|