Commit graph

869 commits

Author SHA1 Message Date
Mark Striemer
f785de42e9 Bug 1369782 - Require user interaction for downloads.open() r=aswan
MozReview-Commit-ID: 9RkIOfZEfnf

--HG--
extra : rebase_source : 0fa336cb476cb560fc2bb0117be32d463d11b414
2017-06-02 18:34:08 -05:00
Tomislav Jovanovic
a66827ba70 Bug 1333403 - Part 1: Implement $import keyword for schema namespaces r=kmag
MozReview-Commit-ID: 5CYsQa3b05C

--HG--
extra : rebase_source : dc804509a2fa9b526657c09d79403ec2c73db618
2017-06-07 16:44:19 +02:00
Sebastian Hengst
f572cdea68 Backed out changeset 37b0fcb54cba (bug 1333403) for eslint failure: browser/components/extensions/ext-c-menus.js:158:24 | 'SingletonEventManager' is not defined. r=backout 2017-06-10 16:07:23 +02:00
Tomislav Jovanovic
02921511df Bug 1333403 - Part 1: Implement $import keyword for schema namespaces r=kmag
MozReview-Commit-ID: 5CYsQa3b05C

--HG--
extra : rebase_source : 8a70876e63826861ca8df2d32c9d7915111c9e10
2017-06-07 16:44:19 +02:00
Sebastian Hengst
ca50200961 Backed out changeset fe04c0fec69b (bug 1369782) for eslint failure at toolkit/components/extensions/test/mochitest/test_chrome_ext_downloads_open.html:60. r=backout 2017-06-10 14:46:38 +02:00
Mark Striemer
1c13943010 Bug 1369782 - Require user interaction for downloads.open() r=aswan
MozReview-Commit-ID: 9RkIOfZEfnf

--HG--
extra : rebase_source : c37cc0bf644f18c65580d7bed6c19533439e6b50
2017-06-02 18:34:08 -05:00
Tomislav Jovanovic
97b67aa72b Bug 1368669 - Support explicit null callback for runtime.sendMessage r=aswan
MozReview-Commit-ID: Lauyk877pIQ

--HG--
extra : rebase_source : b69b4bc5fded80fec6893ffe56408c82df023602
2017-06-07 23:43:25 +02:00
Carsten "Tomcat" Book
d5a13ba05e merge mozilla-inbound to mozilla-central a=merge 2017-06-09 12:58:49 +02:00
Shane Caraveo
284020a0de Bug 1367478 support websocket ws/wss protocol in matchpattern, r=kmag
MozReview-Commit-ID: 6cnRyWRnRzT

--HG--
extra : rebase_source : 7e021ac1733d2c166955a6f480e5f32615c6008c
2017-06-07 12:16:14 -07:00
Mark Banner
403075400a Bug 1371292 - Clean up more ESLint global definitions in configuration files in toolkit/ and browser/. r=mossop
MozReview-Commit-ID: 5KC23kzaCFN

--HG--
extra : rebase_source : 6a7541b5ffe85d275bc16194c155ad43f93d52ae
2017-06-08 10:59:12 +01:00
Ben Kelly
12e15fb942 Bug 1369440 Disable test_ext_contentscript_about_blank.html on android due to intermittent failures. r=kmag 2017-06-08 18:57:09 -07:00
Tomislav Jovanovic
cac5c016d9 Bug 1367572 - Remove uniquified file when used in combination with saveAs option r=aswan
MozReview-Commit-ID: 4atukwcsZgA

--HG--
extra : rebase_source : da1fc8a15d199b8dff580e1804147a4ed9034f0a
2017-06-06 00:37:41 +02:00
Sebastian Hengst
e9ee226b01 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-06-05 11:08:00 +02:00
Sebastian Hengst
2abbd7e74c merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: G0dLvIdtcAi
2017-06-05 11:05:49 +02:00
Jared Hirsch
f2ce0dde51 Bug 1366827 - Enable WebExtension experiments in Beta and Release. r=aswan
MozReview-Commit-ID: 1Z5p4AoelPu

--HG--
extra : rebase_source : fcb842f8998c70ca7d87bf7af96f7454fe1fc512
2017-06-02 12:04:01 -07:00
Kris Maglione
600b6a2dff Bug 1356546: Part 2 - Use StructuredCloneHolder as transport for MessageManager messages. r=aswan
MozReview-Commit-ID: 3z1uAAbsgTj

--HG--
extra : rebase_source : 42dd1c12709705b0e6fae996ddc7f8bc56240bb0
2017-06-04 20:46:38 -07:00
Kris Maglione
06c9dfdd54 Bug 1368152: Part 4 - Remove ExtensionManagement.jsm. r=aswan
MozReview-Commit-ID: Apbi1QYeb2x

--HG--
extra : rebase_source : 56e223e8ee92c848bbd06d74b1e7dc6d9a01d9e1
2017-06-03 17:18:18 -07:00
Kris Maglione
ea7ac960ed Bug 1368152: Part 1 - Move API extension registration to ExtensionAPI.jsm. r=aswan
MozReview-Commit-ID: 3kCXYXVxLRS

--HG--
extra : rebase_source : f63f1ea7de199a77167c90f9c8f6d724d10598b3
2017-05-26 12:12:13 -07:00
Kris Maglione
bc5050f651 Bug 1368102: Part 5 - Move static content script matching into C++. r=mixedpuppy,zombie
MozReview-Commit-ID: Co04MoscqMx

--HG--
extra : rebase_source : 4a9b4c3146f99b4fd7eb8724224e954a5b3967f2
2017-06-04 15:38:11 -07:00
Kris Maglione
02c1b0890c Bug 1368102: Part 2 - Add WebExtensionContentScript bindings. r=billm,mixedpuppy
Bill, can you please review the binding code? Shane and zombie, can you please
review the content script matching?

MozReview-Commit-ID: IJB5s0a7r7S

--HG--
extra : rebase_source : 4026105b8c04e6b88c9be8cf76898fca26f1c3e0
2017-06-03 22:03:19 -07:00
Kris Maglione
e51750a9c4 Bug 1322235: Part 6 - Replace AddonPolicyService with a stub implementation in ExtensionPolicyService. r=mixedpuppy,zombie
This replaces the JS policy service stubs with a pure C++ version which
directly makes policy decisions based on active WebExtensionPolicy objects.

This is the first step in a larger refactoring, which will remove the
ExtensionManagement module entirely, and replace the current add-on policy
service with direct, non-virtual access to native WebExtensionPolicy objects.

It will also be followed by related changes to migrate the content script and
extension page matching to native code, based on the existing MatchPattern and
WebExtensionPolicy bindings.

MozReview-Commit-ID: 2MpbmXZGiPZ

--HG--
extra : rebase_source : 8b268618164b45605143e858665e592de829a6fa
2017-06-03 17:12:14 -07:00
Kris Maglione
414584f497 Bug 1322235: Part 5 - Add an ExtensionPolicyService singleton class to track active extension policies. r=billm,mixedpuppy
Bill, can you please review the binding changes? Shane, can you please review
the policy service?

This is the first step to making extension policy data directly available to
C++ code without any COM overhead. It tracks the set of currently active
extensions, and how they map to add-on IDs and URIs.

MozReview-Commit-ID: 9Z61AXFll3P

--HG--
extra : rebase_source : c38898905a63ab8d0a424bfda7c61ea6c645ff32
2017-05-23 19:15:10 -07:00
Kris Maglione
d9d83b9f73 Bug 1322235: Part 4 - Add initial native WebExtensionPolicy bindings. r=billm,aswan
Bill, can you please review the binding code and the general sanity of the
platform code? Andrew and zombie, can you please review the policy logic and
tests?

As in part 1, this aims to reduce the overhead of our extension policy logic
by making it directly available to native code with as little JS and XPConnect
overhead as possible.

MozReview-Commit-ID: 40m1wSEYtBo

--HG--
extra : rebase_source : c03834791707f78431440af9b88035ab03dc9564
2017-05-24 15:58:19 -07:00
Kris Maglione
87f57f76b7 Bug 1322235: Part 3 - Use MatchPatternSet for whiteListedHosts and webRequest. r=aswan,zombie
This is the second step to migrating the policy service to pure native code,
with similar impacts and reasoning to the previous patch.

MozReview-Commit-ID: L5XdPzWNZXM

--HG--
extra : rebase_source : dda006a0afb9d56e2738dbc0b0d94ba0496db5c9
2017-06-03 22:11:20 -07:00
Kris Maglione
186924219b Bug 1322235: Part 1 - Add native MatchPattern and MatchGlob bindings. r=billm,aswan
Bill, can you please review the binding code, and the general sanity of the
platform code. Andrew and zombie, can you please matching algorithms and
tests.

Change summary:

The existing JavaScript matching code works well overall, but it needs to be
called a lot, particularly from hot code paths. In most cases, the overhead of
the matching code on its own adds up enough to cause a problem. When we have
to call out to JavaScript via XPConnect to make a policy decision, it adds up
even more.

These classes solve both of these problems by a) being very fast, and b) being
accessible directly from C++. They are particularly optimized for the common
cases where only literal or prefix matches are required, and they take special
steps to avoid virtual calls wherever possible, and caching computed URL
values so that they can be reused across many match operations without
additional overhead.

MozReview-Commit-ID: BZzPZDQRnl

--HG--
rename : toolkit/modules/tests/xpcshell/test_MatchPattern.js => toolkit/components/extensions/test/xpcshell/test_MatchPattern.js
extra : rebase_source : c93c4c6c36460eb5ad0fc3aa86ad42a72e76bb6c
2017-05-24 14:57:29 -07:00
Shane Caraveo
64f4934bf7 Bug 1338860 fix onErrorOccurred to handle some additional errors, r=aswan,kmag
MozReview-Commit-ID: I5uZmhWFBUd

--HG--
extra : rebase_source : 6a459ea03d955ad69185982b3dcae2d789732c12
2017-06-02 14:16:48 -07:00
Shane Caraveo
da8da360a1 Bug 1367138 fix webrequest frameId and parentFrameId, r=aswan
MozReview-Commit-ID: F8lD8vvfSQ5

--HG--
extra : rebase_source : 6d50d32360f974165f0fef168f16d606f72f5dc0
2017-06-02 12:05:13 -07:00
Rob Wu
7802980fa2 Bug 1307852 - Pass ID of calling add-on to native messaging app r=aswan
This allows native messaging binaries to identify the add-on that
invoked the native messaging app, in case more than one add-on is
allowed to launch the native messaging app.

MozReview-Commit-ID: GgjwfJDbBkW

--HG--
extra : rebase_source : b60d33e9f3936f26b8792ef5cd1f9fea304f29ae
2017-06-01 19:08:02 +02:00
Bob Silverberg
b994507ee4 Bug 1364975 - Allow WebExtensions to disable WebRTC, r=aswan
Implement privacy.network.peerConnectionEnabled to allow WebExtensions to enable and disable RTCPeerConnections (aka WebRTC).

MozReview-Commit-ID: 5zGotQNwsko

--HG--
extra : rebase_source : 3543efa9fdbd7689581b3ffd3507cf2b4fee284d
2017-05-24 09:58:43 -04:00
Ryan VanderMeulen
df47cd92cd Merge inbound to m-c. a=merge 2017-05-30 20:36:44 -04:00
Andrea Marchesini
509eff1360 Bug 1364895 - Expose contextualIdentities to webExtensions also if privacy.userContext.enabled is set to false, r=aswan 2017-05-30 21:10:14 +02:00
Ryan VanderMeulen
2af91f1c45 Backed out 4 changesets (bug 1357490) for causing frequent xpcshell timeouts.
Backed out changeset 916250167bc8
Backed out changeset c2a286511a6c
Backed out changeset 9cc319bef82d
Backed out changeset 29443725aebb

--HG--
extra : histedit_source : 76915ec4b96c97ee6bd4896769158490442aedce%2C0face0f9fe6eb85dd4ba8b3603bf948e0ce99d7f
2017-05-30 12:36:43 -04:00
Carsten "Tomcat" Book
b318c7dca7 merge mozilla-inbound to mozilla-central + UPGRADE_NSS_RELEASE a=merge
--HG--
rename : toolkit/components/extensions/test/xpcshell/xpcshell.ini => toolkit/components/extensions/test/xpcshell/xpcshell-common.ini
extra : amend_source : 458fd54fe8070ca3034ac441267ff7025adb5251
2017-05-30 11:37:46 +02:00
Kris Maglione
a176402b70 Bug 1365660: Part 5b - Enable compositing for popups with remote content on Windows. r=bas
MozReview-Commit-ID: GzpCBUnVkdY

--HG--
extra : rebase_source : bc2a6459e64847b0153e09e392173bac00d97b4e
2017-05-29 14:58:48 -07:00
Kris Maglione
da2d5fecbf Bug 1357490: Follow-up: Really disable OOP xpcshell tests on OS-X.
MozReview-Commit-ID: KpQJ7kxjIjL
2017-05-29 22:01:00 -07:00
Kris Maglione
357f0eefb9 Bug 1357490: Part 1: Run toolkit xpcshell tests in both in-process and OOP modes. r=aswan
MozReview-Commit-ID: 7YYO8ldupn3

--HG--
rename : toolkit/components/extensions/test/xpcshell/head_remote.js => toolkit/components/extensions/test/xpcshell/head_e10s.js
rename : toolkit/components/extensions/test/xpcshell/xpcshell.ini => toolkit/components/extensions/test/xpcshell/xpcshell-common.ini
rename : toolkit/components/extensions/test/xpcshell/xpcshell-remote.ini => toolkit/components/extensions/test/xpcshell/xpcshell-e10s.ini
extra : source : 33f6f0354aded142e7a41d5a6209d0d95c4c7521
extra : absorb_source : e8c14432bfe17b5d4767e14eadbbb408df4dd664
2017-05-29 14:09:36 -07:00
Phil Ringnalda
1c31cbe46c Backed out 2 changesets (bug 1357490) for promise chain failed to handle a rejection QI failures
CLOSED TREE

Backed out changeset 3737f31a7ec3 (bug 1357490)
Backed out changeset 33f6f0354ade (bug 1357490)

MozReview-Commit-ID: 2Q4bUrnntlZ
2017-05-29 16:34:00 -07:00
Kris Maglione
3a2fc75838 Bug 1357490: Part 1: Run toolkit xpcshell tests in both in-process and OOP modes. r=aswan
MozReview-Commit-ID: 7YYO8ldupn3

--HG--
rename : toolkit/components/extensions/test/xpcshell/head_remote.js => toolkit/components/extensions/test/xpcshell/head_e10s.js
rename : toolkit/components/extensions/test/xpcshell/xpcshell.ini => toolkit/components/extensions/test/xpcshell/xpcshell-common.ini
rename : toolkit/components/extensions/test/xpcshell/xpcshell-remote.ini => toolkit/components/extensions/test/xpcshell/xpcshell-e10s.ini
extra : rebase_source : 05fb233ac80a170d53888fe473a3135c22f95f13
extra : histedit_source : 4a655b3f582ea090a46584ae38119202d037de0f%2Cfcde51f55e5a3e1aed13c85051fdc6fe004e0ff1
2017-05-29 14:09:36 -07:00
Bob Silverberg
3dfd2d79e9 Bug 1353171 - Add telemetry for extension startup time, r=bsmedberg,kmag
MozReview-Commit-ID: 562lceAhJ4C

--HG--
extra : rebase_source : f0153eb97594da7a5f163a0794339e8645c7e9d0
2017-05-01 15:06:24 -04:00
Ethan Glasser-Camp
f9f6f160da Bug 1364135: Clean up detection/handling of deleted keyrings, r=kmag,MattN
MozReview-Commit-ID: CoOwUazDRSL

--HG--
extra : rebase_source : d027c47f1b5740fa9916420b5dafdac935264ff8
2017-05-11 13:15:20 -04:00
Andy McKay
b862b81cea Bug 1359417 WebExtensions ProxyAPI uses HTTPS proxy instead of HTTP proxy and Bug 1362798 WebExtensions ProxyAPI should support return strings HTTP and SOCKS4 r=mixedpuppy
MozReview-Commit-ID: GSxv0s8RPbo

--HG--
extra : rebase_source : 4d7f3e0ee663be3ddc5b5b6c0549f670428d0eb2
2017-05-26 09:36:14 -07:00
Ethan Glasser-Camp
72d89acea8 Bug 1358120: correctly handle failed authorizations, r=kmag
This code seems to have never worked correctly. This code was based on
an error style that is thrown from one part of kinto-http.js but then
immediately rethrown using a different format. On top of that, the
code as written tries to parse JSON out of the response body and use
that. Instead, let's use the response status code, since that feels a
little more robust.

MozReview-Commit-ID: B5MG5tpduCd

--HG--
extra : rebase_source : 9f4ba94ef215297db6ba3b126852984a9a7878fe
2017-05-15 16:46:30 -04:00
Ethan Glasser-Camp
ceed266119 Bug 1350088: Recover when we hit "server was flushed", r=kmag
This is another edge case that seems to be linked to the server-side
data loss bug in Kinto. It seems like you can get into a "server was
flushed" case if one device hadn't seen the most recent keyring before
another client caused the server to be wiped. We don't expect this to
happen in the future, but it affects some number of our users who were
already using storage.sync, so build a recovery pathway for them.

MozReview-Commit-ID: K0BJNQgN6Z4

--HG--
extra : rebase_source : 5a8707bc1edc1f30306a301d3c9f7b10a1f2fb76
2017-05-19 16:43:32 -04:00
Bob Silverberg
6048efcba8 Bug 1367453 - Do not throw an exception from ExtensionSettingsStore when trying to remove a setting that was not previously set, r=mixedpuppy
This changes the behaviour of ExtensionSettingsStore so that attempting to remove a setting that was not previously set does
not throw an exception. This allows things like privacy.network.webRTCIPHandlingPolicy.clear() to be called without having
previously called privacy.network.webRTCIPHandlingPolicy.set().

MozReview-Commit-ID: FFCOFHk5lhb

--HG--
extra : rebase_source : a493b50145729a5388acbe1ace948f41de9762aa
2017-05-24 12:29:16 -04:00
Bob Silverberg
e230054912 Bug 1353172 - Add telemetry for background page load time time, r=bsmedberg,kmag
Add WEBEXT_BACKGROUND_PAGE_LOAD_MS histogram that measures the time from
initiating the build() function to when the page is loaded.

MozReview-Commit-ID: 4duZuIlZnXk

--HG--
extra : rebase_source : eafd1f6228f69fa7eea4966af6151c2bc92aad06
2017-04-18 15:35:21 -04:00
Shane Caraveo
3a09428334 Bug 1366710 set webrequest type to xmlhttprequest for fetch requests, r=aswan
MozReview-Commit-ID: GkhojDrmWC5

--HG--
extra : rebase_source : d1ff3031beb0a630b5eb2b090c38937ca09a9107
2017-05-23 13:33:55 -07:00
Phil Ringnalda
c62e9f1e9d Merge m-c to autoland
MozReview-Commit-ID: 4PrtfU4e6kL
2017-05-21 13:17:22 -07:00
Tomislav Jovanovic
b916539e92 Bug 1362047 - Add comment explaining unobvous uses of mockAppInfo() r=kmag
MozReview-Commit-ID: 1ZSFXrmGS00

--HG--
extra : rebase_source : dcc4f69b3250fc9f42f991234b2bdb63939f0c15
2017-05-21 17:30:28 +02:00
Geoff Lankow
27787d394f Bug 1361899 - Allow extensions to specify provider when calling topSites.get. r=mixedpuppy 2017-05-20 14:06:16 +12:00
Mike Cooper
94879bdf84 Bug 1361578 - Remove SelfSupport, since it is obsoleted by shield-recipe-client. r=Gijs
MozReview-Commit-ID: 1FCqNa5wxZk

--HG--
extra : rebase_source : a7a20b4376ecaf2d4e91da27a7b7b32091f03dbd
2017-05-19 10:02:11 -07:00