Commit graph

36 commits

Author SHA1 Message Date
Kris Maglione
b13ea15e1c Bug 1317697: Remove things from ExtensionUtils that don't belong there. r=mixedpuppy
MozReview-Commit-ID: CTX0TckLqoV

--HG--
extra : rebase_source : ebea9b6f0f17a29d331851a08e025cbd04f4d02b
extra : absorb_source : 70b120f39e9307c4b2ef66d8e776e8b832b4aab8
2017-04-07 13:39:06 -07:00
Florian Queze
37ff4fc7cc Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Sebastian Hengst
a07223d699 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
95d4d20c17 Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Kris Maglione
e6d84db845 Bug 1350522: Part 4 - Convert browser APIs to lazy loading. r=aswan
MozReview-Commit-ID: BQoWF9nHOuF

--HG--
rename : browser/components/extensions/ext-desktop-runtime.js => browser/components/extensions/ext-browser.js
extra : source : 7fd4ade8811856e835506310a57725dbd355c786
extra : histedit_source : c1775902971f858bfaa386977ca8d579c0ce3c61%2C489e3ed33d4c1bb47c3afbe30849b42e83771f48
2017-04-02 11:59:55 -07:00
Tushar Saini (:shatur)
fa1f43e7c6 Bug 1280582 - Implement browser.history.onTitleChanged. r=bsilverberg,mixedpuppy
MozReview-Commit-ID: jzil9lDYnN

--HG--
extra : rebase_source : c7c000a17a1021f46d60ee7bc9d889c11a1bf384
2017-03-08 21:18:19 +05:30
Andrew Swan
30deceecf8 Bug 1203330 Part 1 Fix SingletonEventManager r=kmag
This patch adds the ability to run SingletonEventManager handlers in
different modes: sync, async, raw (no exception handling, arg cloning,
or asynchrony), or asyncWithoutClone. When you call the handler,
you're required to specify which variant you want.

Existing uses of SingletonEventManager are all converted to async calls.
Note that some of them were previously synchronous, but it didn't appear
to be necessary.

Also added a callOnClose for SingletonEventManager when the last listener
is removed.

MozReview-Commit-ID: ATHO97dWf3X

--HG--
extra : rebase_source : bf02d79e3fbab84892be8a7e52ea7a1caf2e003d
2017-01-26 20:00:33 -08:00
Phil Ringnalda
9447dfdbd4 Backed out 3 changesets (bug 1203330) for failures in test_delay_update_webextension.js
CLOSED TREE

Backed out changeset 2d42350d209a (bug 1203330)
Backed out changeset 3a12c51c3eca (bug 1203330)
Backed out changeset 31fac390e15d (bug 1203330)
2017-01-26 19:13:11 -08:00
Andrew Swan
f04f785725 Bug 1203330 Part 1 Fix SingletonEventManager r=kmag
This patch adds the ability to run SingletonEventManager handlers in
different modes: sync, async, raw (no exception handling, arg cloning,
or asynchrony), or asyncWithoutClone. When you call the handler,
you're required to specify which variant you want.

Existing uses of SingletonEventManager are all converted to async calls.
Note that some of them were previously synchronous, but it didn't appear
to be necessary.

Also added a callOnClose for SingletonEventManager when the last listener
is removed.

MozReview-Commit-ID: ATHO97dWf3X

--HG--
extra : rebase_source : 43988ee453e965e1c591b1c64603c22f5a103cff
2017-01-26 13:43:12 -08:00
Rob Wu
be3652cd57 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

--HG--
extra : rebase_source : 946a3c0009a4e3223c2d10044b3099a94c845394
2016-08-16 15:51:50 -07:00
Rob Wu
bacc209644 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

--HG--
extra : rebase_source : 7aa9fb7a53e057e8d3d8c477bd6821f8344c571a
2016-08-15 01:04:58 -07:00
Sebastian Hengst
2164cd95c8 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
dfc11d6f00 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

--HG--
extra : rebase_source : 9a85d95f0c147198938b86c57127f6e7403fd53c
2016-08-15 01:04:58 -07:00
Bob Silverberg
068821e975 Bug 1295301 - history.onVisitRemoved argument is wrong after a call to history.deleteAll, r=aswan
MozReview-Commit-ID: 9b9PKAwcNDA

--HG--
extra : rebase_source : a0cbbe63b227139085b3641786e14e2a1df13bbe
2016-08-16 09:35:37 -04:00
Andrew Swan
965b6726d5 Bug 1292093 Import PlacesUtils.jsm in ext-history r=kmag
MozReview-Commit-ID: ICxJbWfVYdb

--HG--
extra : rebase_source : d8677b284f8dd95a40eb7e5253fd834194b0a1b7
2016-08-04 11:26:55 -07:00
Matthew Wein
9db4b394c8 Bug 1285063 - Part 2: Switch to using the Category Manager to register scripts/schemas in order to load them in time for Fennec. r=kmag
MozReview-Commit-ID: 2U8cTYeH8kg

--HG--
extra : rebase_source : 32ffedca29caeb1154d9d1712795f18fc74dbe2a
2016-07-22 12:44:40 -07:00
Bob Silverberg
55401c8180 Bug 1280357 - Update browser.history.onVisited to not call PlacesUtils.promisePlaceInfo, r=kmag
MozReview-Commit-ID: 3j4JdWI6APu

--HG--
extra : transplant_source : %B0ir%3B%FF%08%1A%08%D8%DDa%C1%90%AD%03%97M%DA%E3%FC
2016-07-19 17:01:08 -04:00
Bob Silverberg
53b6985242 Bug 1265845 - Implement browser.history.onVisited, r=aswan
MozReview-Commit-ID: 6jXEUA1Cll9

--HG--
extra : transplant_source : %FC%8Frg%7C2%25%A6%A0%FB%27%AB%DE%04Q%3E%83%BE%A6%EE
2016-06-08 12:42:13 -04:00
Kris Maglione
a1dac7caad Bug 1279392: [webext] Move API permission definitions to the schemas. r=aswan
MozReview-Commit-ID: 8m7wJrAbFwS

--HG--
extra : source : a00cf073f5c00380d4e42b13bc0cd3146b708845
extra : amend_source : d74ef90e88acbe62e33af3b5b9cf870d5c0a9d3e
2016-06-09 17:44:47 -07:00
Sebastian Hengst
f8035f62a8 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
b465305345 Bug 1279392: [webext] Move API permission definitions to the schemas. r=aswan
MozReview-Commit-ID: 8m7wJrAbFwS

--HG--
extra : rebase_source : cba877c0ef400917b0b7e5913895e64ebefb34b9
extra : amend_source : 6e943015e3e00854c431cbd653994a6734e66ce4
2016-06-09 17:44:47 -07:00
Bob Silverberg
c192826ab8 Bug 1265835 - Implement browser.history.getVisits, r=aswan
MozReview-Commit-ID: lhFdMTHYUl

--HG--
extra : amend_source : a65036e2420795601486c9e5f9adca4e557029db
2016-06-08 08:50:08 -04:00
Bob Silverberg
3304fd5533 Bug 1265847 - Implement browser.history.onVisitRemoved. r=aswan
MozReview-Commit-ID: KzEdwzxzrKn
2016-05-17 10:01:18 -04:00
Bob Silverberg
e580134ee3 Bug 1265836 - Part 4: Implement browser.history.addUrl. r=aswan
MozReview-Commit-ID: CBcKLvRLj3w

--HG--
extra : transplant_source : %BCXud%20%EC%BE%EA%161fN%B4%11%E2n%28b%95%8F
2016-05-19 21:55:37 -04:00
Bob Silverberg
b610707ecb Bug 1265836 - Part 2: Change normalizeTime to return a date rather than a number. r=aswan
Also update browser.history.deleteRange to use normalizeTime

MozReview-Commit-ID: EQ3NLSIRTe8

--HG--
extra : transplant_source : %0F3%7F%89Y%C3m%86%EB%91%0A%1B%FFMwh%19%AF%E2%23
2016-05-24 09:00:17 -04:00
Bob Silverberg
8150024920 Bug 1265836 - Part 1: Replace PlacesUtils.toTime with PlacesUtils.toDate. r=mak, r=aswan
MozReview-Commit-ID: FZTfDJpjEt1

--HG--
extra : transplant_source : Z%B5%8B%82lB%DBk%10q%DC%10P%A8%21%7CL%C4Y%F9
2016-05-24 08:56:10 -04:00
Sebastian Hengst
c7d6bbeb61 Backed out changeset df90fcacc68c (bug 1265836) for crashing test_ext_webrequest.html. r=backout 2016-05-26 10:32:47 +02:00
Sebastian Hengst
2575bac27a Backed out changeset 800df6b80dc0 (bug 1265836) 2016-05-26 10:32:41 +02:00
Sebastian Hengst
8befd3936b Backed out changeset 1151e3a09e77 (bug 1265836) 2016-05-26 10:32:26 +02:00
Bob Silverberg
b3fa99bfdf Bug 1265836 - Part 4: Implement browser.history.addUrl. r=aswan
MozReview-Commit-ID: CBcKLvRLj3w

--HG--
extra : transplant_source : %E2%93%5Ef%3B%3F%27%85%B9%B7%3B%5BK%A1qu%00h%00L
2016-05-19 21:55:37 -04:00
Bob Silverberg
751592d0c5 Bug 1265836 - Part 2: Change normalizeTime to return a date rather than a number. r=aswan
Also update browser.history.deleteRange to use normalizeTime

MozReview-Commit-ID: EQ3NLSIRTe8

--HG--
extra : transplant_source : %8B%0D%9ERe%2A%FA%1F%01%B4%A2%BBcCb%EB%8F%8A%A4%09
2016-05-24 09:00:17 -04:00
Bob Silverberg
5c3d786a77 Bug 1265836 - Part 1: Replace PlacesUtils.toTime with PlacesUtils.toDate. r=mak, r=aswan
MozReview-Commit-ID: FZTfDJpjEt1

--HG--
extra : transplant_source : %3C%95%C2%21l%5B%0F-%9D%E1%22%22d%FC%1C%B9%C7%3AfD
2016-05-24 08:56:10 -04:00
Bob Silverberg
79a85728e0 Bug 1265834 - Part 2: Implement browser.history.search. r=aswan, r=mak
Requesting review from mak for the changes to PlacesUtils.jsm.
Note that one of these changes (toPRTime) is also present in the patch for bug 1265836, but I anticipate that this patch may land before that bug.

MozReview-Commit-ID: Kg1XX40A4FW

--HG--
extra : transplant_source : %05%FAB%CENp%BE%A3%A1C%C3%B8%E6%3E%939%9E%E8%A1%5C
2016-05-13 10:32:48 -04:00
Bob Silverberg
1b139444cb Bug 1265842 - Implement browser.history.deleteAll and deleteRange. r=aswan
MozReview-Commit-ID: 6rcQfPajmfw

--HG--
extra : transplant_source : %7C%9B%E9%AD%F0K%8Ds%960%D0J%B8%3B%B5%B1r%C2%2A%03
2016-04-27 16:51:11 -04:00
Bob Silverberg
c3f7086b51 Bug 1265837 - Implement browser.history.deleteUrl, r=aswan
MozReview-Commit-ID: AzVWzviLkGQ

--HG--
extra : rebase_source : 877140bd0d0616f05a62ee94ddae806e51518e55
2016-04-28 08:37:04 -04:00
bsilverberg
d9ca109a26 Bug 1262923 - Create schema for the history API. r=aswan
MozReview-Commit-ID: 1hZRJtemPMb

--HG--
extra : rebase_source : ccf72e006fcdcbaa3085a6bdcc8e679f66ed2412
2016-04-07 14:56:02 -04:00