Kris Maglione
1dcfc0aab6
Bug 1445026: Don't try to decode a binary hash blob as UTF-8. r=rpl
...
MozReview-Commit-ID: 91QNBYVQgQU
2018-03-12 14:18:43 -07:00
Kris Maglione
f373de248e
Bug 1420485: Follow-up: Remove unnecessary single-use stringToCryptoHash function. r=me
...
MozReview-Commit-ID: H1tPnsN0v2J
2018-03-11 22:25:56 -07:00
Bobby Holley
d55d51ea43
Bug 1438974 - Fix WebExtensions to block layout for pending sheets. r=kmag
...
This fixes a failure in test_ext_contentScripts_register.js introduced
by async parsing.
MozReview-Commit-ID: JViFhpDX2k1
2018-02-28 10:43:13 -08:00
Florian Quèze
f1a55f73f8
Bug 1440284 - change this.EXPORTED_SYMBOLS back to var EXPORTED_SYMBOLS in JS modules, r=mccr8.
2018-02-23 20:50:01 +01:00
Ciure Andrei
a5018eab35
Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE
2018-02-23 00:03:06 +02:00
Boris Zbarsky
e59f740ee6
Bug 1437921 part 2. Switch document_idle to use the documentReadyForIdle promise. r=kmag
...
MozReview-Commit-ID: 9cJ1cGuMzBJ
2018-02-22 16:55:40 -05:00
Luca Greco
de04e8d2fa
Bug 1435100 - Ensure preloaded css and script caches are cleared when a WebExtension is shutting down. r=mixedpuppy
...
MozReview-Commit-ID: IHK7hBYVLMj
2018-02-21 12:53:56 +01:00
Andrew McCreight
272cee1e65
Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
...
This patch was autogenerated by my decomponents.py
It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.
It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.
It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)
MozReview-Commit-ID: DeSHcClQ7cG
2018-02-06 09:36:57 -08:00
Luca Greco
2d6facde38
Bug 1420485 - Reduce memory usage related to the tabs.insertCSS cssCode urls. r=mixedpuppy
...
This patch introduces a cache of blob urls which are related to the cssCode
injected by the extensions using tabs.insertCSS, which aims to reduce the
amount of memory used by the extensions to store the cssCode injected
into the tabs and their subframes in the content child process.
The generated Blob URL are associated to the extension principal,
so that it is easier to identify in the about:memory reports
which is extension that is using the cached data.
MozReview-Commit-ID: ERhR5nmVMqY
2017-11-24 19:17:33 +01:00
Kris Maglione
0bb74efdf1
Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
...
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm
MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Cosmin Sabou
f09d6d985d
Backed out 3 changesets (bug 1431533) for Android mochitest failures on testEventDispatcher on a CLOSED TREE
...
Backed out changeset a1eca62826a1 (bug 1431533 )
Backed out changeset 34c999fa006b (bug 1431533 )
Backed out changeset e2674287e57f (bug 1431533 )
2018-01-30 07:17:48 +02:00
Kris Maglione
fd67f090b2
Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
...
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm
MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Brindusan Cristian
483ba301cb
Backed out 2 changesets (bug 1431533) for ESlint failures on a CLOSED TREE
...
Backed out changeset 6e56f4c8843e (bug 1431533 )
Backed out changeset 12fc4dee861c (bug 1431533 )
2018-01-30 02:32:43 +02:00
Kris Maglione
683a97d172
Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
...
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm
MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Kris Maglione
a96e1007ac
Bug 1323845: Part 2c - Lazy init API global only when APIs are first loaded. r=aswan
...
MozReview-Commit-ID: B1bbiM0j5gT
2018-01-09 16:07:45 -08:00
Kris Maglione
2898ad39b0
Bug 1323845: Part 2b - Support separate schema roots for each API manager. r=aswan
...
MozReview-Commit-ID: 61LhYiIKVTH
2017-12-16 14:51:10 -06:00
Kris Maglione
3d9e837be9
Bug 1429567: Add more detailed add-on info to sandbox names. r=zombie
...
MozReview-Commit-ID: DMs8dd49j03
2018-01-12 13:21:03 -08:00
Kris Maglione
c8ea1d4273
Bug 1421459: Update to ESLint 4 "indent" rule. r=aswan
...
MozReview-Commit-ID: LxLDWlsIlSk
2017-11-28 14:13:59 -08:00
Shane Caraveo
460fc01e51
Bug 1419880 first round of TODO/FIXME comment updates, r=mixedpuppy
...
MozReview-Commit-ID: 6GsqWSBKB2d
2017-11-22 11:54:07 -08:00
Luca Greco
c5d2be90cc
Bug 1410415 - Set a sandboxName on the WebExtensions Content Script sandboxes. r=mixedpuppy
...
MozReview-Commit-ID: aIcayH9TYd
2017-10-20 15:35:29 +02:00
Luca Greco
aa000f63e9
Bug 1295660 - Content Scripts should be able to make requests that looks as coming from the webpage. r=mixedpuppy
...
MozReview-Commit-ID: 8I88vt2YMye
2017-06-06 18:14:49 +02:00
Kris Maglione
05bb7a7ee2
Bug 1403369: Correctly handle content-side errors in tabs.executeScript(). r=zombie
...
MozReview-Commit-ID: CPRV9PvWe9e
2017-09-26 15:33:11 -07:00
Kris Maglione
89ccbf3bf9
Bug 1379148: Part 3 - Inject scripts synchronously if they're already available. r=mixedpuppy
...
MozReview-Commit-ID: J6vheuxsqJR
2017-09-20 17:00:44 -07:00
Kris Maglione
a25f099321
Bug 1379148: Part 2 - Don't block script-created parsers when executing content scripts. r=mixedpuppy
...
MozReview-Commit-ID: GsqsaOVob4B
2017-09-20 16:13:03 -07:00
Tomislav Jovanovic
2eda2f10a8
Bug 1394348 - Fix document_idle run_at timing r=kmag
...
MozReview-Commit-ID: FBPlw6CiUE2
2017-09-08 00:36:50 +02:00
Kris Maglione
0fb6b2e73c
Bug 1388215: Part 3 - Use JIT-friendly defineLazy*Getters methods when defining many lazy imports. r=florian
...
MozReview-Commit-ID: APoFwUhDFdj
2017-08-09 13:03:36 -07:00
Kris Maglione
7a5899b259
Bug 1386937: Fix typo in initialization check. r=trivial
...
MozReview-Commit-ID: 7MD79wChHyG
2017-08-02 22:01:58 -07:00
Bob Silverberg
340fefcf08
Bug 1356323 - Add telemetry for time spent injecting content scripts, r=bsmedberg,kmag
...
MozReview-Commit-ID: Aa0gah03QnN
2017-05-02 09:27:38 -04:00
Kris Maglione
f9ee4dc5f2
Bug 1368102: Part 7 - Remove ScriptMatcher and use WebExtensionConentScript directly. r=mixedpuppy
...
MozReview-Commit-ID: 5upkXMiivBn
2017-06-04 13:29:03 -07:00
Kris Maglione
861919618a
Bug 1368102: Part 4 - Use WebExtensionContentScript to match content scripts. r=mixedpuppy,zombie
...
MozReview-Commit-ID: 1Ga0259WjC
2017-06-03 17:11:08 -07:00
Kris Maglione
56747678e9
Bug 1362623 - Wait for idle callback before executing document_idle content scripts. r=mixedpuppy
...
MozReview-Commit-ID: 6pOrH1lrTV2
2017-05-05 21:17:37 -07:00
Kris Maglione
35ce65b3d6
Bug 1357137: Make sure all content scripts for the same page load into the same sandbox. r=mixedpuppy
...
MozReview-Commit-ID: xB8kZ2KZdz
2017-04-17 10:24:43 -07:00
Kris Maglione
e69c789ec0
Bug 1317697: Split extension page child and content script child code as much as possible. r=mixedpuppy
...
MozReview-Commit-ID: 4lKFqoJHVFb
2017-04-14 16:57:34 -07:00
Kris Maglione
bdb8ae3dfd
Bug 1317697: Split ExtensionContent.jsm into a stub process script. r=mixedpuppy
...
MozReview-Commit-ID: 4vn0ERZiBQd
2017-04-14 17:00:51 -07:00
Kris Maglione
bb59598fb0
Bug 1317697: Lazily initialize Schemas.jsm. r=mixedpuppy
...
MozReview-Commit-ID: 83pKM6lLsra
2017-04-06 20:14:24 -07:00
Florian Queze
d3c36892fa
Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws.
2017-04-14 21:51:38 +02:00
Sebastian Hengst
42670ceca0
Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout
2017-04-14 23:39:22 +02:00
Florian Queze
9b4f73599f
Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws.
2017-04-14 21:51:38 +02:00
Kris Maglione
e6a8ac0beb
Bug 1355120: Get rid of top-level window ID tracking. r=aswan
...
MozReview-Commit-ID: y7DzMxXBot
2017-04-12 14:12:22 -07:00
Tomislav Jovanovic
06b6ba54d3
Bug 1328758 - Better error messages for tabs.executeScript r=kmag
...
MozReview-Commit-ID: PQhltZVepj
2017-04-02 01:05:37 +02:00
Kris Maglione
9e1d79362b
Bug 1350522: Part 5 - Remove registerSchemaAPI(). r=aswan
...
MozReview-Commit-ID: 5yK2wUms86G
2017-03-25 13:59:14 -07:00
Kris Maglione
dccaa03b3d
Bug 1350522: Part 1 - Allow lazily loading and instantiating API modules. r=aswan
...
MozReview-Commit-ID: 7ETOJL6ERkg
2017-03-31 17:16:39 -07:00
Andrew Swan
b96180cff0
Bug 1197420 Part 4 Apply dynamic permission changes r=kmag
...
MozReview-Commit-ID: 6TdcUv1fHPh
2017-03-23 17:28:52 -07:00
Sebastian Hengst
f7e31023c0
Backed out changeset f4fbd8e60288 (bug 1197420)
2017-03-25 17:39:34 +01:00
Andrew Swan
dd2572ae7d
Bug 1197420 Part 4 Apply dynamic permission changes r=kmag
...
MozReview-Commit-ID: 6TdcUv1fHPh
2017-03-23 17:28:52 -07:00
Phil Ringnalda
bb0cc6a131
Backed out 5 changesets (bug 1197420) for test_ext_permissions.js and test_chrome_ext_permissions.html timeouts on Fennec
...
CLOSED TREE
Backed out changeset 8a0125e00903 (bug 1197420)
Backed out changeset 925e3a9499ee (bug 1197420)
Backed out changeset 46e135035f10 (bug 1197420)
Backed out changeset 440bab141509 (bug 1197420)
Backed out changeset 3e690bbe8b5a (bug 1197420)
2017-03-24 20:43:24 -07:00
Andrew Swan
43dbe20442
Bug 1197420 Part 4 Apply dynamic permission changes r=kmag
...
MozReview-Commit-ID: 6TdcUv1fHPh
2017-03-23 17:28:52 -07:00
Sebastian Hengst
07e3b9be93
Backed out changeset cb352ddee812 (bug 1197420)
2017-03-24 20:56:05 +01:00
Andrew Swan
df98c5adb3
Bug 1197420 Part 4 Apply dynamic permission changes r=kmag
...
MozReview-Commit-ID: 6TdcUv1fHPh
2017-03-23 17:28:52 -07:00
Kris Maglione
0181a1e24c
Bug 1348442: Part 3 - Do not evict cached stylesheets while they're still being used by extant documents. r=aswan
...
There are some optimizations, both existing and under way, that allow us to
share some stylesheet data between documents that they're loaded into. Keeping
cached sheets around as long as they're still in use should be a net memory
savings.
MozReview-Commit-ID: HUZzs6HhuFM
2017-03-18 16:07:58 -07:00