Sebastian Hengst
f58038d357
Backed out changeset 9859873385bc (bug 1302702)
2017-05-17 20:01:26 +02:00
Luca Greco
8ba55350c9
Bug 1302702 - Remove from ext-backgroundPage any code that uses the AddonManager object. r=kmag
...
The background page do not need to use the AddonManager to set its preferred debugging global
anymore (and it would not be able to use it from the extension child process).
MozReview-Commit-ID: 2IAxvCjDKvl
2017-03-21 16:28:15 +01:00
Kris Maglione
5ce24cde06
Bug 1356826: Wait for startup to finish before shutting down. r=me
...
MozReview-Commit-ID: LksftmZHI8H
2017-05-10 20:26:01 -07:00
Florian Quèze
ff53eb9a63
Bug 1353542 - massive script-generated patch converting Task.async and Task.spawn calls, and generators clearly identifiable as tasks, rs=Mossop.
2017-05-12 14:42:39 +02:00
Kris Maglione
127de18edd
Bug 1353078: Fix broken null check. r=trivial
...
MozReview-Commit-ID: 6YlqhNnk3Ju
2017-04-06 13:32:31 -07:00
Kris Maglione
ef300362e4
Bug 1350522: Part 6 - Cleanup per-api-instance state logic. r=aswan
...
MozReview-Commit-ID: 5ixBA34fvFf
2017-03-25 11:36:56 -07:00
Kris Maglione
884009911d
Bug 1350522: Part 2 - Convert toolkit APIs to lazy loading. r=aswan
...
MozReview-Commit-ID: 8TbTIM4WX2d
2017-03-31 19:36:00 -07:00
Luca Greco
ef31954ee6
Bug 1291737 - Added a new helper to create windowless extension pages. r=kmag
...
MozReview-Commit-ID: CqpWgFGmJAt
2017-01-18 15:14:53 +01:00
Kris Maglione
fe512e6f1b
Bug 1320395: Part 3 - Run WebExtensions in their own process type. r=billm,bobowen
...
MozReview-Commit-ID: FZ4f1Lda5vh
2017-01-12 14:11:47 -08:00
Kris Maglione
7eab9e39f9
Bug 1319452: Part 1 - Load background page in private browsing mode during permanent private browsing. r=billm
...
MozReview-Commit-ID: KXA7xlq8Voc
2016-11-22 12:07:59 -08:00
Kris Maglione
1ec7a0d9b2
Bug 1317101 - Part 7b: Run remote extension background pages in a visible window for testing. r=billm
...
MozReview-Commit-ID: DsgpoYAFKmC
2016-11-12 17:09:39 -08:00
Kris Maglione
e0a987da8a
Bug 1317101 - Part 5: Simply remote view initialization code, and fix some inconsistent handling. r=billm
...
MozReview-Commit-ID: 65BE0oF3rpI
2016-11-12 16:13:21 -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
a9ef8ab9ac
Bug 1317101 - Part 7b: Run remote extension background pages in a visible window for testing. r=billm
...
MozReview-Commit-ID: DsgpoYAFKmC
2016-11-12 17:09:39 -08:00
Kris Maglione
aff12600f8
Bug 1317101 - Part 5: Simply remote view initialization code, and fix some inconsistent handling. r=billm
...
MozReview-Commit-ID: 65BE0oF3rpI
2016-11-12 16:13:21 -08:00
Matthew Wein
65938122a3
Bug 1252871 - Add support for runtime.onInstalled r=aswan
...
MozReview-Commit-ID: 3wDtv0g0BpO
2016-10-19 10:38:29 +01:00
Rob Wu
9a18f5991f
Bug 1287007 - Remove dead code r=billm
...
MozReview-Commit-ID: LtuKY5DjB68
2016-09-06 15:50:50 -07:00
Rob Wu
0b6a21b18a
Bug 1287007 - Use IPC to share viewType, tabId and windowId r=billm
...
Accessing <browser> in ContentChild does not work when extensions run in
a separate process.
MozReview-Commit-ID: EK0aOYeGaZ5
2016-09-06 15:25:10 -07:00
Rob Wu
19ac7136a0
Bug 1287007 - Move extension context initialization to ExtensionContent r=billm
...
This is a simple move of ExtensionContext creation logic to
ExtensionChild.
Before the change, ExtensionContext was initialized as follows:
1. (ext-backgroundPage.js) Create background page
2. (Extension.jsm) document-element-inserted observed.
3. (Extension.jsm) new ExtensionContext + unload observer.
After this commit:
1. (ext-backgroundPage.js) Create background page
2. (ext-backgroundPage.js) emit extension-browser-inserted event
3. (Extension.jsm) Pass global to ExtensionContent + unload listener.
4. (ExtensionContent.jsm) document-element-inserted observed.
5. (ExtensionChild.jsm) new ExtensionContext
The next step is to use frame scripts and synchronize state.
MozReview-Commit-ID: K6mPdq7KQ2T
2016-09-05 23:50:11 -07:00
Rob Wu
b1b009afcb
Bug 1287007 - Move background page API logic to child r=billm
...
MozReview-Commit-ID: iGROahhkhn
2016-09-05 22:34:44 -07:00
Rob Wu
812e170fe8
Bug 1287010 - Make environment of Context explicit. r=billm
...
- Add `envType` to BaseContext.
- Pass an explicit envType to all `registerSchemaAPI` invocations.
- The factories passed to `registerSchemaAPI` will be split up later, so
that content scripts (`content_child`) and addon pages can share
common implementations.
- The factories that implement the addon API will also be split up,
to separate code running in the main process (`addon_parent`) from
code running in a child process (`addon_child`).
- Remove the use of a hardcoded list of `namespaces` from ProxyContext.
Now `envType` is used to specify whether an API should be activated.
MozReview-Commit-ID: Jiff8HIwG92
2016-08-16 15:51:50 -07:00
Kris Maglione
1e9bb5a560
Bug 1296934: Prevent background pages from showing up in global history. r=gabor
...
MozReview-Commit-ID: GRIJwCsfqVB
2016-08-21 12:43:50 -07:00
Rob Wu
6efdd88867
Bug 1295082 - Put Extension in BaseContext r=kmag
...
ExtensionContext in Extension.jsm has |extension| as an instance member,
so use it instead of passing |extension| to registerSchemaAPI's
callback.
And to make sure that this pattern also works in content processes, move
the |extension| member to BaseContext.
MozReview-Commit-ID: BgsGGCPQxJR
2016-08-15 01:04:58 -07:00
Sebastian Hengst
c7a498ffbd
Backed out changeset 0ce1cc39aa3d (bug 1295082) for timing out in test_ext_schemas_api_injection.js. r=backout
2016-08-18 16:47:09 +02:00
Rob Wu
6189daa99f
Bug 1295082 - Put Extension in BaseContext r=kmag
...
ExtensionContext in Extension.jsm has |extension| as an instance member,
so use it instead of passing |extension| to registerSchemaAPI's
callback.
And to make sure that this pattern also works in content processes, move
the |extension| member to BaseContext.
MozReview-Commit-ID: BgsGGCPQxJR
2016-08-15 01:04:58 -07:00
Luca Greco
4b53f08d2d
Bug 1268773 - Notify Addon Listeners when the preferred addon debug global is changed. r=aswan
...
MozReview-Commit-ID: Hn7jb8Kni2J
2016-07-07 16:29:36 +02:00
Kris Maglione
56e8cb638f
Bug 1274775 - Make sure background pages are created with a PresShell. r=billm
...
MozReview-Commit-ID: GLWg5aK47g5
2016-07-24 15:09:07 -07:00
Rob Wu
c0e5bafb4e
Bug 1234677 - Introduce _generated_background_page.html r=billm
...
- Fixes bugzil.la/1234677
- Fixes bugzil.la/1286057
- Fixes bug: the URL failed to load if a query string or reference
fragment was present.
MozReview-Commit-ID: 4oMwI3IS7OX
2016-07-12 13:55:14 -07:00
Rob Wu
84396ee769
Bug 1234677 - Overwrite alert at window init instead of onload r=billm
...
A nice extra effect of this is that it will also work after reloading
the background page (location.reload()) and it should also work for
child frames in background pages.
MozReview-Commit-ID: ErvpzD8d3ow
2016-07-20 01:00:29 -07:00
Iris Hsiao
971255a15c
Backed out changeset 4dd2466573ec (bug 1234677) for Mochitest test_chrome_ext_background_page.html failure
2016-07-20 12:54:00 +08:00
Rob Wu
8a0e6b7a22
Bug 1234677 - Introduce _generated_background_page.html r=billm
...
- Fixes bugzil.la/1234677
- Fixes bugzil.la/1286057
- Fixes bug: the URL failed to load if a query string or reference
fragment was present.
MozReview-Commit-ID: 4oMwI3IS7OX
2016-07-12 13:55:14 -07:00
Kris Maglione
843973aa31
Bug 1279392: [webext] Move API permission definitions to the schemas. r=aswan
...
MozReview-Commit-ID: 8m7wJrAbFwS
2016-06-09 17:44:47 -07:00
Sebastian Hengst
d97f588f03
Backed out changeset a00cf073f5c0 (bug 1279392) for failing mochitest test_ext_contentscript_create_iframe.html at least on Linux x64 opt. r=backout
2016-06-14 13:37:52 +02:00
Kris Maglione
b2a33e3bf1
Bug 1279392: [webext] Move API permission definitions to the schemas. r=aswan
...
MozReview-Commit-ID: 8m7wJrAbFwS
2016-06-09 17:44:47 -07:00
Kris Maglione
403332897f
Bug 1276025: Stop using injectInDocShell to tag docShells with types. r=billm
...
MozReview-Commit-ID: 7h5PI2birY4
2016-06-02 20:53:41 -07:00
Wes Kocher
ef8b093de7
Backed out changeset 99b213f494e1 (bug 1276025) for xpcshell bustage CLOSED TREE
2016-06-07 16:59:20 -07:00
Kris Maglione
3b83db606e
Bug 1276025: Stop using injectInDocShell to tag docShells with types. r=billm
...
MozReview-Commit-ID: 7h5PI2birY4
2016-06-02 20:53:41 -07:00
tofumatt
003a2c58e3
Bug 1203394 - Fix eslint errors in alert() patch. r=Aryx
...
MozReview-Commit-ID: KRUJflBrkxa
2016-04-25 15:16:32 +01:00
tofumatt
3d3559ea74
bug 1203394: alias alert() to console.log() in background scripts r=kmag
...
MozReview-Commit-ID: 65m3yVGQhlQ
***
Add test and fix nitpicks to alert() patch
2016-03-22 12:35:31 +00:00
Bill McCloskey
21d9408694
Bug 1197346 - Rename ExtensionPage to ExtensionContext (r=kmag)
2016-04-23 20:04:29 -07:00
Johann Hofmann
638b91a454
Bug 1005193 - Allow addons to specify a custom global debug context. r=mossop
2016-04-11 08:26:20 +02:00
Carsten "Tomcat" Book
1540c91cb0
Backed out changeset 387bd412040f (bug 1005193) for test failures in Android 4.3 API15+ debug Mochitest Chrome
2016-04-14 11:31:17 +02:00
Johann Hofmann
6e5901b9db
Bug 1005193 - Allow addons to specify a custom global debug context. r=mossop
2016-04-11 08:26:20 +02:00
Kris Maglione
2d83ab587e
Bug 1214955: [webext] Automatically localize all localizable manifest properties. r=billm
...
MozReview-Commit-ID: 2kvYT44NIE8
2016-02-29 19:34:49 -08:00
Kris Maglione
666cee3637
Bug 1248855 - [webext] Add "object-curly-spacing" ESLint rule and auto-fix errors. r=billm
...
MozReview-Commit-ID: BAZ2rRl7eSM
2016-02-16 20:10:00 -08:00
Kris Maglione
1cd215bc66
Bug 1234020: Part 2a - [webext] Return promises from the background page APIs. r=rpl
2016-02-02 19:14:34 -08:00
Kris Maglione
b754ff8f74
Bug 1239822: Part 2a - [webext] Explicitly destroy windowless browsers on unload. r=billm
2016-01-15 13:30:15 -08:00
Kris Maglione
88f27d74fa
Bug 1239884: Follow-up: Fix ESLint error.
2016-01-15 19:49:30 -08:00
Kris Maglione
aed1067884
Bug 1239884: Part 1 - [webext] Don't create an extra API context for background pages. r=billm
2016-01-14 16:23:10 -08:00
Bill McCloskey
f112fccc0f
Bug 1224105 - [webext] Use <browser> element for background page (r=kmag)
2015-12-23 12:29:39 -08:00