Commit Graph

1494 Commits

Author SHA1 Message Date
Sebastian Hengst
6de3048253 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: Ai6Y5GGfkfT
2017-11-04 10:58:24 +01:00
Kris Maglione
46d7b2c8f3 Bug 1412345: Downgrade expanded principals before inheriting. r=bz,krizsa
There are several ways that expanded principals can be used as triggering
principals for requests. While that works fine for security checks, it also
sometimes causes them to be inherited, and used as result principals in
contexts where expanded principals aren't allowed.

This patch changes our inheritance behavior so that expanded principals are
downgraded to the most appropriate constituent principal when they would
otherwise be inherited.

The logic for choosing the most appropriate principal is a bit suspect, and
may eventually need to be changed to always select the last whitelist
principal, but I chose it to preserve the current principal downgrade behavior
used by XMLHttpRequest for the time being.

MozReview-Commit-ID: 9fvAKr2e2fa
2017-11-02 19:56:27 -07:00
NARCIS BELEUZU
8095e5b55f Backed out changeset 209df98be467 (bug 1398120) for frequently failing on toolkit/components/extensions/test/mochitest/test-oop-extensions/test_ext_webrequest_responseBody.html r=backout, a=backout on a CLOSED TREE 2017-11-03 14:35:44 +02:00
NARCIS BELEUZU
de7f74cfa2 Merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-11-03 12:04:55 +02:00
Mark Striemer
7eda41692e Bug 1386018 - Tell users that the default search engine was set by an extension r=aswan,bsilverberg,jaws
MozReview-Commit-ID: A7uJ2lN0cLF
2017-10-18 14:54:54 -05:00
Zibi Braniecki
5a4d89fcda Bug 1410736 - Replace remaining uses of general.useragent.locale with LocaleService API. r=jfkthame
MozReview-Commit-ID: F0Ofe2lHHEo
2017-11-03 17:08:34 -07:00
Sebastian Hengst
af49e62d03 Backed out changeset 0637dca8a971 (bug 1410736) for eslint failure at toolkit/components/extensions/test/xpcshell/test_ext_i18n_css.js:130: Unexpected var, use let or const instead. r=backout on a CLOSED TREE 2017-11-04 00:51:02 +01:00
Kris Maglione
a0f797696a Bug 1398120: Fix some StreamFilter state handling inconsistencies. r=mixedpuppy
MozReview-Commit-ID: 2mLZ9DeqpE0
2017-11-02 12:27:45 -07:00
Zibi Braniecki
88f8e991b0 Bug 1410736 - Replace remaining uses of general.useragent.locale with LocaleService API. r=jfkthame
MozReview-Commit-ID: CmXBFcKxOkX
2017-11-02 14:11:41 -07:00
Tim Nguyen
1ab6db319c Bug 1347190 - Add support for toolbar_top/bottom/vertical_separator in the theming API. r=jaws
MozReview-Commit-ID: EWQar4tKHs0
2017-11-03 18:00:51 +00:00
Sebastian Hengst
2146c53ab3 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-11-01 00:39:58 +01:00
Sebastian Hengst
54d41c5607 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 4CDH6A5NT2U
2017-11-01 00:36:12 +01:00
Joel Maher
f105fa25bc Bug 1407501 - Disable toolkit/components/extensions/test/xpcshell/test_ext_contentscript_scriptCreated.js on debug for frequent failures. r=me, a=testonly 2017-10-31 08:46:43 -04:00
Tim Nguyen
d32779f84c Bug 1349944 - Add browser.theme.onUpdated to watch for theme updates. r=jaws,mixedpuppy
MozReview-Commit-ID: JX4gRa3Qt0p
2017-10-31 01:13:19 +00:00
Tim Nguyen
ffb550467c Bug 1349944 - Add browser.theme.getCurrent() to query the selected theme. r=jaws,mixedpuppy
MozReview-Commit-ID: Hzdm21riVlb
2017-10-31 01:03:15 +00:00
Jeff Walden
703bac35c0 Bug 1379686 - Make ForwardingProxyHandler::isConstructor query and return whether the target is a constructor, rather than pretending is-constructor is identical to is-callable. r=till 2017-10-20 23:25:54 -07:00
Bob Silverberg
06e9724814 Bug 1412954 - Re-enable test_ext_permission_xhr.html, r=kmag,mixedpuppy
This test was disabled mistakenly.

MozReview-Commit-ID: 3FcGioEyXZY
2017-10-30 15:01:24 -04:00
Chris H-C
d910cfb973 bug 1406391 - Remove toolkit.telemetry.enabled manipulation from tests r=Dexter
Minor note:
reftests should've turned off uploadEnabled in the first place.
reftests should have unified telemetry on. It's the future.

MozReview-Commit-ID: 9spzuUAXwwP
2017-10-30 10:47:39 -04:00
Phil Ringnalda
5d3df7d6dd Backed out 4 changesets (bug 1408433, bug 1406391, bug 1408512) for crashing tests by touching the network contacting incoming.telemetry.mozilla.org on nightly builds
Backed out changeset 9bfd4b0927dc (bug 1408433)
Backed out changeset 555850d5107e (bug 1408512)
Backed out changeset 15d959b9123e (bug 1406391)
Backed out changeset e1f34ba9cecc (bug 1406391)

MozReview-Commit-ID: BVoGRsD73Hf
2017-10-27 21:08:27 -07:00
Sebastian Hengst
c415119ad9 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: DasxLYlgq0N
2017-10-27 23:30:52 +02:00
Chris H-C
dbea8807d3 bug 1406391 - Remove toolkit.telemetry.enabled manipulation from tests r=Dexter
Minor note:
reftests should've turned off uploadEnabled in the first place.

MozReview-Commit-ID: 9spzuUAXwwP
2017-10-27 10:59:43 -04:00
Mark Banner
e47ccbfec3 Bug 1411368 - Automatically fix no-multi-spaces issues raised when using ESLint 4. r=mossop
MozReview-Commit-ID: H5YVp3rnzGo
2017-10-26 11:47:01 +01:00
Bob Silverberg
ebaad828fd Bug 1364942 - Allow WebExtensions to disable Web API notifications, r=mixedpuppy
This works by allowing an extension to set a value of Services.perms.DENY_ACTION
for permissions.default.desktop-notification, which stores the default permission
for desktop notifications. This means that if no permissions have been explicitly
set for a given page, the default will be used, but if a user overrides the permissions
for a specific page then their chosen permission will override this default.

An extension can only use this to make the default behaviour to disable notifications.
It cannot be used to globally enable notifications.

MozReview-Commit-ID: H5bDZe1ICiC
2017-10-18 17:46:38 -04:00
Sebastian Hengst
6090308fdf Backed out changeset ba4a39241953 (bug 1386018) for xpcshell failures, e.g. toolkit/mozapps/extensions/test/xpcshell/test_signed_install.js on Linux debug. r=backout on a CLOSED TREE 2017-10-25 00:32:35 +02:00
Mark Striemer
c48b27c5af Bug 1386018 - Tell users that the default search engine was set by an extension r=bsilverberg,jaws
MozReview-Commit-ID: A7uJ2lN0cLF
2017-10-18 14:54:54 -05:00
Sebastian Hengst
7decd97258 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-21 00:19:00 +02:00
Boris Zbarsky
1b5503bd8a Bug 1354730. Disable named property object (aka global scope polluter) behavior for all Xrays. r=kmag
MozReview-Commit-ID: KmbXFfSzH0N
2017-10-16 10:58:09 -04:00
Andrew Swan
a8b1ca0c03 Bug 1280235 Part 2 Allow webextensions apis to be limited to "Mozilla Extensions" signed extensions r=kmag
MozReview-Commit-ID: DciT0fWTgef
2017-10-13 22:28:26 -07:00
Luca Greco
aa000f63e9 Bug 1295660 - Content Scripts should be able to make requests that looks as coming from the webpage. r=mixedpuppy
MozReview-Commit-ID: 8I88vt2YMye
2017-06-06 18:14:49 +02:00
Haik Aftandilian
f878841bb5 Bug 1398908 - Add automated test that uses nonexistent script from extension JAR file. r=mixedpuppy
MozReview-Commit-ID: DbZ3JuFm770
2017-10-03 16:09:03 -07:00
Phil Ringnalda
ae615a15de Backed out changeset 513578be7da2 (bug 1398908) for eslint failures
MozReview-Commit-ID: DXjJ3OIIAtc
2017-10-17 19:48:35 -07:00
Haik Aftandilian
9949730b1f Bug 1398908 - Add automated test that uses nonexistent script from extension JAR file. r=mixedpuppy
MozReview-Commit-ID: DbZ3JuFm770
2017-10-03 16:09:03 -07:00
Jonathan Kingston
a19f48b738 Bug 1407209 - Add observer for preference changes whilst extensions are being updated. r=aswan,baku,bsilverberg
MozReview-Commit-ID: 5CqpYDc4tCg
2017-10-16 18:44:50 +01:00
Shane Caraveo
d01e07bb6f Bug 1398860 add a socks authentication test, r=kmag
MozReview-Commit-ID: IPM2D8Ltjlg
2017-10-16 17:19:37 -07:00
Tom Ritter
d484c8203d Bug 1409045 Expose a websites.firstPartyIsolate pref that Web Extensions can toggle r=aswan
MozReview-Commit-ID: 6T8A42spaaX
2017-10-16 15:58:21 -05:00
Brendan Dahl
73b1e91ce7 Bug 1399956 - Disable some mochitests in headless. r=jrmuizel
These tests will need more work and are low priority.

MozReview-Commit-ID: H0J16E8FqNr
2017-10-16 16:15:45 -07:00
Kris Maglione
edb5338a4e Bug 1405286: Part 4 - Don't overwrite existing state with finishedtransferringdata. r=mixedpuppy
In cases where data transfer finishes immediately after we close a request, we
can sometimes wind up overwriting that state information with
"finishedtransferringdata", which allows scripted callers to break certain
invariants and cause crashes.

MozReview-Commit-ID: Do3GttF3M9S
2017-10-14 20:01:18 -07:00
Kris Maglione
12b1b432af Bug 1405286: Part 3 - Test that filterResponseData from cached onHeadersReceived doesn't crash. r=mixedpuppy
It currently isn't possible to suspend a channel from onHeadersReceived for a
cached response. And since it's not possible to add a new stream filter after
a response has started, adding a stream filter at that point will crash if the
channel is still registered.

This test is a basic sanity check for that scenario.

MozReview-Commit-ID: ALYUtxX7mci
2017-10-14 19:25:35 -07:00
Boris Zbarsky
6b54ed77bb Back out bug 1354730 to reopen CLOSED TREE.
MozReview-Commit-ID: RzUofi384C
2017-10-16 14:34:23 -04:00
Boris Zbarsky
8710ee90ff Bug 1354730. Disable named property object (aka global scope polluter) behavior for all Xrays. r=kmag
MozReview-Commit-ID: KmbXFfSzH0N
2017-10-16 10:58:09 -04:00
Kirk Steuber
63ae96269e Bug 1394851 - downloads.download API should default to use Firefox's "Save As" pref r=kmag
This patch changes the behavior of the downloads.download API's saveAs option. Previously, the behavior when neither value is provided (the "default behavior") was not defined by our documentation or Chrome's. Now, the default behavior is changing to rely on the Firefox "Save As" pref (browser.download.useDownloadDir). If Firefox is configured to open the "Save As" dialog for all downloads (browser.download.useDownloadDir == false), that behavior will be the default for the downloads.download API. Otherwise, the default behavior will be not to show the dialog.

This patch also moves some test functionality out of test_chrome_ext_downloads_saveAs.html. Previously, that test would test the saveAs option and also the conflictAction:"uniquify" option. In order to add testing for the new default behavior, it was necessary to move the testing of the conflictAction:"uniquify" option to a new test: test_chrome_ext_downloads_uniquify.html

MozReview-Commit-ID: u6VA4kexlr
2017-10-04 14:39:58 -07:00
Bob Silverberg
67a5cde2e4 Bug 1408099 - Fix ExtensionPreferencesManager.getLevelOfControl to deal with undefined settings, r=aswan
Prior to this, if getLevelOfControl was called before the setting was defined to the EPM, an
exception was thrown. This fixes it by returning a level of control of "not_controllable"
if the setting has not yet been defined.

MozReview-Commit-ID: 96jXLoJlUI
2017-10-12 17:31:27 -04:00
Sebastian Hengst
ded2f7a0dd Merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 5oI3jfNbQVt
2017-10-13 11:12:47 +02:00
Kris Maglione
0b33e0da90 Bug 1407056: Follow-up: Skip test on Android debug for flakiness. r=bustage
MozReview-Commit-ID: 39slYE2zP95
2017-10-12 19:48:48 -07:00
Sebastian Hengst
fc3c7e1a08 merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE 2017-10-13 00:53:56 +02:00
Kris Maglione
e2676ab417 Bug 1404652: Follow-up: Fix timing issues in webRequest HSTS tests.
MozReview-Commit-ID: HFW73u6wp5S
2017-10-11 20:03:11 -07:00
Kris Maglione
86d70533eb Bug 1407056: Part 3 - Test that CSP overrides apply correctly based on triggering principals. r=bz
MozReview-Commit-ID: EbGsI3keeG6
2017-10-12 15:44:32 -07:00
Ian Moody
da27cf8af2 Bug 1403224 - Add tests for MatchPattern.subsumes(). r=aswan
MozReview-Commit-ID: 8Wi4d4BVApq
2017-09-26 19:36:32 +01:00
Sebastian Hengst
16e90b262d Backed out changeset a1b4287a3427 (bug 1403224) for eslint failure at toolkit/components/extensions/test/xpcshell/test_MatchPattern.js:279:4 | Newline required at end of file but not found. r=backout 2017-10-12 17:26:54 +02:00
Ian Moody
a133919c0b Bug 1403224 - Add tests for MatchPattern.subsumes(). r=aswan
MozReview-Commit-ID: 8Wi4d4BVApq
2017-09-26 19:36:32 +01:00