Commit Graph

19781 Commits

Author SHA1 Message Date
Kris Maglione
2b97c80ec2 Bug 1582318: Remove shutting-down processes from pool immediately. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D69441

--HG--
extra : moz-landing-system : lando
2020-04-15 22:44:36 +00:00
Anny Gakhokidze
7c0eb4aad6 Bug 1594529 - Create LoadInfo for subdocuments directly in parent process with DocumentChannel. r=mattwoodrow,nika
Currently, with Fission enabled we are not able to create a proper LoadInfo
object when doing a subdocument load because we do not have access to a loading
context if the load is happening inside of an OOP frame. To solve this problem,
we can create LoadInfo object from scratch in the parent process where we have
all of the required information.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 18:53:06 +00:00
Stefan Hindli
fb36126f61 Backed out 15 changesets (bug 1607984) for causing very frequent reftest faiures CLOSED TREE
Backed out changeset 5497c90b03de (bug 1607984)
Backed out changeset 71dffa590c10 (bug 1607984)
Backed out changeset fdacabac2c54 (bug 1607984)
Backed out changeset 5f9fe17e46b8 (bug 1607984)
Backed out changeset 8f9058eb821d (bug 1607984)
Backed out changeset 025af7792f2a (bug 1607984)
Backed out changeset c7edd070b2f3 (bug 1607984)
Backed out changeset 8e7c95d322e8 (bug 1607984)
Backed out changeset e51f6b7a745c (bug 1607984)
Backed out changeset 979d99eb12d1 (bug 1607984)
Backed out changeset f554d4ce6718 (bug 1607984)
Backed out changeset fe84e5c64b4e (bug 1607984)
Backed out changeset 05d2032060db (bug 1607984)
Backed out changeset 07ce7b11fee9 (bug 1607984)
Backed out changeset 718d89be09d2 (bug 1607984)
2020-04-15 18:33:24 +03:00
Jean-Yves Avenard
b956724763 Bug 1607984 - P13. Proxy the first http-on-opening-request event to the DocumentChannel. r=mayhemer
Some tests rely on this event to start action. The DocumentChannel had no equivalent. We make the ParentProcessDocumentChannel listen to this event and if it matches the nsIChannel currently in use in the DocumentLoadListener than we emit a similar document-on-modify-request event on the DocumentChannel.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 08:57:30 +00:00
Jean-Yves Avenard
6f520a712b Bug 1607984 - P12. Start parent load via DocumentChannel. r=mayhemer,nika,mattwoodrow
Add ParentProcessDocumentChannel object. This object is a DocumentChannel that will start a channel load from the parent process via a DocumentChannel.

The aim of this task is two-fold.
1- Be consistent on how we handle redirects before continuing the load on the final channel.
2- Prepare to initiate a process switch when needed without having to go via an intermediary content process, saving a process switch. This task will be done in a follow-up task.

The behaviour of the ParentProcessDocumentChannel is similar in logic to the DocumentChannelChild/DocumentChannelParent pair.
The ParentProcessDocumentChannel sets up a DocumentLoadListener, have it handle the redirects and upon completion continue the load on the final channel.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 08:57:30 +00:00
Jean-Yves Avenard
e6d0591b25 Bug 1607984 - P9. Implement nsIThreadRetargetableStreamListener in ParentChannelListerner. r=valentin
The DocumentLoadListener is setting up a ParentChannelListener to go in between the normal listener->channel chain.
ParentChannelListener not implementing nsIThreadRetargetableStreamListener would prevent a nsHtml5StreamParser settings things up so that OnDataAvailable could be sent to a html parser thread off the main thread; improving performance.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 10:05:56 +00:00
Jean-Yves Avenard
036b6e9e35 Bug 1607984 - P7. Fix compilation failure in non-unified mode. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D70004

--HG--
extra : moz-landing-system : lando
2020-04-15 10:06:38 +00:00
Jean-Yves Avenard
69ca0e9e57 Bug 1607984 - P5. Add missing nsIIdentChannel interface. r=mattwoodrow
Regressiong from bug 1607987. This prevented from QueryInterface(Ci.nsIIdentChannel) in JS on the channel.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 08:57:28 +00:00
Jean-Yves Avenard
06addbed12 Bug 1607984 - P4. Expose SetClassificationFlagsHelper. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D70001

--HG--
extra : moz-landing-system : lando
2020-04-15 08:57:28 +00:00
Jean-Yves Avenard
5be74f584d Bug 1607984 - P2. Add Redirects/LastVisitInfo getters. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D69999

--HG--
extra : moz-landing-system : lando
2020-04-15 08:57:27 +00:00
Jean-Yves Avenard
c81458c7e4 Bug 1607984 - P1. Make SerializeRedirectData const. r=mattwoodrow
This also removes the need to call SerializeRedirectData to set mRedirectChannelId to the proper value and register the channel.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 08:57:27 +00:00
Andreea Pavel
bf1f43b298 Backed out 12 changesets (bug 1607984) for failing test_bug1339722.html on a CLOSED TREE
Backed out changeset 69c73391e8fc (bug 1607984)
Backed out changeset a3a28be516f9 (bug 1607984)
Backed out changeset 9f216e9bd32e (bug 1607984)
Backed out changeset 0b71b61415d5 (bug 1607984)
Backed out changeset 0fa85c9199a9 (bug 1607984)
Backed out changeset 4c661ed81cf2 (bug 1607984)
Backed out changeset 47beda24613f (bug 1607984)
Backed out changeset 348da0a8dd00 (bug 1607984)
Backed out changeset 3d6824e92c38 (bug 1607984)
Backed out changeset 1cfc8aad978c (bug 1607984)
Backed out changeset e11f4d334dc7 (bug 1607984)
Backed out changeset c499fa55d0f2 (bug 1607984)
2020-04-15 11:53:11 +03:00
Jean-Yves Avenard
bb7dcaf857 Bug 1607984 - P12. Start parent load via DocumentChannel. r=mayhemer,nika,mattwoodrow
Add ParentProcessDocumentChannel object. This object is a DocumentChannel that will start a channel load from the parent process via a DocumentChannel.

The aim of this task is two-fold.
1- Be consistent on how we handle redirects before continuing the load on the final channel.
2- Prepare to initiate a process switch when needed without having to go via an intermediary content process, saving a process switch. This task will be done in a follow-up task.

The behaviour of the ParentProcessDocumentChannel is similar in logic to the DocumentChannelChild/DocumentChannelParent pair.
The ParentProcessDocumentChannel sets up a DocumentLoadListener, have it handle the redirects and upon completion continue the load on the final channel.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 07:07:06 +00:00
Jean-Yves Avenard
cc02b8629e Bug 1607984 - P9. Implement nsIThreadRetargetableStreamListener in ParentChannelListerner. r=valentin
The DocumentLoadListener is setting up a ParentChannelListener to go in between the normal listener->channel chain.
ParentChannelListener not implementing nsIThreadRetargetableStreamListener would prevent a nsHtml5StreamParser settings things up so that OnDataAvailable could be sent to a html parser thread off the main thread; improving performance.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 06:03:26 +00:00
Jean-Yves Avenard
e719dcbf2f Bug 1607984 - P7. Fix compilation failure in non-unified mode. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D70004

--HG--
extra : moz-landing-system : lando
2020-04-15 06:03:18 +00:00
Jean-Yves Avenard
5ed6ab3f94 Bug 1607984 - P5. Add missing nsIIdentChannel interface. r=mattwoodrow
Regressiong from bug 1607987. This prevented from QueryInterface(Ci.nsIIdentChannel) in JS on the channel.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 06:02:56 +00:00
Jean-Yves Avenard
4f0eda51f9 Bug 1607984 - P4. Expose SetClassificationFlagsHelper. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D70001

--HG--
extra : moz-landing-system : lando
2020-04-15 06:02:53 +00:00
Jean-Yves Avenard
af604d4efe Bug 1607984 - P2. Add Redirects/LastVisitInfo getters. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D69999

--HG--
extra : moz-landing-system : lando
2020-04-15 06:02:38 +00:00
Jean-Yves Avenard
81606557bc Bug 1607984 - P1. Make SerializeRedirectData const. r=mattwoodrow
This also removes the need to call SerializeRedirectData to set mRedirectChannelId to the proper value and register the channel.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 06:02:25 +00:00
Kevin Jacobs
2a981b96ab Bug 1624128 - Update CK_GCM_PARAMS uses for PKCS11 v3.0 definition r=keeler
This patch initializes the ulIvBits member of CK_GCM_PARAMS, which is new in PKCS11 v3.

For libprio, we instead define NSS_PKCS11_2_0_COMPAT, which yields the old struct definition.

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

--HG--
extra : moz-landing-system : lando
2020-04-14 18:32:19 +00:00
Stefan Hindli
1b55e83f7a Backed out 2 changesets (bug 1594529) for causing perma wpt2 with ValueError: badly formed hexadecimal UUID string in /cookies/samesite/iframe-reload.https.html CLOSED TREE
Backed out changeset fbf55a44d7fb (bug 1594529)
Backed out changeset 4ba9a230586a (bug 1594529)
2020-04-15 08:41:10 +03:00
Cameron McCormack
1b811cea21 Bug 1629754 - Silence some nsCacheService warnings. r=michal
This silences two warnings that I see in debug builds.

The first is from nsCacheProfilePrefObserver::ReadPrefs, where the
nsresult from the NS_APP_CACHE_PARENT_DIR directory getting will be
returned even if we successfully get the profile directory.  (While
we're here, factor out some common functionality in this function.)

The second is from dealing with the result of
nsCacheService::CreateCustomOfflineDevice.  Failing to create an offline
device is a normal condition, if the cache size is set to 0 or we have
explicitly disabled the offline cache.  So don't warn in those cases.

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

--HG--
extra : moz-landing-system : lando
2020-04-14 22:36:53 +00:00
Matt Woodrow
2734904e17 Bug 1622490 - Add nsIMultiPartChannelListener forwarding to nsStreamListenerWrapper. r=mayhemer
Depends on D70660

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

--HG--
extra : moz-landing-system : lando
2020-04-14 15:46:07 +00:00
Matt Woodrow
fe8d230a3c Bug 1622490 - Don't finish loading a multipart response in HttpChannelChild during OnStopRequest, since we should rely on OnAfterLastPart being called for this. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D70660

--HG--
extra : moz-landing-system : lando
2020-04-14 15:46:09 +00:00
Anny Gakhokidze
1fc287f151 Bug 1594529 - Create LoadInfo for subdocuments directly in parent process with DocumentChannel. r=mattwoodrow,nika
Currently, with Fission enabled we are not able to create a proper LoadInfo
object when doing a subdocument load because we do not have access to a loading
context if the load is happening inside of an OOP frame. To solve this problem,
we can create LoadInfo object from scratch in the parent process where we have
all of the required information.

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

--HG--
extra : moz-landing-system : lando
2020-04-13 23:00:43 +00:00
Andrea Marchesini
cc9ceea0dc Bug 1620334 - Update sameSite MDN URL, r=fscholz
Differential Revision: https://phabricator.services.mozilla.com/D70850

--HG--
extra : moz-landing-system : lando
2020-04-14 13:27:11 +00:00
Kershaw Chang
bf843aa911 Bug 1625151 - P1: Move DNS resolution to socket process r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D68388

--HG--
extra : moz-landing-system : lando
2020-04-14 09:14:41 +00:00
Christoph Kerschbaumer
1201f87e94 Bug 1599131: Remove carve outs for downloads within x-frame-options when fission enabled. r=smaug,mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D65949

--HG--
extra : moz-landing-system : lando
2020-04-14 05:57:44 +00:00
ffxbld
29bbf326cf No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D70682

--HG--
extra : moz-landing-system : lando
2020-04-13 14:01:40 +00:00
Csoregi Natalia
ec3a77d6ee Backed out 2 changesets (bug 1625151) for crashes on nsAutoOwningThread. CLOSED TREE
Backed out changeset 465d2418e50c (bug 1625151)
Backed out changeset 991c18b616e3 (bug 1625151)
2020-04-13 14:56:20 +03:00
Kershaw Chang
2fc9815db5 Bug 1625151 - P1: Move DNS resolution to socket process r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D68388

--HG--
extra : moz-landing-system : lando
2020-04-13 08:31:02 +00:00
Razvan Maries
7b34a6593b Backed out changeset 001575dc6d78 (bug 1582318) for breaking bug 1628661. 2020-04-13 00:05:27 +03:00
Valentin Gosu
d6d532ed31 Bug 1625563 - Add a delay to test_trr.js::test_resolve_not_confirmed to avoid Android intermittent r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D69825

--HG--
extra : moz-landing-system : lando
2020-04-10 19:41:16 +00:00
MahakBansal
4452860213 Bug 1614659 - CacheIndex::Shutdown() should not check if files exist before removing them.r=michal
Differential Revision: https://phabricator.services.mozilla.com/D70094

--HG--
extra : moz-landing-system : lando
2020-04-10 08:14:19 +00:00
Andrea Marchesini
9f0376cefe Bug 1363541 - Modernize the PermissionManager - part 5 - headers, r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D70041

--HG--
extra : moz-landing-system : lando
2020-04-11 13:42:30 +00:00
Andrea Marchesini
13481ea877 Bug 1363541 - Modernize the PermissionManager - part 4 - mozilla namespace, r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D70040

--HG--
rename : extensions/permissions/nsPermissionManager.cpp => extensions/permissions/PermissionManager.cpp
rename : extensions/permissions/nsPermissionManager.h => extensions/permissions/PermissionManager.h
extra : moz-landing-system : lando
2020-04-11 13:42:12 +00:00
Andrea Marchesini
d0bfec4f79 Bug 1363541 - Modernize the PermissionManager - part 1 - nsPermission to mozilla::Permission, r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D69963

--HG--
rename : extensions/permissions/nsPermission.cpp => extensions/permissions/Permission.cpp
rename : extensions/permissions/nsPermission.h => extensions/permissions/Permission.h
extra : moz-landing-system : lando
2020-04-10 08:36:37 +00:00
Shane Caraveo
43f7d20087 Bug 1530408 add api on channels to prevent using alt-data cache r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D68892

--HG--
extra : moz-landing-system : lando
2020-04-11 00:18:39 +00:00
Matt Woodrow
a4b08b8b7c Bug 1628766 - Check ProcessId for 0 before trying to create an Endpoint using it. r=mixedpuppy
Depends on D70574

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

--HG--
extra : moz-landing-system : lando
2020-04-10 23:08:36 +00:00
Matt Woodrow
7e557d489e Bug 1625366 - Remove CSPViolation from DocumentChannel. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D69912

--HG--
extra : moz-landing-system : lando
2020-04-10 22:16:43 +00:00
Matt Woodrow
26bafdbf43 Bug 1625366 - Don't specify a callback for CSP redirect checks form DocumentLoadListener, so that events are handled in the parent. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D69910

--HG--
extra : moz-landing-system : lando
2020-04-10 22:15:04 +00:00
Andrea Marchesini
9867dce537 Bug 1610373 - Introduce nsICookieManager::getCookieSince() - test, r=ewright a=reland CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D70056

--HG--
extra : source : 24b87cfe04ad9134bdc1f1ffc8b90e8f291b699d
extra : histedit_source : 47e8a93deb67db2f3e8c91f173f1a33114743d4a
2020-04-08 15:59:19 +00:00
Andrea Marchesini
c1ee01fb9d Bug 1610373 - Introduce nsICookieManager::getCookieSince(), r=ewright a=reland CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D70055

--HG--
extra : source : a984dfddd43d4156745481aef60493b45280c3cc
extra : histedit_source : d63d3d21a4c439524d56148c1d321176360f2585
2020-04-08 15:59:29 +00:00
Dragana Damjanovic
8b331435f0 Bug 1628008 - Tokenizer cannot compare whitespace well. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D70255

--HG--
extra : moz-landing-system : lando
2020-04-10 19:03:58 +00:00
Csoregi Natalia
3ebf837989 Backed out 2 changesets (bug 1610373) for causing bug 1629090. CLOSED TREE
Backed out changeset 24b87cfe04ad (bug 1610373)
Backed out changeset a984dfddd43d (bug 1610373)

--HG--
extra : rebase_source : 4118495b76de18b6a25e6b2e3902b16565921c5b
2020-04-10 21:21:50 +03:00
Csoregi Natalia
954b969608 Backed out 5 changesets (bug 1615588) for browser-chrome failures e.g. browser_beforeunload_duplicate_dialogs.js. CLOSED TREE
Backed out changeset 751cca7566a8 (bug 1615588)
Backed out changeset 474aca043834 (bug 1615588)
Backed out changeset 7839b95ef76c (bug 1615588)
Backed out changeset 32bb87f48b13 (bug 1615588)
Backed out changeset 264e642042b1 (bug 1615588)

--HG--
extra : rebase_source : 41ed149c97382bc1cf823abc56811b382cae0207
2020-04-10 21:19:15 +03:00
pbz
2f0f0d62d1 Bug 1615588 - Extended nsIPromptService to support tab modal prompts. r=johannh,MattN
This patch introduces a new tab modal system prompt type. It can be opened via the nsIPromptService
with a destination BrowsingContext. These tab system prompts overlap slightly with the upper
chrome UI to differentiate them from content prompts (previously called tab prompts).

- Extended nsIPromptService and nsIPrompt to accept 3 types of modal prompts:
  - Window prompts
  - Tab (system) prompts
  - Content prompts (the old tab prompts)
- Removed prompt code from Prompter.jsm, always call PromptParent window actor instead
- Added PromptChild window actor to forward pagehide events to parent actor
- Created additional prompt methods in nsIPromptService to prompt by browsingContext and modalType
- Backwards compatibility is maintained, consumers can still open content prompts calling nsIPrompt with a content window

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

--HG--
extra : moz-landing-system : lando
2020-04-10 16:47:00 +00:00
Dylan Roeh
9541273b5d Bug 1619798 - Move GeckoView onLoadRequest calls to DocumentLoadListener.cpp r=snorp,mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D69594

--HG--
extra : moz-landing-system : lando
2020-04-10 16:38:48 +00:00
Lilian Braud
3eb002da3f Bug 1624230 - Replace else if with if after continue. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D69263

--HG--
extra : moz-landing-system : lando
2020-04-10 12:43:07 +00:00
Christoph Kerschbaumer
4935907607 Bug 1627963: Remove requestContext from CSP shouldload and replace with fission friendly primitives. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D70173

--HG--
extra : moz-landing-system : lando
2020-04-10 10:56:57 +00:00