Overview
Comment: | [fx] SharedWorker communicate with intermediate iframe to/from webpage |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | fx | webext_sharedworker |
Files: | files | file ages | folders |
SHA3-256: |
4dc627f1b1513c7cd2f6e286b06217b5 |
User & Date: | IllusionPerdu on 2017-08-10 14:23:50 |
Other Links: | branch diff | manifest | tags |
Context
2017-08-10
| ||
15:08 | [fx] Manualy apply change from webext (je me metrise pas les merge de fossil) check-in: 9db066f572 user: IllusionPerdu tags: fx, webext_sharedworker | |
14:23 | [fx] SharedWorker communicate with intermediate iframe to/from webpage check-in: 4dc627f1b1 user: IllusionPerdu tags: fx, webext_sharedworker | |
14:08 | Create new branch named "webext_sharedworker" check-in: 976290fcbe user: IllusionPerdu tags: webext_sharedworker | |
Changes
Added gc_lang/fr/webext/content_scripts/comunicate.html version [5f977884e2].
|
Added gc_lang/fr/webext/content_scripts/comunicate.js version [a57bb48944].
|
Modified gc_lang/fr/webext/content_scripts/modify_page.js from [a5f9d0af95] to [649173c95f].
1 2 3 4 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | - + + - + - - - + + - - - + + - - - - + + + + + + + + - - + + + + + + - + - - - - - - - - - - - - - + - - - - + - - - - - - - - - - + - - - - - - - - - - - + + - - - - - + - - - - + + + - - - + + + - - + - - + - - - - - - + | // Modify page "use strict"; |
︙ |
Modified gc_lang/fr/webext/gce_sharedworker.js from [9a703895dc] to [deea68b2b7].
︙ | |||
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | + + + + + + + + | /* Message Event Object https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent */ let xPort = null; function showError (e) { for (let sParam in e) { console.log(sParam); console.log(e[sParam]); } } onconnect = function(e) { console.log("START CONNECTION"); xPort = e.ports[0]; xPort.onmessage = function (e) { console.log("[Sharedworker] ONMESSAGE"); console.log(e); console.log(e.data[0]); let oParam = e.data[1]; switch (e.data[0]) { case "init": loadGrammarChecker(oParam.sExtensionPath, oParam.sOptions, oParam.sContext); break; |
︙ | |||
100 101 102 103 104 105 106 | 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | - + | case "fullTests": fullTests(); break; case "getListOfTokens": getListOfTokens(oParam.sText); break; default: |
︙ | |||
128 129 130 131 132 133 134 | 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 | - + | oDict = gc_engine.getDictionary(); oTest = new TestGrammarChecking(gc_engine, sExtensionPath+"/grammalecte/fr/tests_data.json"); oLxg = new Lexicographe(oDict); if (sGCOptions !== "") { gc_engine.setOptions(helpers.objectToMap(JSON.parse(sGCOptions))); } oTokenizer = new Tokenizer("fr"); |
︙ |
Modified gc_lang/fr/webext/manifest.json from [1400a7a766] to [fb0ccd7853].
︙ | |||
40 41 42 43 44 45 46 | 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | - + + + | } ], "web_accessible_resources": [ "grammalecte/_dictionaries/French.json", "grammalecte/fr/conj_data.json", "grammalecte/fr/mfsp_data.json", "grammalecte/fr/phonet_data.json", |
︙ |