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
Kris Maglione
7553f01ab3
Bug 1348442: Part 2c - Refactor Script class into ES6 class. r=aswan
...
MozReview-Commit-ID: Dtci1mfQts0
2017-03-18 15:19:29 -07:00
Kris Maglione
d06b5048db
Bug 1348442: Part 2b - Add getWinUtils helper. r=aswan
...
MozReview-Commit-ID: 9vvCbYovyoN
2017-03-18 15:16:16 -07:00
Kris Maglione
c97f45a8ff
Bug 1348442: Part 2a - Asynchronously load and cache content script CSS. r=aswan
...
MozReview-Commit-ID: 1BzLNbdXMfU
2017-03-23 18:51:38 -07:00
Tomislav Jovanovic
d4b3c25736
Bug 1339559 - Identify script that resulted in non-structured-clonable data r=kmag
...
MozReview-Commit-ID: AURB4Qpwimh
2017-03-13 09:04:45 +01:00
Kris Maglione
c94ce68add
Bug 1333990: Part 3e - Add tests for content script cache eviction. r=aswan,billm
...
MozReview-Commit-ID: 6SRI8xTuZk5
2017-03-11 20:17:36 -08:00
Kris Maglione
4c52b3f8db
Bug 1333990: Part 3d - Split observe() method to fix complexity warnings. r=aswan
...
MozReview-Commit-ID: 5ACOf2X5Z7I
2017-03-10 23:33:06 -08:00
Kris Maglione
f13f0b4436
Bug 1333990: Part 3c - Evict cached content scripts after a timeout and on memory-pressure. r=aswan,billm
...
This change automatically evicts content scripts 5 minutes after their last
use, and flushes the entire cache whenever a memory-pressure event is
received.
In the case of memory-pressure events other than heap-minimize, we only evict
scripts that have been in the cache for longer than 3 seconds (which is a
fairly arbitrary number) in order to prevent pre-loads from being evicted and
then immediately re-loaded.
MozReview-Commit-ID: LCXkI9qVMxS
2017-03-10 20:11:18 -08:00
Kris Maglione
572c355699
Bug 1333990: Part 3b - Preload matching content scripts when opening document channels. r=aswan,billm
...
This uses the http-on-opening-request observer that's dispatched in the child
process to begin preloading matching content scripts as early in the load
cycle as possible. Ideally we would use the network predictor for this, but
most of its prediction work happens in the parent process, and there are no
simple ways for us to hook into it.
This currently does not do any pre-loading in the parent process, mainly
because there isn't a good way to distinguish top-level document loads that
are happening directly in the parent versus those that are being proxied from
the child.
MozReview-Commit-ID: dIQW68HtxZ
2017-03-10 21:01:52 -08:00
Kris Maglione
7f9c816bc2
Bug 1333990: Part 3a - Use async loading and in-memory caching for WebExtension content scripts. r=aswan
...
MozReview-Commit-ID: GcdKDbWcUtu
2017-03-16 18:45:22 -07:00
Kris Maglione
418e10ee90
Bug 1314361 - Part 4: Stop setting addonId origin attribute. r=billm
2016-11-04 18:22:45 -07:00
Kris Maglione
be885c3aa9
Bug 1314361 - Part 2: Stop using addonId origin attribute for permission checks. r=billm
2016-11-04 15:16:50 -07:00
Kris Maglione
4c12719b3a
Bug 1258360: Implement onMessageExternal and onConnectExternal. r=mixedpuppy
...
MozReview-Commit-ID: 7NTrgyWpXbv
2017-02-11 13:28:18 -08:00
Florian Quèze
13cfe1d3f3
Bug 1329182 - remove trailing newURI null parameters in toolkit/, r=jaws.
2017-01-09 20:27:25 +01:00
Tom Schuster
dc5a9c790a
Bug 1310026 - webext: Add cssOrigin option to insertCSS/removeCSS. r=kmag
2017-01-06 16:07:59 +01:00
Tomislav Jovanovic
b90358a078
Bug 1319070 - Match against the principal. r=kmag
...
MozReview-Commit-ID: BB6UfZ6qjKr
2016-11-23 18:46:10 +01:00
Kris Maglione
8758dd16e8
Bug 1318371: Flush jar caches by path rather than creating a nsIFile in the content process. r=billm
...
MozReview-Commit-ID: 4J88w5lxEsP
2016-11-17 20:00:30 -08:00
Phil Ringnalda
a174c917cb
Merge m-c to m-i
...
MozReview-Commit-ID: GwBaSZdoAZK
2016-11-17 20:33:59 -08:00
Kris Maglione
c6d33fa5d9
Bug 1317101 - Part 6: Remove or refactor code that prevents extensions from running in the child process. r=aswan
...
MozReview-Commit-ID: 7v5eIBOKA2v
2016-11-12 17:09:19 -08:00
Wes Kocher
2876e6bba5
Backed out 15 changesets (bug 1317101) for e10s jsreftest failures a=backout CLOSED TREE
...
Backed out changeset 17757ba4c0e8 (bug 1317101)
Backed out changeset 61f8a4084bbd (bug 1317101)
Backed out changeset a8cdc81cdcce (bug 1317101)
Backed out changeset e06d269a5d4f (bug 1317101)
Backed out changeset 1e1bfb578dcd (bug 1317101)
Backed out changeset 0f8144296a9d (bug 1317101)
Backed out changeset b7892d3fb0ca (bug 1317101)
Backed out changeset 039d63d5fef7 (bug 1317101)
Backed out changeset ef7e061b37bf (bug 1317101)
Backed out changeset af7b81d7a5cc (bug 1317101)
Backed out changeset 225ad2535585 (bug 1317101)
Backed out changeset b0521588011d (bug 1317101)
Backed out changeset 07321664430a (bug 1317101)
Backed out changeset 47d283897283 (bug 1317101)
Backed out changeset ffc63be3557c (bug 1317101)
2016-11-16 16:44:30 -08:00
Kris Maglione
c6eb354cd3
Bug 1317101 - Part 6: Remove or refactor code that prevents extensions from running in the child process. r=aswan
...
MozReview-Commit-ID: 7v5eIBOKA2v
2016-11-12 17:09:19 -08:00
Luca Greco
6a52aa7f33
Bug 1309906 - part1: adapt webext-oop internals for devtools contexts and APIs. r=kmag
...
MozReview-Commit-ID: E0gxV271N31
2016-11-14 21:38:20 +01:00
Tomislav Jovanovic
e7e303ee0e
bug 1310331 - implement matchAboutBlank for tabs.executeScript r=kmag
...
MozReview-Commit-ID: ApuakyrctzD
2016-11-03 11:41:21 +01:00
Kris Maglione
92059c8fa9
Bug 1316780: Part 1 - Proxy extension events between the parent and child process. r=aswan
...
MozReview-Commit-ID: 6820Fzoks8n
2016-11-10 18:39:49 -08:00
Kris Maglione
e80af36c5a
Bug 1316396: Part 2 - Rename contexts to make it clearer how and where they're used. r=aswan
...
MozReview-Commit-ID: 25oSbulhCmX
2016-11-09 12:08:42 -08:00
Kris Maglione
d25b4ecf0f
Bug 1316396: Part 1 - Reorganize parent, child, common, and test code into more appropriate modules. r=aswan
...
MozReview-Commit-ID: 5WMt69GoN3K
2016-11-10 12:35:22 -08:00
Kris Maglione
8efd30c89e
Bug 1312690: Add some stupid microoptimizations. r=aswan
...
MozReview-Commit-ID: 4qoNuG2k0KS
2016-11-01 16:56:21 -07:00
Kris Maglione
feb1c37e6d
Bug 1312690: Remove now-useless .matches() call from tryInject. r=aswan
...
MozReview-Commit-ID: 9EVWJFSe1tU
2016-11-01 16:53:55 -07:00
Kris Maglione
4125c57411
Bug 1312690: Create content script sandboxes in same zone as content window. r=aswan
...
MozReview-Commit-ID: K44jMuVfhz4
2016-10-31 12:46:39 -07:00
Kris Maglione
07d3973769
Bug 1312690: Load content scripts asynchronously when possible. r=aswan
...
MozReview-Commit-ID: BzpZA4stbCI
2016-11-02 13:57:19 -07:00
Kris Maglione
bec1b361f5
Bug 1312690: Lazily initialize extension APIs. r=aswan
...
MozReview-Commit-ID: 2ofzT6wPvus
2016-11-02 19:21:04 -07:00
Tomislav Jovanovic
aa0c1e2ea1
bug 1272890 - implement match_about_blank for content scripts r=kmag
...
MozReview-Commit-ID: 3iZLpUw5LF4
2016-10-12 05:48:04 +02:00