Grammalecte  Check-in [cd64de6f5a]

Overview
Comment:[fx] rename communicate
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | fx | webext_sharedworker
Files: files | file ages | folders
SHA3-256: cd64de6f5ab81c52c69647e84ff1361061deb97c2eaf011ee14f49d54a6ca5d5
User & Date: olr on 2017-08-11 07:15:12
Other Links: branch diff | manifest | tags
Context
2017-08-11
07:35
[fx] commited by mistake (not working) check-in: 19934834b3 user: olr tags: fx, webext_sharedworker
07:15
[fx] rename communicate check-in: cd64de6f5a user: olr tags: fx, webext_sharedworker
06:05
[fx] some code cleaning + another test check-in: b1dd1ce191 user: olr tags: fx, webext_sharedworker
Changes

Renamed and modified gc_lang/fr/webext/content_scripts/comunicate.html [5f977884e2] to gc_lang/fr/webext/content_scripts/communicate.html [2013884bde].

1
2
3
4
5
6
<html>
    <head>
        <script src="/content_scripts/comunicate.js"></script>
    </head>
    <body></body>
</html>


|



1
2
3
4
5
6
<html>
    <head>
        <script src="/content_scripts/communicate.js"></script>
    </head>
    <body></body>
</html>

Name change from gc_lang/fr/webext/content_scripts/comunicate.js to gc_lang/fr/webext/content_scripts/communicate.js.

Modified gc_lang/fr/webext/content_scripts/modify_page.js from [6c7b38de44] to [db5cbebcc3].

30
31
32
33
34
35
36
37
38
39
40
41
42
43
44

/*
* Creation d'une iframe pour communiquer entre la page visitée et le Shareworker
*/
var sFrameID = browser.extension.getURL("").split('/')[2];
var xIframe = document.createElement('iframe');
xIframe.id = sFrameID;
xIframe.src = browser.extension.getURL('content_scripts/comunicate.html');
xIframe.hidden = true;
xIframe.onload= function () {
    console.log('[Web] Init protocol de communication');
    //var xFrameContent = xIframe.contentWindow;
    var xFrameContent = document.getElementById(sFrameID).contentWindow;
    xFrameContent.addEventListener("message", receivedMessageFromIframe, false);
    try {







|







30
31
32
33
34
35
36
37
38
39
40
41
42
43
44

/*
* Creation d'une iframe pour communiquer entre la page visitée et le Shareworker
*/
var sFrameID = browser.extension.getURL("").split('/')[2];
var xIframe = document.createElement('iframe');
xIframe.id = sFrameID;
xIframe.src = browser.extension.getURL('content_scripts/communicate.html');
xIframe.hidden = true;
xIframe.onload= function () {
    console.log('[Web] Init protocol de communication');
    //var xFrameContent = xIframe.contentWindow;
    var xFrameContent = document.getElementById(sFrameID).contentWindow;
    xFrameContent.addEventListener("message", receivedMessageFromIframe, false);
    try {

Modified gc_lang/fr/webext/manifest.json from [9c74237e70] to [a125616a8e].

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",
    "grammalecte/fr/tests_data.json",
    "content_scripts/comunicate.html",
    "content_scripts/comunicate.js",
    "img/logo-16.png"
  ],
  "permissions": [
    "activeTab",
    "contextMenus"
  ],
  "chrome_settings_overrides": {







|
|







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",
    "grammalecte/fr/tests_data.json",
    "content_scripts/communicate.html",
    "content_scripts/communicate.js",
    "img/logo-16.png"
  ],
  "permissions": [
    "activeTab",
    "contextMenus"
  ],
  "chrome_settings_overrides": {