Commit graph

3207 commits

Author SHA1 Message Date
Valentin Gosu
982bdfbbbd Bug 1579992 - Load pages into new webCOOP+COEP process type r=nika
* This patch makes pages with the `OPENER_POLICY_SAME_ORIGIN_EMBEDDER_POLICY_REQUIRE_CORP` policy load into a special `webCOOP+COEP={pageOrigin}` remote type.
* Adds `E10SUtils.WEB_REMOTE_COOP_COEP_TYPE_PREFIX="webCOOP+COEP="`
* When a COOP process switch occurs and the target page doesn't have this policy, we pass a `preferredRemoteType="web"` into `E10SUtils.getRemoteTypeForPrincipal` ensuring that we correctly get a different `remoteType`
* E10SUtils.getRemoteTypeForPrincipal is changed such that `if preferredRemoteType.startsWith(WEB_REMOTE_COOP_COEP_TYPE_PREFIX)` we don't override it with `webIsolated={pageOrigin}`.
* `coop_header.sjs` is changed to also allow setting `Cross-Origin-Embedder-Policy` headers
* `browser_httpCrossOriginOpenerPolicy.js` is changed to test that pages are correctly opened in the correct remoteType process.

Differential Revision: https://phabricator.services.mozilla.com/D48715

--HG--
extra : moz-landing-system : lando
2019-10-22 08:02:16 +00:00
Dão Gottwald
854a6bfecb Bug 1589836 - Add permanent search icon in front of the megabar. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D49826

--HG--
extra : moz-landing-system : lando
2019-10-21 23:06:06 +00:00
Neil Deakin
e00aa26593 Bug 1567175, move password manager event listener attachment from content framescript to LoginManagerChild, and use the current window instead of the top level window for the argument passed to DOMInputPasswordAdded, r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D47826

--HG--
extra : moz-landing-system : lando
2019-10-21 20:26:21 +00:00
Neil Deakin
7410901165 Bug 1567175, support password manager in out of process iframes, r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D47825

--HG--
extra : moz-landing-system : lando
2019-10-21 18:18:02 +00:00
Mihai Alexandru Michis
44e67f1a7f Backed out changeset 11e5baee978e (bug 1580315) for issues related to certList. CLOSED TREE 2019-10-21 23:50:35 +03:00
Sean Feng
2279d51cf5 Bug 1580315 - Convert certList to raw array for nsITransportSecurityInfo r=keeler,Ehsan,kershaw
This patch converts the certList attribute of nsITransportSecurityInfo
from nsIX509CertList to Array<nsIx509Cert>

Differential Revision: https://phabricator.services.mozilla.com/D48745

--HG--
extra : moz-landing-system : lando
2019-10-21 19:49:01 +00:00
shindli
ebcb4e6fbf Backed out changeset 5686e9cc48b2 (bug 1579992) for causing bc failures in browser/components/aboutlogins/tests/browser/browser_dismissFooter.js CLOSED TREE 2019-10-21 21:09:24 +03:00
Valentin Gosu
74ec329cc9 Bug 1579992 - Load pages into new webCOOP+COEP process type r=nika
* This patch makes pages with the `OPENER_POLICY_SAME_ORIGIN_EMBEDDER_POLICY_REQUIRE_CORP` policy load into a special `webCOOP+COEP={pageOrigin}` remote type.
* Adds `E10SUtils.WEB_REMOTE_COOP_COEP_TYPE_PREFIX="webCOOP+COEP="`
* When a COOP process switch occurs and the target page doesn't have this policy, we pass a `preferredRemoteType="web"` into `E10SUtils.getRemoteTypeForPrincipal` ensuring that we correctly get a different `remoteType`
* E10SUtils.getRemoteTypeForPrincipal is changed such that `if preferredRemoteType.startsWith(WEB_REMOTE_COOP_COEP_TYPE_PREFIX)` we don't override it with `webIsolated={pageOrigin}`.
* `coop_header.sjs` is changed to also allow setting `Cross-Origin-Embedder-Policy` headers
* `browser_httpCrossOriginOpenerPolicy.js` is changed to test that pages are correctly opened in the correct remoteType process.

Differential Revision: https://phabricator.services.mozilla.com/D48715

--HG--
extra : moz-landing-system : lando
2019-10-21 16:56:00 +00:00
Gijs Kruitbosch
738962d0bf Bug 1586148 - fix web protocol handler behaviour under fission, r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D48238

--HG--
extra : moz-landing-system : lando
2019-10-16 14:56:23 +00:00
Lina Cambridge
9d9b081407 Bug 1588329 - Introduce mozIStorageAsyncConnection::variableLimit. r=mak
This is a wrapper around the `sqlite3_limit` interface that returns the
binding parameter limit. Adding this getter lets us clean up the inline
`SQLITE_MAX_VARIABLE_NUMBER` constants scattered around Places.

Differential Revision: https://phabricator.services.mozilla.com/D49071

--HG--
extra : moz-landing-system : lando
2019-10-15 21:22:57 +00:00
Erica Wright
da9bdae004 Bug 1579974 - Add celebrating milestone toast when certain numbers of trackers are blocked. r=k88hudson,johannh,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D47512

--HG--
extra : moz-landing-system : lando
2019-10-15 19:30:11 +00:00
Cosmin Sabou
5d6e6dc693 Backed out changeset adbcc583862c (bug 1579974) for browser chrome failures on browser_asrouter_trigger_listeners.js 2019-10-15 00:12:26 +03:00
Erica Wright
994cf2a525 Bug 1579974 - Add celebrating milestone toast when certain numbers of trackers are blocked. r=k88hudson,johannh,fluent-reviewers,flod
test with:
`./mach run --temp-profile --setpref browser.newtabpage.activity-stream.asrouter.providers.cfr="{\"id\":\"cfr\",\"enabled\":true,\"type\":\"local\",\"localProvider\":\"CFRMessageProvider\",\"frequency\":{\"custom\":[{\"period\":\"daily\",\"cap\":10}]},\"categories\":[\"cfrAddons\",\"cfrFeatures\"],\"updateCycleInMs\":3600000}"`

for testing: Change `browser/components/newtab/lib/CFRPageActions.jsm` line 136, to `if (false)` instead of `if (resource)` or comment out that block. This is to force using the local ftl file.


  - you can use the newtab devtools, set `browser.newtabpage.activity-stream.asrouter.devtoolsEnabled=true`
 - change the pref `privacy.trackingprotection.cfr-milestone.milestone-achieved=1` and `privacy.trackingprotection.cfr-milestone.milestones="1, 5000, 10000, 25000, 50000, 100000, 500000"`
 - ensure at least one tracker has been saved in the database by visiting a tracking page and refreshing (this is so we can get the date it was saved from the database).
- open a new tab and click the wrench to the top right.
- change provider to "cfr" scroll down to find the milestone_message and click "show"
- I've now added a 24 hour timeout in `toolkit/components/antitracking/TrackingDBService.jsm` line 270 - you'll want to comment this out in order to see the popup.

Differential Revision: https://phabricator.services.mozilla.com/D47512

--HG--
extra : moz-landing-system : lando
2019-10-14 20:06:41 +00:00
Marco Bonardo
cff612c7b4 Bug 1586681 - Ensure URIFIxup uses the right engine when there's a separate PB engine. r=Standard8,Gijs
Add a new FIXUP_FLAG_PRIVATE_CONTEXT to nsIURIFixup, make it use the default
private search engine when it's set.
Update consumers to pass the new flag when necessary.

Differential Revision: https://phabricator.services.mozilla.com/D48741

--HG--
extra : moz-landing-system : lando
2019-10-12 12:37:51 +00:00
Matt Woodrow
e75df5c8ff Bug 1578624 - P8: Use BrowsingContext::loadURI in RemoteWebNavigation. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D44764

--HG--
extra : moz-landing-system : lando
2019-10-11 02:27:42 +00:00
Neil Deakin
ec8b2c4f13 Bug 1573836, make autocomplete component fission compatible, r=mak,MattN
Differential Revision: https://phabricator.services.mozilla.com/D47093

--HG--
rename : toolkit/modules/AutoCompletePopupContent.jsm => toolkit/actors/AutoCompleteChild.jsm
rename : toolkit/components/satchel/AutoCompletePopup.jsm => toolkit/actors/AutoCompleteParent.jsm
extra : moz-landing-system : lando
2019-10-09 19:02:57 +00:00
Brindusan Cristian
ef3c975bc9 Backed out 11 changesets (bug 1578624) for build bustages. CLOSED TREE
Backed out changeset b22733eb880f (bug 1578624)
Backed out changeset cb5e15489635 (bug 1578624)
Backed out changeset f1746b2f9dec (bug 1578624)
Backed out changeset d08a099a22ff (bug 1578624)
Backed out changeset 8ebd563c72a8 (bug 1578624)
Backed out changeset d8bfec2dc9b6 (bug 1578624)
Backed out changeset 591664928bce (bug 1578624)
Backed out changeset 63f5a619b9ef (bug 1578624)
Backed out changeset ff67cc13cdf3 (bug 1578624)
Backed out changeset 43556c937a09 (bug 1578624)
Backed out changeset 49065a55694d (bug 1578624)
2019-10-09 11:50:37 +03:00
Matt Woodrow
837665db5f Bug 1578624 - P8: Use BrowsingContext::loadURI in RemoteWebNavigation. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D44764

--HG--
extra : moz-landing-system : lando
2019-10-09 06:37:51 +00:00
Narcis Beleuzu
3429292547 Backed out 11 changesets (bug 1578624) for bustages on WindowGlobalChild.h . CLOSED TREE
Backed out changeset 478897956ee0 (bug 1578624)
Backed out changeset ab9c09164df0 (bug 1578624)
Backed out changeset f461f10efa46 (bug 1578624)
Backed out changeset 9b958693a003 (bug 1578624)
Backed out changeset 3b8220a15051 (bug 1578624)
Backed out changeset 180407dc57a8 (bug 1578624)
Backed out changeset bb11892e2171 (bug 1578624)
Backed out changeset 4f5c28244290 (bug 1578624)
Backed out changeset 6c02bbe5c1c5 (bug 1578624)
Backed out changeset 1d762fdce921 (bug 1578624)
Backed out changeset 818bc6e20c7d (bug 1578624)

--HG--
extra : histedit_source : ea22e628bf35425402009e9af274602f342a7476
2019-10-09 08:52:25 +03:00
Matt Woodrow
dedb2503fc Bug 1578624 - P8: Use BrowsingContext::loadURI in RemoteWebNavigation. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D44764

--HG--
extra : moz-landing-system : lando
2019-10-04 02:02:46 +00:00
Brendan Dahl
a51ca19772 Bug 1510785 - Support disabling XBL related tests. r=gbrown
Adds a way for mochitest, reftest, and crashtests to skip XBL related
tests when XBL is disabled. Also, add an app constant so JS can
check whether XBL is enabled.

Depends on D45614

Differential Revision: https://phabricator.services.mozilla.com/D45615

--HG--
extra : moz-landing-system : lando
2019-10-08 23:52:33 +00:00
Ehsan Akhgari
6ee9db27d3 Bug 1586814 - Add browser.contentblocking.category to about:support; r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D48366

--HG--
extra : moz-landing-system : lando
2019-10-08 20:57:56 +00:00
Kris Maglione
3ed2b788cf Bug 1583886: Fix yet more untested content windows which open chrome windows. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D47135

--HG--
extra : moz-landing-system : lando
2019-10-07 19:47:36 +00:00
Dorel Luca
6d146feeec Backed out changeset 8e400446aedc (bug 1296898) at dev's request 2019-10-07 22:27:35 +03:00
Junior Hsu
1f16c48cd1 Bug 1584005 - P2 fix tests with wrong parameter to ZipWriter r=michal
Differential Revision: https://phabricator.services.mozilla.com/D47359

--HG--
extra : moz-landing-system : lando
2019-10-07 18:29:15 +00:00
Nick Alexander
c46ec74815 Bug 1580356 - Remove Fennec (Firefox for Android). r=snorp,mshal
This does many things:

1) stops producing (and consuming) `FennecJNI*` JNI wrappers
2) removes the :app and :thirdparty Gradle projects
3) removes relevant pieces of the Gradle target configuration
4) updates lints
5) purges old configurations

After this commit, the `mobile/android` project/application builds
only GeckoView.

Differential Revision: https://phabricator.services.mozilla.com/D46536

--HG--
extra : moz-landing-system : lando
2019-10-04 20:55:11 +00:00
Mark Banner
6f0d7f4a39 Bug 1585972 - If remote settings returns an invalid signature error, ignore lists should handle it correctly. r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D48060

--HG--
extra : moz-landing-system : lando
2019-10-03 20:43:05 +00:00
Tyler
b354857779 Bug 1576908 - uses fission model for sending purge history messages r=mconley,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D45959

--HG--
extra : moz-landing-system : lando
2019-10-03 14:03:34 +00:00
Mike Conley
cf8d0284a0 Bug 1583882 - Close Picture-in-Picture player window if the originating <video> is removed from the DOM. r=JSON_voorhees
Differential Revision: https://phabricator.services.mozilla.com/D47613

--HG--
extra : moz-landing-system : lando
2019-10-01 16:20:51 +00:00
Neil Deakin
4348582007 Bug 1582833, update findbar state correctly when findbar is closed to allow keyboard to work properly, r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D46906

--HG--
extra : moz-landing-system : lando
2019-09-30 15:12:28 +00:00
Andrew McCreight
470ee2aab6 Bug 1579835, part 2 - Add mozilla::dom::IsWebRemoteType. r=nika
This is the equivalent to E10SUtils.isWebRemoteType, except for C++.

Differential Revision: https://phabricator.services.mozilla.com/D45375

--HG--
extra : moz-landing-system : lando
2019-09-26 21:09:40 +00:00
Andrew McCreight
663c40c506 Bug 1579835, part 1b - Directly pass in remote type to E10SUtils.isWebRemoteType. r=mconley
Now that we only use a single field of the browser that gets passed in
to isWebRemoteType, I think it makes more sense to just pass in the
remote type directly.

Differential Revision: https://phabricator.services.mozilla.com/D47179

--HG--
extra : moz-landing-system : lando
2019-09-26 22:16:28 +00:00
Andrew McCreight
741763a6d6 Bug 1579835, part 1 - Make E10SUtils.isWebRemoteType use a simpler prefix approach. r=mconley
Nika said that any `web'-prefixed remote type should be valid, so this
function can be simplified. For instance, webLargeAllocation should
return true.

This removes the need for ownerGlobal, so a few wrappers can be
removed.

Differential Revision: https://phabricator.services.mozilla.com/D45374

--HG--
extra : moz-landing-system : lando
2019-09-25 22:40:30 +00:00
Anny Gakhokidze
f1c694e18f Bug 1582531 - Update fission annotations for skipped tests that are now passing succesfully, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D47347

--HG--
extra : moz-landing-system : lando
2019-09-27 14:25:10 +00:00
Martin Thomson
336d7bb418 Bug 1579285 - Offer to enable TLS 1.0 on neterror page r=johannh
As we roll out the TLS 1.0 and 1.1 deprecation, sites that don't support TLS 1.2
will show the neterror page.  This adds a box to that page that shows in this
specific case.  That box explains what is going on and gives an option to
re-enable TLS 1.0.

As mentioned, this will show alongside an option to reset TLS-related
preferences if any overrides are active.

Hitting the button will set the new pref to 'true' and reload the page.

Once the override is engaged, the option won't show, but that option to reset
preferences will show (as this is a TLS-related preference).

The intent is to remove this affordance in March 2020 as we formally move to
having TLS 1.2 the minimum version.  All going to plan, this will only affect
prerelease channels, though anyone who has tweaked security.tls.version.* could
also see this.

Differential Revision: https://phabricator.services.mozilla.com/D45799

--HG--
extra : moz-landing-system : lando
2019-09-27 01:26:06 +00:00
Coroiu Cristina
735d79f681 Backed out 4 changesets (bug 1579285, bug 1579270) for browser-chrome failures at browser/base/content/test/siteIdentity/browser_deprecatedTLSVersions.js on a CLOSED TREE
Backed out changeset 36d7cc55bd16 (bug 1579285)
Backed out changeset 26e3ed3c1592 (bug 1579285)
Backed out changeset 913652258fe6 (bug 1579285)
Backed out changeset 0781e60dd54c (bug 1579270)
2019-09-27 04:19:59 +03:00
Martin Thomson
cd23d1b0d9 Bug 1579285 - Offer to enable TLS 1.0 on neterror page r=johannh
As we roll out the TLS 1.0 and 1.1 deprecation, sites that don't support TLS 1.2
will show the neterror page.  This adds a box to that page that shows in this
specific case.  That box explains what is going on and gives an option to
re-enable TLS 1.0.

As mentioned, this will show alongside an option to reset TLS-related
preferences if any overrides are active.

Hitting the button will set the new pref to 'true' and reload the page.

Once the override is engaged, the option won't show, but that option to reset
preferences will show (as this is a TLS-related preference).

The intent is to remove this affordance in March 2020 as we formally move to
having TLS 1.2 the minimum version.  All going to plan, this will only affect
prerelease channels, though anyone who has tweaked security.tls.version.* could
also see this.

Differential Revision: https://phabricator.services.mozilla.com/D45799

--HG--
extra : moz-landing-system : lando
2019-09-27 00:18:11 +00:00
Emilio Cobos Álvarez
06edb6f970 Bug 1583941 - Use a per-window event to handle dark mode changes in LightweightThemeConsumer.jsm. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D47241

--HG--
extra : moz-landing-system : lando
2019-09-26 13:21:40 +00:00
Julian Descottes
063e2dfc2f Bug 1539462 - Remove ZipUtils.jsm r=mossop
Depends on D46703. Was only used in WebIDE anymore.

Differential Revision: https://phabricator.services.mozilla.com/D46704

--HG--
extra : moz-landing-system : lando
2019-09-25 18:50:29 +00:00
Emilio Cobos Álvarez
54ad406f39 Bug 1581117 - Properly invalidate theme data from the media query change in LightweightThemeConsumer.jsm. r=kmag,dao
Just this._update() is not enough to update everything that changing the theme
implies. Instead, use the observer mechanism so all the pieces of code involved
update properly.

Differential Revision: https://phabricator.services.mozilla.com/D45926

--HG--
extra : moz-landing-system : lando
2019-09-25 18:33:12 +00:00
Brindusan Cristian
203fbcd6c8 Backed out 2 changesets (bug 1582716, bug 1575051) for gv-junit failures, new exception. CLOSED TREE
Backed out changeset b5aa3ac4483e (bug 1582716)
Backed out changeset c385531b4ee3 (bug 1575051)
2019-09-24 19:47:00 +03:00
Andreas Farre
d2c1ccbf9e Bug 1582716 - Remove nsDocShell::GetIsOnlyToplevelInTabGroup. r=nika
We can remove isOnlyToplevelInTabGroup entirely since we have
BrowsingContext/BrowsingContextGroup exposed through
chrome-webidl. Checking if a browsing context is the only top level
(auxilliary or otherwise) is only a matter of checking that there
isn't a parent, and that the size of the browsing context group is 1.

Differential Revision: https://phabricator.services.mozilla.com/D46590

--HG--
extra : moz-landing-system : lando
2019-09-24 14:29:18 +00:00
shindli
2791eb6f31 Backed out changeset db132849d960 (bug 1582716) for causing linting failures in /builds/worker/checkouts/gecko/toolkit/modules/E10SUtils.jsm CLOSED TREE 2019-09-24 17:09:06 +03:00
Andreas Farre
b9c17edc95 Bug 1582716 - Remove nsDocShell::GetIsOnlyToplevelInTabGroup. r=nika
We can remove isOnlyToplevelInTabGroup entirely since we have
BrowsingContext/BrowsingContextGroup exposed through
chrome-webidl. Checking if a browsing context is the only top level
(auxilliary or otherwise) is only a matter of checking that there
isn't a parent, and that the size of the browsing context group is 1.

Differential Revision: https://phabricator.services.mozilla.com/D46590

--HG--
extra : moz-landing-system : lando
2019-09-24 13:22:47 +00:00
Geoff Brown
dcb380399e Bug 1582785 - Enable some xpcshell tests on Android; r=geckoview-reviewers,agi
Most of these tests have been disabled for a long time; they run well
in the current test environment.

Differential Revision: https://phabricator.services.mozilla.com/D46642

--HG--
extra : moz-landing-system : lando
2019-09-23 22:43:55 +00:00
Robert Helmer
10013d31ee Bug 1582608 - add elapsed time to FirstStartup telemetry and bump timeout to 30s r=mythmon
Differential Revision: https://phabricator.services.mozilla.com/D46556

--HG--
extra : moz-landing-system : lando
2019-09-20 17:35:44 +00:00
Emilio Cobos Álvarez
f8fa8e5cea Bug 1582585 - Make AutoScrollController not scroll non-scrollable windows. r=botond
That is, avoid scrolling <iframe>s that have scrolling="no", for example.

Differential Revision: https://phabricator.services.mozilla.com/D46731

--HG--
extra : moz-landing-system : lando
2019-09-23 16:05:11 +00:00
Emilio Cobos Álvarez
2e2227708b Bug 1582585 - Factor out a bit more code from AutoScrollController.jsm. r=botond
Also an idempotent change.

Differential Revision: https://phabricator.services.mozilla.com/D46730

--HG--
extra : moz-landing-system : lando
2019-09-23 15:54:19 +00:00
Emilio Cobos Álvarez
243aae81a3 Bug 1582585 - Use flattenedTreeParentNode in AutoScrollController.jsm. r=botond
This makes it work with both Shadow DOM and XBL.

Differential Revision: https://phabricator.services.mozilla.com/D46729

--HG--
extra : moz-landing-system : lando
2019-09-23 15:52:55 +00:00
Emilio Cobos Álvarez
4c429b8f4e Bug 1582585 - Factor out a bit of the logic in AutoScrollController.jsm. r=botond
No behavior change intended.

Differential Revision: https://phabricator.services.mozilla.com/D46728

--HG--
extra : moz-landing-system : lando
2019-09-23 15:39:48 +00:00