Grammalecte  Check-in [0e89b6ede9]

Overview
Comment:[fx] WebExt: adaptation to Chrome (browser=chrome)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | fx
Files: files | file ages | folders
SHA3-256: 0e89b6ede9a873d3f27d6bf23520597f37f7ae318753711494676d276e0fcc38
User & Date: olr on 2017-09-26 09:03:31
Other Links: manifest | tags
Context
2017-09-26
10:25
[fx] WebExt: adaptation to Chrome (GC init) check-in: b93b38b03d user: olr tags: trunk, fx
09:03
[fx] WebExt: adaptation to Chrome (browser=chrome) check-in: 0e89b6ede9 user: olr tags: trunk, fx
08:52
[fx] WebExt: adaptation to Chrome (browser=chrome) check-in: 3af265e2d8 user: olr tags: trunk, fx
Changes

Modified gc_lang/fr/webext/background.js from [f7c38c5176] to [be440d6472].

1
2
3
4
5
6
7
8
9
10
11
12

13
14
15
16
17
18
19
1
2
3
4
5
6
7
8
9
10
11

12
13
14
15
16
17
18
19











-
+







// Background 

"use strict";


function showError (e) {
    console.error(e.fileName + "\n" + e.name + "\nline: " + e.lineNumber + "\n" + e.message);
}

// Chrome don’t follow the W3C specification:
// https://browserext.github.io/browserext/
if (typeof(chrome) === "object") {
if (typeof(browser) !== "object") {
    var browser = chrome;
}


/*
    Worker (separate thread to avoid freezing Firefox)
*/

Modified gc_lang/fr/webext/content_scripts/init.js from [b49469f3a7] to [0b754e6438].

12
13
14
15
16
17
18
19

20
21
22
23
24
25
26
12
13
14
15
16
17
18

19
20
21
22
23
24
25
26







-
+








function showError (e) {
    console.error(e.fileName + "\n" + e.name + "\nline: " + e.lineNumber + "\n" + e.message);
}

// Chrome don’t follow the W3C specification:
// https://browserext.github.io/browserext/
if (typeof(chrome) === "object") {
if (typeof(browser) !== "object") {
    var browser = chrome;
}


function createNode (sType, oAttr, oDataset=null) {
    try {
        let xNode = document.createElement(sType);

Modified gc_lang/fr/webext/panel/main.js from [f370e36795] to [9a8dec5f0d].

1
2
3
4
5
6
7
8
9
10
11
12

13
14
15
16
17
18
19
1
2
3
4
5
6
7
8
9
10
11

12
13
14
15
16
17
18
19











-
+







// Main panel

"use strict";


function showError (e) {
    console.error(e.fileName + "\n" + e.name + "\nline: " + e.lineNumber + "\n" + e.message);
}

// Chrome don’t follow the W3C specification:
// https://browserext.github.io/browserext/
if (typeof(chrome) === "object") {
if (typeof(browser) !== "object") {
    var browser = chrome;
}


/*
    Events
*/