Differences From Artifact [67f47c2618]:
- File gc_lang/fr/webext/background.js — part of check-in [51a209f202] at 2017-08-04 08:18:42 on branch webext2 — [core][fx] gc engine in a dedicated worker (user: olr, size: 318) [annotate] [blame] [check-ins using]
To Artifact [7ec98c3680]:
- File gc_lang/fr/webext/background.js — part of check-in [1f4195c966] at 2017-08-04 15:41:45 on branch webext2 — [fx][core] initialization in gce_worker.js (user: olr, size: 384) [annotate] [blame] [check-ins using]
1 2 3 4 5 6 7 8 9 10 11 12 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | + + | // Background "use strict"; let xGCEWorker = new Worker("gce_worker.js"); xGCEWorker.postMessage(["init", browser.extension.getURL(".")]); function handleMessage (oRequest, xSender, sendResponse) { console.log(`[background] received: ${oRequest.content}`); sendResponse({response: "response from background script"}); } browser.runtime.onMessage.addListener(handleMessage); |