Commit Graph

2033 Commits

Author SHA1 Message Date
Bob Silverberg
8f848ff9df Bug 1381992 - Add some reader mode support to the tabs API, r=mixedpuppy
This adds two properties to the Tab object:

- isArticle indicates whether the document in the tab is likely able to be
  rendered in reader mode.
- isInReaderMode indicates if the document in the tab is being rendered in
  reader mode.

It also adds a toggleReaderMode() which toggles a tab into and out of reader mode.

There is also a new case in which tabs.onUpdated will fire. When the isArticle
status of a tab changes, an onUpdated event will fire with data {isArticle: boolean}.

MozReview-Commit-ID: AaAQ0V5qm2Z

--HG--
extra : rebase_source : f9cbed6dff56781ecd86281cb46f23f0ec8aecf6
2017-09-08 17:00:27 -04:00
Shane Caraveo
387891590a Bug 1400391 fix e10s xpcshell-test for remote webextensions, r=kmag
MozReview-Commit-ID: AgdmUNWLGaq

--HG--
extra : rebase_source : 3caf6ae08f5507a9d22a9f6b3d16766bd7f98964
2017-09-17 19:34:13 -07:00
Tim Nguyen
3a0eabdbc1 Bug 1387582 - Add toolbar_text color property to theming API. r=dao,mikedeboer
MozReview-Commit-ID: KjKVjFD4axN

--HG--
extra : rebase_source : 8e47b2a3f75366208e45792d6ec34e0a36ac3ecd
2017-08-30 20:23:58 +07:00
Sebastian Hengst
33ee80a6b2 merge mozilla-central to autoland. r=merge a=merge 2017-09-15 11:08:55 +02:00
Sebastian Hengst
ec66bbd3e1 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 4dRrVdftJVy
2017-09-15 11:05:11 +02:00
Sebastian Hengst
09dd8ba13f merge mozilla-central to mozilla-inbound. r=merge a=merge on a CLOSED TREE
--HG--
extra : amend_source : ee605ac050c0532521f96bdeda5ef20fb0099519
2017-09-15 00:18:43 +02:00
Shane Caraveo
85604b0c2b Bug 1393150 prevent remote extensions when e10s is off, r=bz,kmag
MozReview-Commit-ID: HjLLa9vx2UW

--HG--
extra : rebase_source : d37088f31931a74ef2c40dc510794ebc5f4931ab
2017-09-14 15:12:45 -07:00
Andy McKay
6815156468 Bug 1350277 - Remove duplicates when showing host permissons. r=aswan
MozReview-Commit-ID: 2GzUwFHuEe6

--HG--
extra : transplant_source : %84%C1%3Am%FCF%A1%23o%0EW%9C%7E%F2%F7%DF%2CM%AE%A1
2017-09-13 13:41:21 -07:00
Shane Caraveo
aac2ef44df Bug 1399070 move launchWebAuthFlow to parent to fix opening auth window when remote, r=zombie
MozReview-Commit-ID: GAdlxYUM6rr

--HG--
rename : toolkit/components/extensions/ext-c-identity.js => toolkit/components/extensions/ext-identity.js
extra : rebase_source : eaec4890e559e0c969b6d7721ee94dcbda85c4f6
2017-09-14 09:18:27 -07:00
Bob Silverberg
abd89e3894 Bug 1399176 - Make browserSettings an optional permission, r=mixedpuppy
MozReview-Commit-ID: AO0hQdETmvC

--HG--
extra : rebase_source : 7b7696826e74c779ac625dcc17032c90f9c9aa44
2017-09-12 12:19:45 -04:00
Bob Silverberg
7ab3a9f057 Bug 1366290 - Fix the ordering of tabs.onActivated and tabs.onRemoved, r=kmag
Currently tabs.onActivated (for the tab that becomes active after a tab is removed) fires before
tabs.onRemoved (for the tab that was removed). This is neither the order in which Chrome fires
these events, nor is it the order in which the internal TabSelect and TabClose happen in Firefox.
This bug fixes this so tabs.onActivated fires *after* tabs.onRemoved.

Note that this does introduce an issue in in-process mode, where window.close() will not
trigger a tabs.onRemoved event for the window, but Kris says "Meh" about that.

MozReview-Commit-ID: CrFR3jqL2u5

--HG--
extra : rebase_source : 5cc3d2a138bf812d13779e8ca1188b89ddbcdcc1
2017-05-31 12:01:58 -04:00
Wes Kocher
ff68b95b87 Merge inbound to central, a=merge
MozReview-Commit-ID: ClVRh99eIUo
2017-09-14 00:03:28 -07:00
Kris Maglione
52778e7212 Bug 1399646: Part 4 - Increase the extension shutdown blocker timeout. r=mixedpuppy
The current timeout was added to deal with some shutdown deadlocks that were
happining in the wild, but were hard to reproduce locally and therefore
diagnose. It's not clear whether the bulk of those have been fixed, so I'm
reluctant to remove the timeout entirely.

But the current 1s timeout is quite short, and doesn't allow for proper
cleanup in a lot of legitimate cases. The async shutdown service starts to
emit warnings at 10s, so 8s gives us enough time to avoid at least that.

MozReview-Commit-ID: 94zZjYUY8qZ

--HG--
extra : rebase_source : 980cce2af1117d6d46f6083910672e3ef8702981
extra : histedit_source : d8d9b2d7f6312b5d8801e4e26d2b0c0a32a538c2
2017-09-13 08:58:37 -07:00
Kris Maglione
ec733c4f49 Bug 1399646: Part 3 - Improve handling of StreamFilters at shutdown. r=mixedpuppy
The main change here is to disconnect stream filters immediately if we try to
send start or data events to a window that's already been destroyed.

It also fixes a race where we end up in the wrong state if a stop event
arrives while the channel is being disconnected.

MozReview-Commit-ID: LwxXxoRUDgQ

--HG--
extra : rebase_source : 8c04e4be2f74850f28d642350b9ff268ab3206e4
extra : histedit_source : d0c18c9a190179431b81fdb32262a0324dc35762
2017-09-13 13:40:08 -07:00
Mark Striemer
4d92dcaec3 Bug 1354344 - Show extension controlling home page in preferences r=bsilverberg,jaws
MozReview-Commit-ID: 9mU3SvdK91c

--HG--
extra : rebase_source : 703e7248b8200efef8eb0342510c6d7da29016c7
2017-09-07 11:35:06 -05:00
Sebastian Hengst
45bab258b7 merge mozilla-central to autoland. r=merge a=merge 2017-09-14 00:11:28 +02:00
Sebastian Hengst
7dd2b068b5 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-13 13:35:21 +02:00
Sebastian Hengst
e4a2f44531 merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 9SALJlvWgoZ
2017-09-13 13:32:44 +02:00
Kris Maglione
270a894712 Bug 1398974: Follow-up: Disconnect StreamFilters when closing extension context. r=me
If we don't do this explicitly, the channel is automatically disconnected when
it's GCed. However, if we start shutdown while a stream is being processed,
the stream may not be GCed before we shut down the parent process's message
loop. In that case, we get a shutdown crash because the StreamFilterParent's
data channel is still open when we shut down its message loop.

Explicitly disconnecting the StreamFilter when the context is closed prevents
this, since app shutdown is automatically blocked on extension shutdown, and
extension shutdown explicitly closes all extant contexts.

MozReview-Commit-ID: 5JPrSUooq1j

--HG--
extra : rebase_source : d9af8c6b1c2107a726fead2aa0bbf9cc6f7b72e2
2017-09-12 18:55:24 -07:00
Andrew Swan
e6a80af159 Bug 1398327 Part 1: Skip permission dialog access keys on Android r=zombie
MozReview-Commit-ID: 1rbludpEmdm

--HG--
extra : rebase_source : f38968efda8d0a90c91036607893e4576e73d7ef
2017-09-11 14:25:23 -07:00
Sebastian Hengst
5a984f70f8 Backed out changeset 2b74ec6bb1d8 (bug 1350277) for failing browser-chrome's browser/base/content/test/webextensions/browser_permissions_addons_search.js. r=backout 2017-09-13 21:36:11 +02:00
Andy McKay
520285d103 Bug 1350277 remove duplicates when showing host permissons r=aswan
MozReview-Commit-ID: 2GzUwFHuEe6

--HG--
extra : rebase_source : de6f99773d740abb102006483e22d3107bb72f6f
2017-09-11 17:40:08 -07:00
Luca Greco
d83e387d9b Bug 1397196 - Fix pageAction icon loading when an extension has a cached browserAction theme-based icon. r=mixedpuppy
MozReview-Commit-ID: Lmi5pLerzul

--HG--
extra : rebase_source : 9c3eb11e65b03c43bb8f30f5f19a904770f82356
2017-09-06 12:40:45 +02:00
Sebastian Hengst
be553422dd merge mozilla-central to autoland. r=merge a=merge 2017-09-13 11:30:55 +02:00
Kris Maglione
d5ec8637a4 Bug 1399005: Always dispatch OnStop from the IO thread. r=mixedpuppy
Normally, we try to use the same thread for the IO and actor threads, which
means there's some basic assurance that OnStopRequest is always dispatched
after the last OnDataAvailable call. However, in cases where callers retarget
data delivery to a different background thread, it's possible for the main
thread to process the OnStopRequest runnable before the IO thread has
processed the last OnDataAvailable runnable, which can cause problems.

Dispatching the OnStop runnable through the IO thread guarantees at last basic
consistency in order of dispatch. In the case where the IO thread is the same
as the actor thread, the runnable is processed synchronously, and there's no
behavior change. In other cases, it's dispatched to the IO thread first, and
waits in the same queue as the already-dispatched OnDataAvailable events.

MozReview-Commit-ID: H2GD66WKxNn

--HG--
extra : rebase_source : 0c79d3467b92e9fe53842a642a5c1eac2f3ee54c
2017-09-11 20:04:48 -07:00
Sebastian Hengst
ecf716b8bb merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: CmMBcpJapLy
2017-09-12 11:35:15 +02:00
Kris Maglione
82c8480c2b Bug 1398642: Follow-up: Fix terrible error checking code. r=me CLOSED TREE
MozReview-Commit-ID: 1xQNYwZiqsj

--HG--
extra : rebase_source : a32457e8b1078978623657c2ad0587eb7eda4765
2017-09-11 21:18:42 -07:00
Tomislav Jovanovic
931df23438 Bug 1394553 - Part 2: Prune the GRANTED_WITHOUT_USER_PROMPT list r=aswan
MozReview-Commit-ID: 844ITHXaauA

--HG--
extra : rebase_source : e95472fa218a9c2189f1c8924908ea1069ec6496
2017-09-04 21:51:25 +02:00
Tomislav Jovanovic
38c090ab9e Bug 1394553 - Part 1: Implement "devtools" permission r=aswan
MozReview-Commit-ID: 89XUmZUhC65

--HG--
extra : rebase_source : 3921d9c5908fdb9e4956b3534976bfb1bef00a00
2017-09-04 21:49:40 +02:00
Kris Maglione
30c5c2457e Bug 1398630: Follow-up: Fix another typo. r=me
MozReview-Commit-ID: HmaqWzfLVGa
2017-09-11 17:03:20 -07:00
Kris Maglione
372f1ef672 Bug 1398630: Follow-up: Fix typo. r=me
MozReview-Commit-ID: 7Wv2WPWRC4L

--HG--
extra : rebase_source : 98b4513c40d0e27041a316572859671375b33c97
2017-09-11 16:09:58 -07:00
Kris Maglione
988d03b779 Bug 1398630: Part 7 - Random cleanup. r=zombie
MozReview-Commit-ID: LibtXDKXrnA

--HG--
extra : rebase_source : 34035be1600f0e62e738a2d4df1ece10714f992f
2017-09-10 15:37:08 -07:00
Kris Maglione
4fe634d449 Bug 1398630: Part 6 - Avoid some avoidable uses of nsIURI. r=zombie
MozReview-Commit-ID: 18Wd3buFM38

--HG--
extra : rebase_source : 0b42a1b55d80560491c0c0e533d8c0e990bffa43
2017-09-10 15:36:57 -07:00
Kris Maglione
8921830f3b Bug 1398630: Part 5 - User iteration helpers for nsISimpleEnumerator. r=zombie
MozReview-Commit-ID: Iw25XozakK0

--HG--
extra : rebase_source : 4e88954bece9293acb168c79b096dafaed6ad7c9
2017-09-10 15:35:46 -07:00
Kris Maglione
ea86cfbbc8 Bug 1398630: Part 4 - Use getWinUtils everywhere we use DOMWindowUtils. r=zombie
MozReview-Commit-ID: FroMQF9Tiz1

--HG--
extra : rebase_source : 16bc023dc5ca08358097592b04d6da1a8282b5f1
2017-09-10 15:33:54 -07:00
Kris Maglione
daa3085d2b Bug 1398630: Part 3 - Use document.docShell rather than longer/slower XPC paths. r=zombie
MozReview-Commit-ID: 5oD0Uvv1pvx

--HG--
extra : rebase_source : 977b6df718df231082f1c7594f25d954cfa50a5f
2017-09-11 14:53:20 -07:00
Kris Maglione
6e12b1a4f1 Bug 1398630: Part 2 - Avoid unnecessary Map/Set lookups. r=zombie
We currently call has() every time we do a DefaultMap/DefaultWeakMap lookup,
which unfortunately shows up a lot in profiles. We only actually need to
check, though, if get() returns an undefined value.

Similar things in other places, where we only need to do a has() call if
another operation fails.

MozReview-Commit-ID: 9qFWsb4vlZj

--HG--
extra : rebase_source : 94c231fa007744f733faa9fdbde38a3875e10e7d
2017-09-10 15:39:49 -07:00
Kris Maglione
8f3bd8b318 Bug 1398630: Part 1 - Remove/cleanup some old ExtensionUtils helpers. r=zombie
MozReview-Commit-ID: FeLUjH7pkiB

--HG--
extra : rebase_source : 639c3ccece00aab6dd1c97eb21115e4beb82f378
2017-09-10 15:39:28 -07:00
Sebastian Hengst
bd180901c7 merge mozilla-central to autoland. r=merge a=merge 2017-09-10 23:17:36 +02:00
Tomislav Jovanovic
94dc2ab943 Bug 1395287 - Order and chain content_scripts injection on startup r=kmag
MozReview-Commit-ID: 19MH2zLV99s

--HG--
extra : rebase_source : 4eca3142f31529246839da0cf1899097406ee6f0
2017-09-10 18:56:35 +02:00
Kris Maglione
f9e2e7cfbc Bug 1397448: Part 6 - Cache messageManager for MessageManagerProxy. r=mixedpuppy
MozReview-Commit-ID: 7eqSgBkrj4f

--HG--
extra : rebase_source : 4541d5af94af4e219b2435da9485ce5530f0fab1
2017-09-08 21:36:00 -07:00
Kris Maglione
c2a6f79739 Bug 1397448: Part 5 - Make uniqueProcessID a lexically scoped string. r=zombie
MozReview-Commit-ID: Fxob3RUPQtd

--HG--
extra : rebase_source : 5e8d200b88d9b0c1b9ea14d94e8b4372543fef63
2017-09-08 17:12:43 -07:00
Kris Maglione
5b8215cd47 Bug 1397448: Part 4 - Use a simpler message broker for response messages. r=zombie
MozReview-Commit-ID: 9wVG6SDJO2w

--HG--
extra : rebase_source : ac6861cdcdf6bc7165670db53e0ddce778de43e0
2017-09-08 17:14:07 -07:00
Kris Maglione
1565b820e8 Bug 1397448: Part 3 - Reduce the number of promise callbacks created in MessageChannel. r=zombie
MozReview-Commit-ID: 2A4P9eaWnKx

--HG--
extra : rebase_source : 6a310d6c8c38032cdc9df218eb0983aa4feabf9f
2017-09-10 10:05:25 -07:00
Kris Maglione
a6c6de086a Bug 1397448: Part 1 - Generate WebRequest message objects in WebRequest.jsm. r=mixedpuppy
Aside from moving this logic closer to the place the input data is generated,
this significantly reduces the number of cross-compartment wrappers involved
in creating those messages, especially with JSM global sharing enabled.

MozReview-Commit-ID: 6IvetcHnMfC

--HG--
extra : rebase_source : 0f97464ee9840ac40a6882e70e99d5b6c566c5ef
2017-09-06 17:43:38 -07:00
Sebastian Hengst
261dd76eb6 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: ACCqbunIDpp
2017-09-09 11:44:38 +02:00
Jonathan Kingston
cd6bb3887f Bug 1395659 - Rejecting contextual identity APIs when containers are disabled. r=kmag
MozReview-Commit-ID: LCiI74SN12y

--HG--
extra : rebase_source : 86c883e610e406e115ca9558b5f4128db426a8e5
2017-08-31 11:46:31 -07:00
Jonathan Kingston
23b1fbea74 Bug 1390738 - Await for pref change if containers aren't enabled. r=aswan
MozReview-Commit-ID: GOf1py5uZkh

--HG--
extra : rebase_source : dbdcec159ccf5e4086e710efba882a62877d05f5
2017-09-07 22:20:47 -07:00
Kris Maglione
c389591944 Bug 1392210: Follow-up: Fix missing Services.jsm import. r=trivial
MozReview-Commit-ID: 9YqoYN5yAIe
2017-09-08 17:26:37 -07:00
Kris Maglione
c4e733b63f Bug 1396652: Fix WebRequestService destructor ordering issue. r=mixedpuppy
MozReview-Commit-ID: HYDNYzb5bnM

--HG--
extra : rebase_source : 4238fc77e76886bffc08f9e0ff56fa77aaf0910c
extra : amend_source : db6e6fa6c21922bd0285fb74561e3ed5ca443a36
2017-09-07 19:04:01 -07:00
Geoff Brown
00747ece8f Bug 1393940 - Skip xpcshell test_proxy_scripts.js on linux for frequent intermittent timeouts; r=mixedpuppy 2017-09-08 15:00:28 -06:00
Wes Kocher
2a30786cad Merge inbound to central, a=merge
MozReview-Commit-ID: 4FEkd1x2GD
2017-09-08 13:36:31 -07:00
Kris Maglione
8db9707fe8 Bug 1398045: Correctly handle channels that don't support weak references. r=mixedpuppy
MozReview-Commit-ID: GX6zUAzVrBZ

--HG--
extra : rebase_source : b9d7773e2ea782498755ce4fb34feaa67a706049
2017-09-08 08:56:42 -07:00
Bob Silverberg
b0b0d844da Bug 1364972 - Allow WebExtensions to disable animated images, r=mixedpuppy
This adds a browserSetting.imageAnimationBehavior API which accepts one of three
values: "normal", "none", "once". Behind the scenes it sets the image.animation_mode
preference to the same value.

MozReview-Commit-ID: GLT6oJgpF3

--HG--
extra : rebase_source : 2ff27f7667556f0294959b1130df17c839734dbd
2017-09-06 16:46:38 -04:00
Wes Kocher
b5fe3d1dc7 Merge m-c to autoland, a=merge
MozReview-Commit-ID: zTrDLmRmnn
2017-09-08 13:42:01 -07:00
Shane Caraveo
5470ee2e1b Bug 1381290 support proxyInfo object return from FindProxyForURL, r=kmag
MozReview-Commit-ID: 4A2lxXPz9lF

--HG--
extra : rebase_source : b3e449d17d4346dbaa6d3bd5ce689c1ae8170ee0
2017-06-29 17:26:56 -07:00
Andrew McCreight
bfd580fb71 Bug 1186409 - Use Cu.getGlobalForObject when importing properties off a JSM global. r=kmag
With JSM global sharing, the object returned by Cu.import() is a
NonSyntacticVariablesObject, rather than a global. Various code tries
to use properties from a JSM global via an import.

Cu.importGlobalProperties can also be used in some places.

MozReview-Commit-ID: HudCXO2GKN0

--HG--
extra : rebase_source : 6b5fa6f5509397504cb461a761f6cc2399f18c40
2017-06-23 13:51:14 -07:00
Andrew McCreight
614d92ab8f Bug 1186409 - Fix code that tries to get the global by using |this|. r=kmag
MozReview-Commit-ID: C5ixngtvzWU

--HG--
extra : rebase_source : 65507b2d1f58a8f1f1e36e2153ed1d490f4a86dc
2017-05-25 14:12:12 -07:00
Tomislav Jovanovic
3dce599c63 Bug 1394348 - Fix document_idle run_at timing r=kmag
MozReview-Commit-ID: FBPlw6CiUE2

--HG--
extra : rebase_source : b72037e7ce600eafb15de639ec7e98e8abb580b3
2017-09-08 00:36:50 +02:00
Bob Silverberg
a0e35abf1b Bug 1396362 - Fix intermittent test_ext_notifications.html, r=mixedpuppy
MozReview-Commit-ID: 67LDQuEvDZI

--HG--
extra : rebase_source : 4f750e77db3ddcfde10a0ee0b741275f1c36200d
2017-09-06 08:59:36 -04:00
Shane Caraveo
dbbc61a4fc Bug 1398622 fix ws handling in contentpolicymanager, and fix stupid error. r=kmag
MozReview-Commit-ID: EmPvtRrnrnI

--HG--
extra : rebase_source : 3db1fa7ea2046710208bbaf66a76e02e7c9a6df3
2017-09-10 21:37:27 -07:00
Ethan Glasser-Camp
4f6356f118 Bug 1395215: remove asynchrony from addListener, r=kmag
MozReview-Commit-ID: HzjfFiIR7hE

--HG--
extra : rebase_source : c41f720165e11dddc6cf9e4b11d39e2dbbfcd3ed
2017-09-05 16:11:39 -04:00
Sebastian Hengst
9a6b5140c4 merge mozilla-central to autoland. r=merge a=merge 2017-09-08 11:03:59 +02:00
Rob Wu
a329d28242 Bug 1388266 - Ignore error about non-existing _locale and localization directory r=kmag
MozReview-Commit-ID: 8wEBUG7bjJD

--HG--
extra : rebase_source : d7377d91ed07e8e796da0a9de338e6a726793b35
2017-09-07 17:55:28 +02:00
Wes Kocher
2ec453d1bb Backed out 2 changesets (bug 1379833) for android lint failures a=backout
Backed out changeset 8bbf531110dd (bug 1379833)
Backed out changeset c06bc2f7acd3 (bug 1379833)

MozReview-Commit-ID: 5iCJ3qsMC1Q
2017-09-07 16:25:50 -07:00
Andrew Swan
c6db1e511a Bug 1379833 Part 1: Move common code to format permission dialog strings to Extension.jsm r=zombie
MozReview-Commit-ID: LvyEy7x9TJg

--HG--
extra : rebase_source : 18fedb2b86ef6a1baf36b33caed3d3d3a7150147
extra : intermediate-source : e742aefc28987ea2e80fda91ff277343862d2b5a
extra : source : 90778683c3dd067754dfff4ca776e2c0f9ad7c3b
2017-08-02 13:15:30 -07:00
Wes Kocher
fb047aaff3 Backed out changeset 674775dda8ad (bug 1364972) for eslint failures a=backout
MozReview-Commit-ID: 5tmy6XSi0sL
2017-09-07 12:31:11 -07:00
Bob Silverberg
af87b038ca Bug 1364972 - Allow WebExtensions to disable animated images, r=mixedpuppy
This adds a browserSetting.imageAnimationBehavior API which accepts one of three
values: "normal", "none", "once". Behind the scenes it sets the image.animation_mode
preference to the same value.

MozReview-Commit-ID: GLT6oJgpF3

--HG--
extra : rebase_source : e1675bf4042e7e5fcee768231ffeccf19dc77c69
2017-09-06 16:46:38 -04:00
Bob Silverberg
43c7b2e3ed Bug 1397081 - Update browserSettings to report the current home page and new tab page in all cases, r=mixedpuppy
This updates the browserSettings API to report the current value of the home page and the new tab page regardless of whether they are currently overridden by an extension.

MozReview-Commit-ID: 3usY3F4oIxl

--HG--
extra : rebase_source : f8a04b4d7e70db7133c664d60cd46f8b4cd5471f
2017-09-05 16:11:04 -04:00
Paolo Amadini
fe96089fe4 Bug 1387416 - Place the search bar in the customization palette for new profiles. r=Gijs
MozReview-Commit-ID: Tq8YrZWG6P

--HG--
extra : rebase_source : 2e02e0a809d08ff26291a027b73a54668d6d5f9d
2017-09-06 13:09:27 +01:00
Kris Maglione
d6b735f9d2 Bug 1397536: Avoid newURI overhead for MatchPattern. r=ehsan,mixedpuppy
Ehsan, can you please review the (trivial) WebIDL changes, and Shane the
WebRequest logic?

The change to allow strings in MatchPattern arguments removes a huge amount of
XPConnect overhead that accumulates when creating nsIURI objects for
WebRequest processing.

The change to re-use existing URI objects removes a huge amount of URI
creation overhead.

MozReview-Commit-ID: 3DJjAKJK1Sa

--HG--
extra : rebase_source : 585a1c3c136ed1c5014f680ae81f635c8d1a2931
2017-09-06 21:56:45 -07:00
Kris Maglione
025991aa30 Bug 1396856: Part 4 - Update WebRequest.jsm to use ChannelWrapper bindings. r=mixedpuppy
MozReview-Commit-ID: 7s7SOQ1XVaw

--HG--
extra : rebase_source : 9fb6fabffd3c32e52e4b94dba476483a7118c660
2017-09-06 21:52:24 -07:00
Kris Maglione
d55de0c717 Bug 1396856: Part 3 - Add a WebIDL wrapper class for necko channels. r=ehsan,mixedpuppy
Ehsan, can you please review the DOM bindings, and Shane the request logic?

The bulk of the overhead WebRequest API is in its access to nsIChannel and
friends through XPConnect. Since it's not really feasible to convert channels
to use WebIDL bindings directly, this generic channel wrapper class serves the
same purpose.

MozReview-Commit-ID: 4mNP8HiKWK

--HG--
extra : rebase_source : 111687dd0925619b5d93447aecffacd5d53532ef
2017-09-06 14:38:23 -07:00
Kris Maglione
9cf6734391 Bug 1396856: Part 1 - Remove spread call fallback overhead in event dispatch. r=zombie
MozReview-Commit-ID: 3c5p9OvRqHI

--HG--
extra : rebase_source : e145380ace787bab683808ef3894652bb1baee8d
2017-09-05 11:20:43 -07:00
Tomislav Jovanovic
7c5396240d Bug 1396686 - Provide info which onMessage listener's response handle went out of scope r=kmag
MozReview-Commit-ID: Bu71gP8Ey3

--HG--
extra : rebase_source : 96ca9332ca1e69739b0bdf1b8a7b275d42d951ff
2017-09-05 03:00:07 +02:00
Sebastian Hengst
9d15132cd1 merge mozilla-central to autoland. r=merge a=merge 2017-09-06 11:28:07 +02:00
Sebastian Hengst
9c8a09d458 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: KLssMPhSQ0O
2017-09-06 11:26:13 +02:00
Rob Wu
297c108fec Bug 1356543 - Add clipboard.setImageData API r=mixedpuppy
This introduces an implementation of the clipboard.setImageData API.
I did not find any complete documentation about how copying and
pasting images is supposed to work in Firefox, so I added many lines
of documentation based on experimenting and reading the source code.

The implementation is very similar to the Add-on SDK's implementation,
save for one difference: The third parameter to setTransferData is 0
instead of -1. Its significance is elaborated in ext-clipboard.js.

The newly added tests serve the following purposes:
- Verification that clipboard.setImageData is working as expected.
  There is no way to test that pasting in an external application
  really works, so we just check whether Firefox recognizes the
  special image data by pasting in a contentEditable area.

- Test coverage for reading clipboard data via the "paste" event and
  using event.clipboardData to access the pasted data, because this is
  the only way to read non-text data in a WebExtension extension.

MozReview-Commit-ID: Ldrx7LCIta2

--HG--
extra : rebase_source : f76fe85e5c9a525c159255c29698f4bdbdede8bc
2017-09-04 21:43:06 +02:00
Kris Maglione
04acc0aace Bug 1396449: Part 2 - Use atoms to test WebExtension permissions. r=krizsa
The extension policy services uses atoms internally for permission names, so
using them directly rather than strings is considerably cheaper.

MozReview-Commit-ID: Io8EuOXHKVy

--HG--
extra : rebase_source : 577b4bdf7f899729e4cf92961a8e9e25bf886a72
2017-09-03 18:51:02 -07:00
Kris Maglione
b3ba0520ee Bug 1396449: Part 1 - Use WebExtensionPolicy objects in extension content principals. r=krizsa
Going through the extension policy service rather than using
WebExtensionPolicy objects directly adds a lot of unnecessary overhead to
common operations on extension principals, and also makes the code more
complicated than it needs to be.

We also use weak references to policy objects here, since principals should
ideally lose as much of their elevated privileges as possible once the
extension instance that created them has been destroyed (which is something we
couldn't handle easily when we simply tracked ID strings).

MozReview-Commit-ID: KDNvVdvLkIt

--HG--
extra : rebase_source : 1b567919d2461bd0315d1a7d89f330cbd585f579
2017-09-05 11:04:43 -07:00
Sebastian Hengst
01c1a3c741 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 17ViEoPyjPa
2017-09-05 23:55:39 +02:00
Sebastian Hengst
45cb996f32 merge mozilla-central to autoland. r=merge a=merge 2017-09-05 12:37:56 +02:00
Sebastian Hengst
a17af05f6f merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: L5exd68pNSG
2017-09-05 11:40:49 +02:00
Steve Armand
e46ff00709 Bug 1368967 - Enable the ESLint generator-star-spacing rule across mozilla-central. r=standard8
MozReview-Commit-ID: 5do3eoCEAMR

--HG--
extra : rebase_source : 5f692e474e1d7d173fcb4c9c08617f0fe489e443
2017-09-04 00:49:32 -04:00
Shane Caraveo
5d0cbad001 Bug 1393402 fix intermittent by removing early testing timeout r=mixedpuppy
MozReview-Commit-ID: AAnS9cXlTz0

--HG--
extra : rebase_source : 52ddffe7f0430462927925db75eabd3ddeb9876a
2017-09-03 18:09:43 -07:00
Zibi Braniecki
2fc23db1fc Bug 1365709 - Fix linter bustage. r=kmag
MozReview-Commit-ID: 1pDWdDxOi19
2017-09-04 16:32:23 -07:00
Zibi Braniecki
f46a96487c Bug 1365709 - Consume new webextension based language packs. r=kmag
MozReview-Commit-ID: DeJlq8MWpfs

--HG--
extra : rebase_source : 3216a6541ae8205548acad0327113888829b901e
2017-08-28 10:48:00 -07:00
Rob Wu
0c0d2e458c Bug 1395172 - Remove "binary" type from Schemas.jsm r=kmag
MozReview-Commit-ID: JaHnb37czrA

--HG--
extra : rebase_source : 33913712801d92d124d4e9ff4dfe7b625a3762ee
2017-08-30 22:22:47 +02:00
Kris Maglione
720485c3cf Bug 1396612: Increase non-debug response part delay. r=trivial,test-only
MozReview-Commit-ID: ERXLi5RJwtc
2017-09-04 13:00:25 -07:00
Kris Maglione
a2ec0b79b6 Bug 1396017: Redact window titles without the appropriate tabs permissions. r=mixedpuppy
MozReview-Commit-ID: 2QJYvJlqt9l

--HG--
extra : rebase_source : 33c4670a0eded6e0af4f931a1ac4cd57f6115995
extra : amend_source : 915bfac6f2c05024acd840c8fa9e282bfc31c296
2017-09-01 12:20:10 -07:00
Sebastian Hengst
a1ee97df4e merge mozilla-central to autoland. r=merge a=merge 2017-09-04 11:13:51 +02:00
Kris Maglione
01f833d455 Bug 1255894: Follow-up: Disable response body filtering tests on Android for mochitest server issues.
--HG--
extra : amend_source : 0e3bfc0bf61b246c464bbc11546e2711eeafc5ff
2017-09-03 19:14:23 -07:00
Kris Maglione
106714fcdf Bug 1255894: Follow-up: Fix Android build error. CLOSED TREE
MozReview-Commit-ID: EFaubDi7BQL
2017-09-03 15:37:42 -07:00
Sebastian Hengst
7962b41fa5 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-04 00:17:34 +02:00
Shane Caraveo
f2a7869214 Bug 1392210 extension content needs nsIWebBrowserChrome3 for link traversal, r=kmag
MozReview-Commit-ID: ITJhNL8FemG

--HG--
extra : rebase_source : 552112b2568e61af3e4cd68a63bc00f9b8c37987
2017-09-02 16:00:12 -07:00
Kris Maglione
15a6c1a541 Bug 1255894: Part 8.1 - Disable response data filtering in release builds. r=me
MozReview-Commit-ID: AMgXJAb1NFs

--HG--
extra : rebase_source : c496b891a04d92c63ca335527e450c24300b2807
2017-09-02 09:40:30 -07:00
Rob Wu
880a2b4b73 Bug 1317900 - address intermittent failure in test_ext_unload_frame.html r=aswan
MozReview-Commit-ID: 8ySNL64KLmO

--HG--
extra : rebase_source : bf8f6185fff160c2b16e6899693a783ca14f7e5a
2017-08-23 16:31:14 +02:00
Sebastian Hengst
4d0bad92dd merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: Gsw48p934sI
2017-09-02 10:54:44 +02:00
Sebastian Hengst
4d2231acf0 merge mozilla-central to autoland. r=merge a=merge 2017-09-05 23:58:08 +02:00
Shane Caraveo
309c16890c Bug 1392210 followup to handle clicks in subframes correctly, r=kmag
MozReview-Commit-ID: LwTd64x8Mz7

--HG--
extra : rebase_source : 933c552f2a314dea99f83151bea2151acd750f2a
2017-09-05 13:36:08 -07:00
Jonathan Kingston
7703be00cb Bug 1339610 - Web extension API for container icon and colors. r=baku,kmag
MozReview-Commit-ID: BosKoxM8FMZ

--HG--
extra : rebase_source : 594bd4bf0fbd03973c2bc29d46f99322ac3ace91
2017-08-27 00:47:02 +01:00
Mathieu Leplatre
b4905330e7 Bug 1377533 - Remove scattered references to Kinto and Sqlite in blocklist clients r=glasserc,mgoodwin
MozReview-Commit-ID: FExozSDHgNN

--HG--
extra : rebase_source : 892c1c5825ac20243ce74118d4df437ec99cfe2c
2017-06-30 12:07:28 -07:00
Kris Maglione
6bad4f8ef7 Bug 1366511: Part 3 - Add mozilla::ToResult() to convert other result types to equivalent Result. r=nbp,ehsan
Also adds a mozilla/ResultExtensions.h header to define the appropriate
conversion functions for nsresult and PRResult. This is in a separate header
since those types are not available in Spidermonkey, and this is the pattern
other *Extensions.h headers follow.

Also removes equivalent NS_TRY macros and WrapNSResult inlines that served the
same purpose in existing code, and are no longer necessary.

MozReview-Commit-ID: A85PCAeyWhx

--HG--
extra : rebase_source : a5988ff770888f901dd0798e7717bcf6254460cd
2017-08-29 21:28:31 -07:00
Kris Maglione
c9899cb3fa Bug 1366511: Part 2 - Allow autoconverting Err(nsresult) to nsresult. r=ehsan,nbp
This allows MOZ_TRY and MOZ_TRY_VAR to be transparently used in XPCOM methods
when compatible Result types are used.

Also removes a compatibility macro in SimpleChannel.cpp, and an identical
specialization in AddonManagerStartup, which are no longer necessary after
this change.

MozReview-Commit-ID: 94iNrPDJEnN

--HG--
extra : rebase_source : 24ad4a54cbd170eb04ded21794530e56b1dfbd82
2017-08-29 21:28:22 -07:00
Kris Maglione
bbe9f20f84 Bug 1356376: Skip test_ext_i18n.js on Windows debug for frequent intermittent failures. r=me,test-only
MozReview-Commit-ID: 9bIpo3XxXnk

--HG--
extra : rebase_source : 353770064a511f36910e2c0f9c91967ee15d0d02
2017-08-31 15:51:21 -07:00
Kris Maglione
0c9a3b08ee Bug 1393621: Part 3 - Add test for framework JSMs loaded at startup. r=zombie
MozReview-Commit-ID: DvVO9bzwyXf

--HG--
extra : rebase_source : f04d8f1c08508acef915a493e00fbd7f5020dce8
2017-08-31 15:12:28 -07:00
Kris Maglione
a15a2a5be1 Bug 1393621: Part 2 - Add test for API modules loaded at startup. r=zombie
MozReview-Commit-ID: 6gyDqsaImmX

--HG--
extra : rebase_source : 17a7a3c83ab0939371baf98b484b092e1681b34a
2017-08-31 15:14:33 -07:00
Kris Maglione
78609e834d Bug 1393621: Part 1 - Don't load ext-contextualIdentities at startup without permissions. r=zombie
MozReview-Commit-ID: AiIYAXSRrii

--HG--
extra : rebase_source : 5004ef9b90391be2ae06a1b610b8922e2a091ffa
2017-08-31 15:09:41 -07:00
Bob Silverberg
e98081a6dd Bug 1322308 - Allow WebExtensions to read the overriden homepage and newTab values, r=mixedpuppy
This introduces browser.browserSettings.homepageOverride and browser.browserSettings.newTabPageOverride
which will return the values of the overridden home page and the overridden new tab page.

These browserSettings are read-only.

MozReview-Commit-ID: A9vJP2QIaoA

--HG--
rename : browser/components/extensions/test/browser/browser_ext_url_overrides_home.js => browser/components/extensions/test/browser/browser_ext_chrome_settings_overrides_home.js
extra : rebase_source : 7c3fc91a5ca489b909a8b60d5b4a882180a0276e
2017-07-17 14:16:02 -04:00
Bob Silverberg
8ae9f03df3 Bug 1374552 - Fix i18n.getUILanguage so it does not replace dashes with underscores, r=mixedpuppy
When we implemented this API we converted dashes in the language code to underscores because that is what Chrome did.
Chrome no longer does this, so we need to remove the code that does the replacing.

MozReview-Commit-ID: DuOQ218zXby

--HG--
extra : rebase_source : 7a6727d83bc1959569bd3e4ac47db6911d6cf13d
2017-08-11 09:45:35 -04:00
Chris H-C
28c67cf8bd bug 1376600 - Remove registered(Keyed)Histograms r=Dexter
With the removal of the old addonHistograms, all histograms are now registered.
So removing registered(Keyed)Histograms should be straightforward?

Unfortunately not, as this was how we filtered data based on dataset
(opt-in/opt-out), so a little more fiddling was needed to get C++ to only
serialize dataset-appropriate data (instead of post-facto filtering it in JS).

MozReview-Commit-ID: HDplhmzmzJl

--HG--
extra : rebase_source : 9c38c97e39e3c4fb192288d751505e1f0f2a2c6d
2017-08-22 09:42:09 -04:00
Nicolas Ouellet-Payeur
5a0bb50ea8 Bug 1392148 - Remove aliases to CommonUtils in util.js r=markh
MozReview-Commit-ID: 1fv6AN0TMNW

--HG--
extra : rebase_source : 083c73e50bfdb2dd121aa483e5aa53ae0e35768d
2017-08-24 22:41:44 -07:00
Tomislav Jovanovic
25f753c4cb Bug 1337938 - Add test for permissions localization strings r=aswan,kmag
MozReview-Commit-ID: 27nwTtVLRzE

--HG--
extra : rebase_source : b399d4246a3690de2f684fc68c7e2213400bd2fb
2017-08-26 22:30:35 +02:00
Kevin Jones
c103f1eb75 Bug 1377733 - Add discarded property to tabs.Tab on desktop. r=zombie, r=kmag
--HG--
extra : histedit_source : 618b98850265ef2d26695366d023459e6d0cd2a7
2017-08-31 16:14:26 -06:00
Kris Maglione
6d9956407d Bug 1255894: Part 8 - Add tests for response stream filtering. r=mixedpuppy
MozReview-Commit-ID: 9C2QnNsm1W1

--HG--
extra : rebase_source : 863e2759c72a0f5796909a77af8b7fd17a082289
2017-03-23 12:09:26 -07:00
Kris Maglione
587f846f5f Bug 1255894: Part 7 - Expose response stream filtering via the webRequest API. r=mixedpuppy
MozReview-Commit-ID: AErBFGJyFg5

--HG--
extra : rebase_source : 0718ae27322c60a1ef8b67464dbca7d705f23628
2017-09-02 13:37:31 -07:00
Kris Maglione
e29233744c Bug 1255894: Part 6 - Implement StreamFilter DOM bindings. r=baku,mixedpuppy
MozReview-Commit-ID: 6EaVrIep1gC

--HG--
extra : rebase_source : 0ab8311a87ed6c5bcaa3216a1d84793f76143821
2017-08-27 19:51:36 -07:00
Kris Maglione
ac3c604724 Bug 1255894: Part 5 - Hook up StreamFilterParent as a stream listener. r=dragana,mixedpuppy
This part hooks up the parent side of the StreamListener protocol to the
channel, and implements the event handling and actual IO work.

Dragana, can you please review the network portions, particularly the thread
sanity, and Shane, the integration with the rest of the patch set?


MozReview-Commit-ID: DFuALpSSgA7

--HG--
extra : rebase_source : 14a42ae82dcec171a8a2ec771b0ebaccf7a8a649
2017-04-21 20:40:19 -07:00
Kris Maglione
650abce27e Bug 1255894: Part 4 - Implement StreamFilter IPC protocol. r=baku,mixedpuppy
This part implements the IPC state logic for the stream filters.

Bill, can you please review the IPC and thread sanity, and Shane, the state
logic?

MozReview-Commit-ID: KrVOrdnuwC5

--HG--
extra : rebase_source : d83f89a92ca858792ab378615ca9e6d70b1ab965
2017-09-03 13:45:03 -07:00
Kris Maglione
bbd81a336a Bug 1255894: Part 3 - Create skeleton IPDL framework for OOP stream filters. r=baku
This interface will allow extensions running into a content process to attach
a filtering stream listener to an HTTP request in the parent process. The
content process attaches a listener by sending a message from the content
process containing the ID of the request to filter, and the ID of the add-on
making the request. The permissions and request mappings for this are handled
by the web request service added in part 2.

MozReview-Commit-ID: B7Dd3ywwCBX

--HG--
extra : rebase_source : bf67c87f03c8355109bcc1193fbcb0b1c70ef224
2017-03-22 20:33:05 -07:00
Kris Maglione
5613873ecb Bug 1255894: Part 2 - Add mozIWebRequestService service for tracking filtered requests. r=mixedpuppy
In order to allow extensions running in a content process to connect extension
filters, we need to be able to track which requests they have permissions to
modify, and which processes they have permissions to modify them from.

This interface allows us to register channels that we've dispatched webRequest
listeners for, and the TabParent (and, by proxy, content parent) we've
dispatched them to. Extensions will only be able to filter those channels, and
only from those processes.

MozReview-Commit-ID: 46HTVeQ5ndi

--HG--
extra : rebase_source : aadfadef3b72044302b3f4e6c88a5a06ff138c84
2017-03-23 12:18:29 -07:00
Andreas Wagner
e342b5760e Bug 1390917 - Accept data:image/png and data:image/jpeg as theme background; r=aswan,mikedeboer
MozReview-Commit-ID: 2roQoBrc7mv

--HG--
extra : rebase_source : 286fce68b0dea32e12f86ca92838d5f04d3efbb7
2017-08-17 21:51:36 +02:00
Luca Greco
43ae29fe27 Bug 1341305 - Implement devtools.panels.elements.createSidebarPane and sidebar's setObject APIs. r=aswan
MozReview-Commit-ID: 2OhNuUWY9CP

--HG--
extra : rebase_source : 1d9186f6c3e67891647351c7e660d3c3b6627ebc
2017-07-24 16:58:55 +02:00
Andrew Swan
1e8af6f7ac Bug 1393156 Legacy extension test loose ends r=kmag
Change webextensions experiments test to use the shimmed certficiate DB
instead of the extensions.legacy.enabled pref.
In builds that don't honor the extensions.legacy.enabled pref, disable
test_legacy.js since that tests that flipping that preference works properly.
Finally, remove a now doubly-obsolete test of plugins embedded in xpis.

MozReview-Commit-ID: JiRdgCXyjKR

--HG--
extra : rebase_source : f0c7672b0755993bd20f9fc84e242eb76cb949ef
2017-08-26 08:55:20 -07:00
Phil Ringnalda
5e0cb1d330 Merge m-c to m-i
MozReview-Commit-ID: 3TTO51aTTST
2017-08-26 18:20:19 -07:00
Wes Kocher
7ea5ed6e6a Merge m-c to autoland, a=merge
MozReview-Commit-ID: LEKykpTAKjv
2017-08-25 17:32:33 -07:00
Shane Caraveo
59020b3a07 Bug 1388889 fix null principal handling for webrequest, r=kmag
MozReview-Commit-ID: B8qK4ZnaO9i

--HG--
extra : rebase_source : d8f1abed1f46bd6a57a0140443fb2e34e8f20497
2017-08-25 14:12:42 -07:00
Shane Caraveo
9b513f8bd3 Bug 1373646 add nsIProxyInfo to webrequest, r=kmag
MozReview-Commit-ID: pc98rgtkVc

--HG--
extra : rebase_source : d4655e6851a402616908bc32a2e119cb679a340f
2017-08-23 10:43:04 -07:00
Shane Caraveo
0012e18180 Bug 1388289 fix challenger info for proxy auth requests, r=kmag
MozReview-Commit-ID: D0Tin2bK8R4

--HG--
extra : rebase_source : b4f299fd9c2fe404f7450c16da4a5127fa3cfd9f
2017-08-17 19:56:22 -07:00
Kevin Jones
841456a51c Bug 1332144 - Add browser.find extension API. r=mikedeboer, r=mixedpuppy
Provides access to the browser's internal Find APIs.  Can search,
get range data and rect data on found results, and highlight results.

--HG--
extra : amend_source : dfa2b36794543378db58e411ca4e317a64921831
2017-08-24 18:24:00 -04:00
Tomislav Jovanovic
5b4daf074a Bug 1389968 - Reject sendMessage() promise when response handle gets GCd r=kmag
MozReview-Commit-ID: C2g3VSWYKuz

--HG--
extra : rebase_source : 60c0b6553956413f8d9b73f88fbae601537c53c4
2017-08-23 00:16:48 +02:00
Kris Maglione
620fec28ff Bug 1392653: Remove redundant LegacyExtensionUtils shutdown blocker. r=aswan
The base Extension class now handles adding shutdown blockers and waiting for
extension startup before beginning shutdown, so the redundant logic only
causes problems.

MozReview-Commit-ID: 2gBWlmIs1KQ

--HG--
extra : rebase_source : 404174754735b8477abf6f13d312bc6b3aebdb83
2017-08-24 15:01:55 -07:00
Kris Maglione
54d232094f Bug 1356376: Wait for message manager to disconnect after closing content page. r=aswan
This may or may not fix the intermittent, but hopefully it will.

MozReview-Commit-ID: BR0BtV4BPdq

--HG--
extra : rebase_source : 017933bd5f53e1e3ea6c082e2240519b25168255
2017-08-24 14:57:18 -07:00
Ryan VanderMeulen
2f60ba6fc6 Merge m-c to autoland. a=merge
CLOSED TREE

--HG--
extra : amend_source : 57c6e5e3155c1ad79d409f8a71c40704297b0600
2017-08-24 20:59:40 -04:00
Ryan VanderMeulen
3d0158833d Merge autoland to m-c. a=merge 2017-08-24 20:20:08 -04:00
Shane Caraveo
66f20a68a1 Bug 1389718 fix receiving a message in proxy sandbox when running OOP, r=kmag
MozReview-Commit-ID: xgHIph36SG

--HG--
extra : rebase_source : 90010f086b713f7308d0f0367d96f6f79284b28a
2017-08-24 12:49:56 -07:00
Shane Caraveo
9a9c3cc30f Bug 1393402 set longer timeout for document load r=mixedpuppy
MozReview-Commit-ID: BSWPMaNvtwG

--HG--
extra : rebase_source : c1c76f5d85e5e8ba52217e012dc5ad42382eb7a2
2017-08-24 14:35:31 -07:00
Dan Banner
f1eb5aaa84 Bug 1392119 - Enable the ESLint no-caller rule across mozilla-central r=standard8
MozReview-Commit-ID: JOC1330iFnh

--HG--
extra : rebase_source : 2afcb219d4a0d78f996bdc2c841456d2dccff605
2017-08-23 13:38:24 +01:00
Kris Maglione
3d16325eaf Bug 1391405: Part 6 - Use native helper for extracting enumerable properties. r=zombie
MozReview-Commit-ID: JqSrGUVVauE

--HG--
extra : rebase_source : 1ffb3fdc2688052d768264f105492199e3ced598
extra : histedit_source : cdb9ea7630b674c9e446e28def08a0fc204b99b6
2017-08-17 16:06:15 -07:00
Kris Maglione
8d30fc2d2c Bug 1391405: Part 4 - Avoid easily-avoidable regexp. r=zombie
MozReview-Commit-ID: 6xAr5hGxm2r

--HG--
extra : rebase_source : eef7eb12615faaf6fa9adc87685ef74be9413a0c
extra : histedit_source : 0c1eb852ea025f8eb9c75dc15706da6f88cb475b
2017-08-17 14:45:30 -07:00
Kris Maglione
cbddab6266 Bug 1391405: Part 3b - Speed up schema normalization for choices types some more. r=zombie
Like part a, but for `choices` messages rather than error messages.

MozReview-Commit-ID: 7dJ0NL2fUh5

--HG--
extra : rebase_source : 477f1364c0904bde78d54eae083bdb8e49ee5732
extra : histedit_source : 38c336b3a59481b6f2523798367159fb757c6485
2017-08-24 13:03:42 -07:00
Kris Maglione
7325526f5a Bug 1391405: Part 3a - Speed up schema normalization for choices types. r=zombie
For choices types, when one choice fails, we don't need the original error
string, since another choice may succeed, and we generate the final error
based on all of the options. Nevertheless, we spend a lot of time generating
JSON strings for the failed inputs in those cases, which adds up to about 12%
of the remaining overhead at this point.

MozReview-Commit-ID: 6nXBAv2W20V

--HG--
extra : rebase_source : 5894bc4b9e8d64ac9505f27240ea4fabfcb5f02f
extra : histedit_source : 0e8b5e0315abd672a57a60420453a1e0681c9df6
2017-08-18 11:49:13 -07:00
Kris Maglione
d727073568 Bug 1391405: Part 2 - Speed up base type normalization. r=zombie
The Array and ArrayBuffer type checks we do in getBaseType add up to a
significant amount of overhead given the number of times we call them,
especially when X-ray overhead comes into play. These changes allow us to
avoid X-ray overhead altogether.

MozReview-Commit-ID: KlRuxeElIfp

--HG--
extra : rebase_source : c7f00fb8c35965476e7c7b888b6af36714c1323f
extra : histedit_source : fc559e665e60e9bbb688eebe6c6e6da5dacec748
2017-08-17 14:23:15 -07:00
Sebastian Hengst
5b02cef919 Backed out changeset 0f63d6c1f3c6 (bug 1377533) for frequently failing xpcshell's toolkit/components/extensions/test/xpcshell/test_ext_api_permissions.js. r=backout 2017-08-24 18:34:43 +02:00
Tim Nguyen
839ca6c29e Bug 1389465 - Allow changing urlbar and search input background and text color. r=dao,jaws
MozReview-Commit-ID: HrjxTbNwlEK

--HG--
extra : rebase_source : 31eb3f1792f0813d7aad484ac12d37f68161d42b
2017-08-24 15:55:02 +02:00
Mathieu Leplatre
5361ecfb8d Bug 1377533 - Remove scattered references to Kinto and Sqlite in blocklist clients r=glasserc,mgoodwin
MozReview-Commit-ID: FExozSDHgNN

--HG--
extra : rebase_source : 3c02d9d13ed9d417171305bf7aa3523b69b8a3fb
2017-06-30 12:07:28 -07:00
Luca Greco
1eb56fb9fc Bug 1392872 - Fix missing startup/shutdown reason in LegacyExtensionsUtils. r=aswan
MozReview-Commit-ID: K8pyxR7Vhpl

--HG--
extra : rebase_source : 7f6794e29e8a62b0887bc127bd05c142e28e2c89
2017-08-23 15:43:09 +02:00
Sebastian Hengst
1daf61f110 Backed out changeset aa772cbe4a8e (bug 1392872) for eslint failures in LegacyExtensionsUtils.jsm. r=backout 2017-08-24 13:52:21 +02:00
Sebastian Hengst
ab6a6e1367 merge mozilla-central to autoland. r=merge a=merge 2017-08-24 13:30:00 +02:00
Sebastian Hengst
aeacc34883 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 6TGQRm8SSk0
2017-08-24 13:28:57 +02:00
Luca Greco
40aec4e04a Bug 1392872 - Fix missing startup/shutdown reason in LegacyExtensionsUtils. r=aswan
MozReview-Commit-ID: K8pyxR7Vhpl

--HG--
extra : rebase_source : 80d5a5b820969226fd7d297991ef76b1037b6e11
2017-08-23 15:43:09 +02:00
Kris Maglione
821308e4d1 Bug 1391110: Part 4 - Remove unnecessary nsIFrameLoaderOwner QIs. r=smaug
The FrameLoaderOwner interface has been implemented in WebIDL for several
years now, so these QIs are simply unnecessary overhead.

MozReview-Commit-ID: LAzvfm5Qhy0

--HG--
extra : rebase_source : 2495c07df21c474f5fabc257ff4db43b0d8047e4
2017-08-19 13:32:58 -07:00
Tim Nguyen
cbab6d9aea Bug 1392270 - Fix download.estimatedEndTime calculation. r=aswan
MozReview-Commit-ID: HqyYLtTC3N6

--HG--
extra : rebase_source : be06517bd1bee99676a3bedd6fb16f35f82e788b
2017-08-22 20:32:11 +02:00
Shane Caraveo
634772cb66 Bug 1390346 test jar caching in combination with redirects, r=rpl
MozReview-Commit-ID: 6sFdcruieh6

--HG--
extra : rebase_source : 0cdbe20552055a7458c20eb5f2fb85021fdad309
2017-08-18 10:59:44 -07:00
Joel Maher
3184c2e899 Bug 1258897 - disable test_ext_sendmessage_reply2.html. r=me a=testonly 2017-08-22 14:39:44 -04:00
Nicholas Nethercote
4a623e6df4 Bug 1385172 - Replace nsEscapeHTML{,2}() with new nsAppendEscapedHTML() function. r=erahm.
The existing functions work with C strings but almost all the call sites use
Mozilla strings.

The replacement function has the following properties.

- It works with Mozilla strings, which makes it much simpler and also improves
  the call sites.

- It appends to the destination string because that's what a lot of the call
  sites need. For those that don't, we can just append to an empty string.

- It is declared outside the |extern "C"| section because there is no need for
  it to be in that section.

Note: there is no 16-bit variant of nsAppendEscapedHTML(). This is because
there are only two places that need 16-bit variants, both rarely executed,
and so converting to and from 8-bit is good enough.

The patch also adds some testing of the new function, renaming
TestEscapeURL.cpp as TestEscape.cpp in the process, because that file is now
testing other kinds of escaping.

--HG--
rename : xpcom/tests/gtest/TestEscapeURL.cpp => xpcom/tests/gtest/TestEscape.cpp
extra : rebase_source : 51145ae2c9b0b4573c7ea0c342dcb246f9f14fb9
2017-08-18 12:00:59 +10:00
Thomas Wisniewski
99ee6030a0 Bug 1392003 - Support estimatedEndTime in DownloadItem; r=aswan
MozReview-Commit-ID: 4Yzj52qI1Mz

--HG--
extra : rebase_source : ccfa669ec432887f3459a13758c42206ccb2d85c
2017-08-19 15:06:46 -04:00
Phil Ringnalda
9359f5bf39 Merge inbound to m-c, a=merge
MozReview-Commit-ID: LCCoXUsCtmv
2017-08-19 15:29:10 -07:00
Wes Kocher
bb19458d5f Merge m-c to inbound, a=merge
MozReview-Commit-ID: EgYue63nSkv
2017-08-18 16:29:11 -07:00
Wes Kocher
b1fc5e008c Merge inbound to central, a=merge
MozReview-Commit-ID: 4cWGBbMEU2x
2017-08-18 15:53:07 -07:00
Shane Caraveo
4437e84fb7 Bug 1391720 remove _blank support for background pages, r=kmag
MozReview-Commit-ID: aRpNSrE483

--HG--
extra : rebase_source : f6a037937350ee7d8f502a9060459a073bd60190
2017-08-18 11:30:01 -07:00
Kris Maglione
284215aa51 Bug 1389840: Part 2 - Store last optional permissions state in the startup cache. r=aswan
MozReview-Commit-ID: 95krDpu1JZr

--HG--
extra : rebase_source : 94772c6cf184fe78715eda018841a3b0d58f3d42
2017-08-12 14:42:44 -07:00
Kris Maglione
b4e8a4e72d Bug 1391472: Part 2 - Cache normalized icon data for non-string values. r=mixedpuppy
It turns out that stringifying a paths object is much cheaper than normalizing
it, and has the added benefit of allowing us to use cached CSS text for the
result.

MozReview-Commit-ID: 5gIqcDmPiKr

--HG--
extra : rebase_source : 59f6a75eac976abb85fe37440469e589282f7b01
2017-08-18 11:54:18 -07:00
Kris Maglione
40665c5e59 Bug 1391472: Part 1 - Remove integer property check from IconDetails.normalize. r=mixedpuppy
We already do this check at the schema level, so the added check in
IconDetails is unnecessary.

MozReview-Commit-ID: JTEE0xWH0a4

--HG--
extra : rebase_source : baad0a75438cdf126e0ba8df4055be50f3281d2a
2017-08-18 12:25:40 -07:00
Kris Maglione
426dea9932 Bug 1391353: Try to avoid keeping message data alive while waiting for responses. r=zombie
MozReview-Commit-ID: 5JAUBWufpsf

--HG--
extra : rebase_source : 379c6fbf6661ca8d05dff55547ac2c60c2e1e23b
2017-08-17 11:41:55 -07:00
Kris Maglione
34cfa555d7 Bug 1391310: Optimize runSafe/wrapPromise to avoid wrapper/spread arg/rest arg overhead. r=zombie
Lots of little bits of overhead add up to a significant amount of overhead
over the many, many times this function is called.

MozReview-Commit-ID: BYTWxqc8rH9

--HG--
extra : rebase_source : 3b22f9ca1de504a383eef5760e43dc783c2b3b93
2017-08-18 11:53:25 -07:00
Kris Maglione
e24e9d802d Bug 1391158: Optimize checkLoadURL for the common case of extension URLs. r=mixedpuppy
MozReview-Commit-ID: KGFFcHxQSvZ

--HG--
extra : rebase_source : f4b62ad095077a65e11c6b8354ce54fa2d2ff252
2017-08-16 23:03:15 -07:00
Kris Maglione
041996d10e Bug 1391153: Get rid of Sandbox clone for cross-process API calls. r=mixedpuppy
MozReview-Commit-ID: A9g6s5jqd78

--HG--
extra : rebase_source : a80e6e81d8b21ebb6125f38b8efb89db17b47b75
2017-08-16 22:16:31 -07:00
Julian Descottes
60c637855b Bug 1374735 - stop exposing devtools require to extensions ext-* files;r=kmag CLOSED TREE
There is no longer any file in components/extensions/ext-* that use require().
Therefore it should be ok to stop exposing it.

MozReview-Commit-ID: EgZYBludlcy

--HG--
extra : source : 50a36fb7c7f97682ea9d2651b0edec306d466b5c
extra : amend_source : af2184bbf188df138b3a2b23d7031b2de5534e25
2017-06-22 21:04:02 +02:00
Julian Descottes
d148f3f8c0 Bug 1374735 - use DevToolsShim to open browser console from extensions;r=bgrins,kmag
MozReview-Commit-ID: GJQ7fcw1L8i

--HG--
extra : source : da075933f7bcd9e3b7ff735879c521bb50f28b7a
2017-07-24 12:12:47 +02:00
Ryan VanderMeulen
b708734864 Backed out 4 changesets (bug 1374735) for test_ext_i18n.js failures on a CLOSED TREE.
Backed out changeset 50a36fb7c7f9 (bug 1374735)
Backed out changeset da075933f7bc (bug 1374735)
Backed out changeset b7435cd66ce3 (bug 1374735)
Backed out changeset 22baf4e67730 (bug 1374735)
2017-08-18 12:34:22 -04:00
Julian Descottes
804e145ac8 Bug 1374735 - stop exposing devtools require to extensions ext-* files;r=kmag
There is no longer any file in components/extensions/ext-* that use require().
Therefore it should be ok to stop exposing it.

MozReview-Commit-ID: EgZYBludlcy

--HG--
extra : rebase_source : f83d8bf4bb413c246efe3c25767cc203f127423e
2017-06-22 21:04:02 +02:00
Julian Descottes
e88a15e62e Bug 1374735 - use DevToolsShim to open browser console from extensions;r=bgrins,kmag
MozReview-Commit-ID: GJQ7fcw1L8i

--HG--
extra : rebase_source : 6a079c88e5908cc8f8a021bb0a12ea44670bc5ce
2017-07-24 12:12:47 +02:00
Carsten "Tomcat" Book
99aa3f8e70 Merge mozilla-central to mozilla-inbound 2017-08-17 13:13:10 +02:00
Kris Maglione
cc7b4984ba Bug 1391099: Avoid using checkLoadURIStrWithPrincipal. r=mixedpuppy
checkLoadURIStrWithPrincipal runs URLs through the URI fixup services and
checks against each of the results. This is both expensive and unnecessary for
our purposes.

MozReview-Commit-ID: 4L2Z4KuMZhQ

--HG--
extra : rebase_source : 9b72c8e4c6b0a48541b94871f507ce029be664c7
extra : amend_source : d20b032a6ddf9b9804a14e528094bc6867d5b728
2017-08-16 16:29:06 -07:00
Kris Maglione
b6480eaf24 Bug 1238314: Part 2 - Implement browser.tabs openerTabId functionality. r=aswan
MozReview-Commit-ID: L4ycNoQDfa

--HG--
extra : rebase_source : 6c7a92cd6a068d446d60469637ebc88b4355671d
2017-08-04 16:13:59 -07:00
Jonathan Kingston
527065dfaf Bug 1390738 - Await pref changes in contextual identities tests r=aswan
MozReview-Commit-ID: 66PgXLu8MSS

--HG--
extra : rebase_source : 88e2147d3aae1face0e5d1337e50306ada0ed0f1
2017-08-16 15:41:34 +01:00
Kris Maglione
0b7f305645 Bug 1357589: Part 2 - Test that opening web URLs from extension iframes works correctly. r=mixedpuppy
MozReview-Commit-ID: HJq14t2DcAy

--HG--
extra : rebase_source : 0e2b04e6a5a17001a6b04dc6347d13c8e1e53444
2017-06-30 14:14:01 -07:00
Shane Caraveo
e1b628b3c2 Bug 1368527 test event timing using hsts,r=dragana,kmag
MozReview-Commit-ID: Dbb56Bkicdd

--HG--
extra : rebase_source : 7ff58aabbe1e4d32c65ecd79f1eaedbd9d9144a0
2017-08-15 13:13:06 -07:00
Kris Maglione
7788abbf4f Bug 1356334: Part 4 - Add a helper to synchronously get an extension's name from its ID. r=billm
MozReview-Commit-ID: 8nuvM4PR7XR

--HG--
extra : source : b2a663ffd1446f9f70b220866855a0ecb3503761
extra : histedit_source : 16847e7aececf6c944bbb6b21639629c60bcdc93
2017-08-11 21:22:18 -07:00
Kris Maglione
faa8815613 Bug 1356334: Part 3 - Enforce a stricter slow script timeout for extension content scripts. r=billm
MozReview-Commit-ID: LLvPQn1x1Xj

--HG--
extra : source : 805c568069301ae91ead5780cdc118af73907229
extra : histedit_source : b188836d1dc3ad8021bf2d0b1c89aebedf2db185%2C8c7b51c9f4af4eb5ad67811c29b56c72b43fa31d
2017-08-18 11:04:55 -07:00
Ryan VanderMeulen
3fe1f45009 Backed out 8 changesets (bug 1356334) for frequent test_ext_contentscript_async_loading.html failures on Android debug on a CLOSED TREE.
Backed out changeset 9c677ebfdda0 (bug 1356334)
Backed out changeset 16b49fd1c38a (bug 1356334)
Backed out changeset 4f5bcd2b2dc6 (bug 1356334)
Backed out changeset d832803270ac (bug 1356334)
Backed out changeset b83aea215a82 (bug 1356334)
Backed out changeset b2a663ffd144 (bug 1356334)
Backed out changeset 805c56806930 (bug 1356334)
Backed out changeset 7c880eca810a (bug 1356334)
2017-08-18 11:32:18 -04:00
Shane Caraveo
1fe5a3a13e Bug 1388902 remove socialapi share, r=florian
MozReview-Commit-ID: Kcjugf3Ql6y

--HG--
extra : rebase_source : 8f82fa6beabfa89916bbc97ec799c6e5d6b3ff18
2017-08-16 08:54:21 -07:00
Jonathan Kingston
7726ed4123 Bug 1389265 - Change contextual identity web extension APIs to reject instead of returning null. r=aswan
MozReview-Commit-ID: 8htcRhzsj05

--HG--
extra : rebase_source : d57d05a4c2927f3f8505a925f7bf98352fb83132
2017-08-16 03:09:48 +01:00
Mark Striemer
dd8500b327 Bug 1345158 - Implement privacy.websites.trackingProtectionMode r=aswan,bsilverberg
MozReview-Commit-ID: Lf88M4V4JEJ

--HG--
extra : rebase_source : 8b7a716a2e82ce31f0500afe0e4342ef7bc94064
2017-08-09 15:47:02 -05:00
Jonathan Kingston
e85c570484 Bug 1354602 - Enabling containers for container addons on startup. r=aswan,mconley,zombie
MozReview-Commit-ID: BXLyQz8CGDl

--HG--
extra : rebase_source : a969c5ff0615a461b33a9ee82f9459c883421c61
2017-08-13 16:17:41 +01:00
Carsten "Tomcat" Book
6b36e00b7c merge mozilla-inbound to mozilla-central a=merge 2017-08-15 11:42:11 +02:00
Kris Maglione
f5a338a504 Bug 1390010: Follow-up: Fix debug test bustage.
MozReview-Commit-ID: HLdhuWN36Hu
2017-08-14 23:50:47 -07:00
Kris Maglione
d003f8b90f Bug 1390010: Part 3 - Limit the amount of schema data sent to web content processes. r=zombie
Web contetnt processes only need access to a small amount of schema data, but
we currently send them the approximately 600K of full schema data that is
mostly useless to them.

This patch limits the schema data sent to web content processes to what they
actually need, and sends the rest only to extension content processes.

MozReview-Commit-ID: 6G0LThNTOu1

--HG--
extra : rebase_source : 36672ad6323e6466bba3e463fa4f0a16e3fd9090
2017-08-13 19:00:24 -07:00
Kris Maglione
04d337c543 Bug 1387907: Follow-up: Move identity module init data to ext-browser.json.
MozReview-Commit-ID: Jw8gNOGDuxw

--HG--
extra : rebase_source : 608b5287cc9ee55dc25b2d453c320e5b713c2a8b
2017-08-12 17:41:34 -07:00
Kris Maglione
091594dcb0 Bug 1389861: Remove needless overhead from same-process policy initialization. r=zombie
MozReview-Commit-ID: 3E7hnNnk46D

--HG--
extra : rebase_source : fc4f44f3d5607bbc06d03c215d24b4cb8569d7f1
2017-08-12 17:21:27 -07:00
Kris Maglione
c77a0e7c41 Bug 1389856: Optimize EventEmitter.emit for the common case. r=zombie
MozReview-Commit-ID: 3dbgZfG7l8T

--HG--
extra : rebase_source : 828ec8da7a9d714f9ebdcd850b779b05f1398725
2017-08-13 12:07:01 -07:00
Kris Maglione
a279f88d8b Bug 1389855: Remove lazy imports from MessageChannel.jsm. r=zombie
MozReview-Commit-ID: A1d5WdrMB3K

--HG--
extra : rebase_source : 54281821028333a26e4a59b74d10a27aee04eb47
2017-08-12 18:05:06 -07:00
Kris Maglione
cdfa0d9032 Bug 1389854: Don't define lazy getter for uninstall preferences. r=aswan
These getters are checked very rarely, and not at all in most sessions. They
don't justify the overhead of adding lazy getters at startup.

MozReview-Commit-ID: 9XVlLapNJCE

--HG--
extra : rebase_source : edff8e878528952aeec851203edaa4d41e37e24d
2017-08-12 16:21:17 -07:00
Kris Maglione
7da155b917 Bug 1389847: Don't add caller location to sandbox name if an explicit name is provided. r=krizsa
MozReview-Commit-ID: KOGrrMurs6X

--HG--
extra : rebase_source : ec9bae4b7a40f7916a813905346f124e62516b9a
2017-08-12 16:01:00 -07:00
Kris Maglione
c299700b20 Bug 1389849: Remove ext-geolocation.js. r=mixedpuppy
MozReview-Commit-ID: BJTAIsxVlKL

--HG--
extra : rebase_source : 934413b58e61f1c415f9187c05c08a11ad0a521d
2017-08-12 15:48:02 -07:00
Kris Maglione
ad9a658f36 Bug 1389840: Part 1 - Store more computed manifest data in startup cache. r=aswan
MozReview-Commit-ID: 3qprhdfvTVs

--HG--
extra : rebase_source : 0430d087e3d4278117fce2914f1cb96bc196e7ae
2017-08-12 14:51:08 -07:00
Robert Helmer
c380d85502 Bug 1372750 - allow generated embedded extensions to work in xpcshell tests r=kmag
MozReview-Commit-ID: AkCnoUTldhI

--HG--
extra : rebase_source : 69e36d7e462ed26740874dbf96a695dd92bdb850
2017-06-21 12:46:57 -07:00
Sebastian Hengst
7aba8fd282 merge mozilla-central to autoland. r=merge a=merge 2017-08-14 01:31:43 +02:00
Jonathan Kingston
8c2a7e0104 Bug 1344519 - Add web extension events for containers onUpdated, onCreated and onRemoved r=aswan,baku
MozReview-Commit-ID: 9Zxjc1J2CAt

--HG--
extra : rebase_source : 6f43dd8c245a180a10ef9b38b2a5de5b89b93248
2017-05-14 00:39:32 +01:00
Tomislav Jovanovic
85a5f1f9a2 Bug 1377734 - Avoid instantiating a lazy tab from sendMessage, r=mixedpuppy
MozReview-Commit-ID: KfYg6hG8KmC

--HG--
extra : rebase_source : c151eebcc585cbfa526b328985e23759edaf7bc4
2017-08-11 02:16:33 +02:00
Wes Kocher
677cf14fe6 Backed out changeset 6f71999ab349 (bug 1377734) for failures in test_ext_tab_runtimeConnect.html a=backout
MozReview-Commit-ID: LU18pnnbm5z
2017-08-11 11:58:28 -07:00
Brian Grinstead
0262e6e6ac Bug 1388552 - Export the HUDService object directly instead of individual methods and properties;r=nchevobbe
MozReview-Commit-ID: 9AYCuqqv1U7

--HG--
extra : rebase_source : 83612fd2c4edfde5c86cfc11a70682cc74ebfa12
2017-08-11 09:07:04 -07:00
Tomislav Jovanovic
92117a8c9e Bug 1377734 - Avoid instantiating a lazy tab from sendMessage, r=mixedpuppy
MozReview-Commit-ID: KfYg6hG8KmC

--HG--
extra : rebase_source : 89d3417a32d9ca5be4a850336636d3031b3c7e80
2017-08-11 02:16:33 +02:00
Masatoshi Kimura
32e5d77ba4 Bug 1387805 - Remove [deprecated] nsIScriptSecurityManager.getCodebasePrincipal(). r=bz
MozReview-Commit-ID: CY47PBaQ5oy

--HG--
extra : rebase_source : 6a82bae0d3caafadc772a08a1d392ab30c4ad914
2017-08-06 15:31:31 +09:00
Wes Kocher
cff9e9b197 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 2YvHbITn9w3
2017-08-10 18:25:34 -07:00
Kris Maglione
c6d9379091 Bug 1350646: Part 5 - Remove sdk/addon/* modules. r=Mossop
MozReview-Commit-ID: 7QvnQX7Qx2O

--HG--
extra : source : 7687db57501117fc79102f78cdefecaa7d16c8e0
2017-08-09 14:46:01 -07:00
Phil Ringnalda
ca2c01b0ad Backed out 22 changesets (bug 1350646) for talos damp failures
Backed out changeset c3108aebee35 (bug 1350646)
Backed out changeset ee8f7fa9d410 (bug 1350646)
Backed out changeset 79e77c06ff44 (bug 1350646)
Backed out changeset 5584fdcd2ee0 (bug 1350646)
Backed out changeset 7571b064a77e (bug 1350646)
Backed out changeset 7f65323c56f9 (bug 1350646)
Backed out changeset 10bbf7c53afe (bug 1350646)
Backed out changeset e40544ead983 (bug 1350646)
Backed out changeset 5eb77e6de0a3 (bug 1350646)
Backed out changeset 6d9244a8ac40 (bug 1350646)
Backed out changeset 13110c98b0fd (bug 1350646)
Backed out changeset 096ff315b48b (bug 1350646)
Backed out changeset 57500d9ea832 (bug 1350646)
Backed out changeset 5a45d9e25a00 (bug 1350646)
Backed out changeset e931e4ff5e11 (bug 1350646)
Backed out changeset d914c050c965 (bug 1350646)
Backed out changeset 35c4d4cd77c7 (bug 1350646)
Backed out changeset 7687db575011 (bug 1350646)
Backed out changeset c68367bb0eb3 (bug 1350646)
Backed out changeset 3ca040743aeb (bug 1350646)
Backed out changeset 8d4c2f001354 (bug 1350646)
Backed out changeset 67c251e2c9db (bug 1350646)

MozReview-Commit-ID: GLM80BkVx85
2017-08-09 20:03:17 -07:00
Kris Maglione
b7087a5bdd Bug 1350646: Part 5 - Remove sdk/addon/* modules. r=Mossop
MozReview-Commit-ID: 7QvnQX7Qx2O

--HG--
extra : rebase_source : 29f26e5e7cfd9bfa72cafa6373b7e7aaa7eeab71
2017-08-09 14:46:01 -07:00
Kris Maglione
7406e691fb Bug 1388211: Follow-up: Fix merge bustage.
MozReview-Commit-ID: 7E3nPGvIBGG
2017-08-09 15:27:41 -07:00
Kris Maglione
186677c392 Bug 1388211: Fold ExtensionAPI.jsm into ExtensionCommon.jsm. r=mixedpuppy
We always load one when we load the other, so there's no need for the overhead
of a separate JSM.

MozReview-Commit-ID: 8u4OhJJEN3b

--HG--
extra : rebase_source : f2c7afc7aba3b86af8be0345ad8f596c31adc206
2017-08-07 17:58:14 -07:00
Kris Maglione
e1d34cd3c9 Bug 1388208: Stop using FileUtils.getFile. r=zombie
This performs main thread IO to make sure that directories exist, which is not
something we should be doing on the startup path.

MozReview-Commit-ID: 2NrgRgY5ua6

--HG--
extra : rebase_source : beded8238f62ab9134748ac5a96b95b0826fa74b
2017-08-07 17:42:13 -07:00
Kris Maglione
0ecfcbc93e Bug 1388215: Part 3 - Use JIT-friendly defineLazy*Getters methods when defining many lazy imports. r=florian
MozReview-Commit-ID: APoFwUhDFdj

--HG--
extra : rebase_source : 15761873b91efaf1d338b6361bf7168ab4348e0d
2017-08-09 13:03:36 -07:00
Andrew Swan
51e91c702d Bug 1388946 Part 1 Fix test for default-disabled legacy extensions r=kmag
MozReview-Commit-ID: 6NK5SSq36EZ

--HG--
extra : rebase_source : a93e0dea52938f00ba9b6875bcdeb623022bb640
2017-08-09 20:00:35 -07:00
ahillier
aea3262f4b Bug 1382819 - Allow non-lowercase names for API extension experiments r=aswan,bsilverberg
Modify test_ext_experiments.js to use a non-lowercase id and name to catch a future regression

MozReview-Commit-ID: BRy2XNOtBXO

--HG--
extra : rebase_source : 12d5037626e7360e673cf05019db3588ddb1b492
2017-08-04 09:56:45 -04:00
Carsten "Tomcat" Book
635b24e121 Merge mozilla-central to autoland 2017-08-08 13:25:29 +02:00
dagasatvik
d4398e95f2 Bug 1385820 - Enable the ESLint no-new-wrappers rule across mozilla-central; r=markh,standard8
MozReview-Commit-ID: FvJO3ibeiwg

--HG--
extra : rebase_source : 5fc5c6760924da81a6d0708ff0d5586fc62c8c5e
2017-08-07 23:57:51 +05:30
Kris Maglione
701fb54270 Bug 1387907: Part 3 - Merge ext-browser.js and ext-utils.js. r=mixedpuppy
MozReview-Commit-ID: CmOax5b5Gki

--HG--
extra : rebase_source : d0200575bfe49607f277cef5aea3da920852fd45
2017-08-06 18:20:25 -07:00
Kris Maglione
d0f7ccc7be Bug 1387907: Part 2 - Store computed module data in the startup cache. r=mixedpuppy
MozReview-Commit-ID: 4PV4z870GTb

--HG--
rename : browser/components/extensions/ext-browser.js => browser/components/extensions/ext-browser.json
rename : toolkit/components/extensions/ext-toolkit.js => toolkit/components/extensions/ext-toolkit.json
extra : rebase_source : d0909d381724c65877517873b57e78d474948376
2017-08-06 18:04:28 -07:00
Kris Maglione
90e5e54ec2 Bug 1387899: Part 1 - Cache browserAction icon data for startup. r=mixedpuppy
MozReview-Commit-ID: 57ANCciibCn

--HG--
extra : rebase_source : da636dc48d07951d973965f4c662d7aa048c715e
2017-08-06 16:12:14 -07:00
Kris Maglione
0a92c7bb9b Bug 1387898: Remove unnecessary uses of EventEmitter.decorate. r=mixedpuppy
MozReview-Commit-ID: FRCdXHc3S4K

--HG--
extra : rebase_source : 4d7eb8614745fdbcac37b101a617d7aa3d43eea0
2017-08-07 14:42:57 -07:00
Kris Maglione
3ba231e141 Bug 1387789: Convert ExtensionTabs.jsm to ext-tabs-base.js. r=mixedpuppy
This moves it to the same compartment as the code that it interfaces with the
most often, and allows for much more effective JIT optimizations.

MozReview-Commit-ID: FZcogI4d4rv

--HG--
rename : toolkit/components/extensions/ExtensionTabs.jsm => toolkit/components/extensions/ext-tabs-base.js
extra : rebase_source : 9928f7e36e4d65401ebb420dddfbcfcdbb11226f
2017-08-05 18:42:01 -07:00
Kris Maglione
ceb2ea3854 Bug 1356273: Part 2 - Add tests that document.open()/write() only loads content scripts once. r=aswan
The combination of "match_about_blank": true and "run_at": "document_start"
can potentially cause content scripts to run twice for the same document, once
for the intermediate about:blank document created by the document.open() call,
and again for the same document with its final URL after it's been fully
setup.

This test ensures that that behavior doesn't regress.

MozReview-Commit-ID: 9XSfW3rEL4f

--HG--
extra : rebase_source : e206bccd8fad648ebb152418c8784b0a4739fcab
2017-08-03 15:21:22 -07:00
Sebastian Hengst
39ccebaf18 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 9IxbB2vCH4S
2017-08-05 11:55:25 +02:00
Kris Maglione
9c95f65043 Bug 1385880: Part 2 - Store promise returned by bootstrap startup method. r=aswan
This is also the first step in moving async startup/shutdown tracking into the
add-on manager.

MozReview-Commit-ID: Uf4ecSW77S

--HG--
extra : rebase_source : 16029f3c84feec4b98b23b3beabf763978a6b60d
extra : histedit_source : a7478fd19ebd6fa827856f299ebb824f29db5575
2017-08-04 13:20:36 -07:00
Kris Maglione
2a0de7a281 Bug 1385880: Part 1 - Remove WebExtensionBootstrap.js. r=aswan
MozReview-Commit-ID: X4JoEC61TF

--HG--
extra : rebase_source : 3947f6e19224458908deaebb8fcca4808b28540c
extra : histedit_source : 5052190e259539037083f7e66a91e8ea78a1d319%2C82a29ad415665027f7ba0b6333af0c3f58b1592d
2017-08-04 23:12:24 -07:00
Tim Nguyen
d39d5da963 Bug 1342712 - Allow scoping a theme per-window. r=jaws
MozReview-Commit-ID: FYsmgz5qAjx

--HG--
extra : rebase_source : 4f82c2bc8c1fabb5fac14f79bdc0e148ba8a6304
2017-08-04 20:08:57 +00:00
Tomislav Jovanovic
930d5055ae Bug 1385864 - Drop invalid optional_permissions from manifests r=kmag
MozReview-Commit-ID: Df2wjNOTVkF

--HG--
extra : rebase_source : c185d2908a8d39d77d145b872e7e977d6d3973e7
2017-08-04 00:26:50 +02:00
Rob Wu
45c3a7524e Bug 1362448 - Support "incognito" in downloads.create r=aswan
MozReview-Commit-ID: HN3x6eFT9xB

--HG--
extra : rebase_source : 304d5317dc950a90c63d1f46b3f42f68d0d9927a
2017-07-14 17:14:18 +02:00
Wes Kocher
9b971049a6 Backed out changeset 31db4b302143 (bug 1344519) for android xpcshell test_basic.js failures a=backout CLOSED TREE
MozReview-Commit-ID: KUR8cqMGGDJ
2017-08-03 19:04:09 -07:00
Jonathan Kingston
5a77d88f1b Bug 1344519 - Add web extension events for containers onUpdated, onCreated and onRemoved r=aswan,baku
MozReview-Commit-ID: 9Zxjc1J2CAt

--HG--
extra : rebase_source : b4369d2657f428d61b1359875c32d0d6fb4dd3f3
2017-05-14 00:39:32 +01:00
Tim Nguyen
c1a9f6ec56 Bug 1347182 - Add support for setting the background color of all toolbars using a WebExtension theme. r=jaws
Original patch by :mikedeboer.

MozReview-Commit-ID: IbTBCjt6oJp

--HG--
extra : rebase_source : 09752d1deded2f8189fd2abedcd0f65bd2625ed3
2017-06-15 19:20:26 +02:00
Alexandre Poirot
edb829b798 Bug 1386299 - Make WebExtension use toolkit's EventEmitter instead of DevTools one. r=rpl
MozReview-Commit-ID: 2w1ndV1g1h1

--HG--
extra : rebase_source : 5d6ee8c4c90383f8dd7cbdd8b79f1b3fe8ac18b6
2017-08-03 15:07:05 +02:00
Sebastian Hengst
50d2d60772 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 5MywkQxECqB
2017-08-03 11:46:00 +02:00
Kris Maglione
7c6f5106bb Bug 1386937: Fix typo in initialization check. r=trivial
MozReview-Commit-ID: 7MD79wChHyG

--HG--
extra : rebase_source : ef029f1d9a167e5685c341b147f7c8fbebaaa6d8
2017-08-02 22:01:58 -07:00
Kris Maglione
f87ef7bd44 Remove unused lazy imports. r=trivial (no bug)
MozReview-Commit-ID: rqUFJw7Wsb

--HG--
extra : rebase_source : cdda5d87fe33bdb9dacc1846fd67f3cb4154f230
2017-08-02 21:09:38 -07:00
Masatoshi Kimura
f143125cc2 Bug 1326520 - Rename nsIURI.path to pathQueryRef. r=valentin.gosu
MozReview-Commit-ID: DqJdTGopR9G

--HG--
extra : rebase_source : e8c9eb03468c075b79013b6e0bd8b367229c24cd
2017-07-29 20:50:21 +09:00
Rajesh Kathiriya
48e6bc2124 Bug 1374620 - Enabled the ESLint dot-notation rule across mozilla-central r=standard8
MozReview-Commit-ID: FadrI2li43G

--HG--
extra : rebase_source : b455e846ab79c8141150517e67e542e3e06d630e
2017-07-25 23:45:41 +05:30
Bob Silverberg
3e3da8519e Bug 1339550 - Implement browser.settings.allowPopupsForUserEvents, r=aswan
This will modify the "dom.popup_allowed_events" preference to control whether events from
user actions are allowed to open pop-up windows or not. If set to `false` then pop-ups from
user actions will not be allowed and will result in a doorhanger being displayed informing
the user that a pop-up was blocked. If set to `true` then all of the default events
will be allowed to open pop-up windows.

MozReview-Commit-ID: 8UFziq23zug

--HG--
extra : rebase_source : 01fce52f35aa1ce5af14e5f883214f4dcd5261ce
2017-07-31 16:46:36 -04:00
Wes Kocher
6996218c86 Merge m-c to autoland, a=merge
MozReview-Commit-ID: LFuPHJf6OyA
2017-08-01 18:09:08 -07:00
Kris Maglione
b19c0372c7 Bug 1380267: Add 1s max delay to extension shutdown blocker. r=aswan
MozReview-Commit-ID: GqFPiVVgXUs

--HG--
extra : rebase_source : 738825eb1a4f6635ec659c6b6dfb3ee51174b8c2
extra : amend_source : ac115b2e7b1933933c6881e955db42d772f4c3e0
2017-07-31 12:02:23 -07:00
Sebastian Hengst
ddd4030358 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: IrMqWiJhwan
2017-08-01 11:23:57 +02:00
Nicholas Nethercote
73558eac3d Bug 1384834 (part 2) - Remove remaining uses of nsAdoptingCString. r=erahm.
--HG--
extra : rebase_source : 70a385a0a06bc88e728d51459e7460a68f15f7fb
2017-07-28 11:21:47 +10:00
Wes Kocher
179a07b6ba Merge inbound to central, a=merge
MozReview-Commit-ID: Dg4fbH8wbXt
2017-07-31 17:43:38 -07:00
Andrew Swan
eb4939a8f5 Bug 1350151 Part 3: Use requireUserInput for downloads.open() r=kmag
MozReview-Commit-ID: GhXBZ5sWlRt

--HG--
extra : rebase_source : 481f42261471601085ab63ad872f599a16430829
2017-07-25 23:01:05 -07:00
Andrew Swan
5b547e80c0 Bug 1350151 Part 2: Use requireUserInput for permissions.request() r=kmag
MozReview-Commit-ID: ALRlk7ZZ7LR

--HG--
extra : rebase_source : 1b118cb9f0ee576b0f215e95ed3299f7551d3cb1
2017-07-25 22:43:34 -07:00
Andrew Swan
3cf47f5b7f Bug 1350151 Part 1: Add requireUserInput property for functions in webextension schemas r=kmag
MozReview-Commit-ID: BrMAwbwEu8b

--HG--
extra : rebase_source : 7274cdbb0fb247a201ba9c734226ba6ea9c295c6
2017-07-25 22:45:47 -07:00
Nicholas Nethercote
581214bd8b Bug 1384835 (part 1, attempt 2) - Use nsA[C]String references instead of pointers for outparams of Get*String() pref functions. r=froydnj.
--HG--
extra : rebase_source : fe566945a55c281d8290634a5b55bed19415c839
2017-07-31 10:52:51 +10:00
Bob Silverberg
bcadbae76c Bug 1352711 - Add a notifications.onShown event and use it to fix an intermittent in test_ext_notifications.html, r=mixedpuppy
MozReview-Commit-ID: GC9poUR4jnu

--HG--
extra : rebase_source : 2257be639d47e92eeb97a2b400ec1aaef68bfe5b
2017-08-02 04:44:10 -04:00
Bob Silverberg
f386f9df93 Bug 1381605 - Do not load ExtensionSettingsStore's JSON file synchronously, r=aswan
MozReview-Commit-ID: 7lQp9hL9pNd

--HG--
extra : rebase_source : 8e61f79fe131111e91cb5853354a0dcfabf5ccbf
2017-07-24 15:49:30 -04:00