Kannan Vijayan
a7f07ec178
Bug 1580228 - Fix usage of nsIDocShellTreeItem in nsDocShell::EndPageLoad r=kmag
...
Differential Revision: https://phabricator.services.mozilla.com/D54604
2019-11-25 21:55:48 +00:00
Jean-Yves Avenard
8a48fe9a76
Bug 1596665 - P5. Pass last site information from the parent and remove DCC's nsHashPropertyBag inheritance. r=mayhemer,kmag
...
The previous site URI is now only written on the parent and sent back to the child once all redirects have completed.
In a follow up we will also transfer this information when a process switch occur as it's currently broken.
Differential Revision: https://phabricator.services.mozilla.com/D53926
2019-11-26 01:47:48 +00:00
Jean-Yves Avenard
586eaab253
Bug 1596665 - P4. Expose some nsDocShell utility methods. r=kmag
...
And use the new methods where we can.
Differential Revision: https://phabricator.services.mozilla.com/D53925
2019-11-26 01:24:42 +00:00
Jean-Yves Avenard
63d31f1d10
Bug 1596665 - P3. Copy property bag from parent to child. r=kmag,mayhemer
...
Rather that setting the property bag on both the child and parent from the docshell; we first set it on the parent instead, and once the redirect (or process switch) has completed we carry that bag across.
Differential Revision: https://phabricator.services.mozilla.com/D53924
2019-11-26 01:24:34 +00:00
Coroiu Cristina
3ec04652cd
Backed out 6 changesets (bug 1598516) for Mn and pgo failures on a CLOSED TREE
...
Backed out changeset 63a84cdfd937 (bug 1598516)
Backed out changeset 894aaa4bc62e (bug 1598516)
Backed out changeset e19ada9e8b30 (bug 1598516)
Backed out changeset 72f2256ae171 (bug 1598516)
Backed out changeset 6ba74ff735ba (bug 1598516)
Backed out changeset b235cf22b0e4 (bug 1598516)
2019-11-26 04:40:35 +02:00
Matt Woodrow
2af26fa26b
Bug 1598516 - Handle malformed uri load error with an error page. r=kmag
...
Previously this error occurred synchronously during AsyncOpen, and we handled it there.
With DocumentChannel we don't find out until it's handled in the parent, so the error is returned to the docshell via a failed status on the request.
Differential Revision: https://phabricator.services.mozilla.com/D54248
2019-11-25 20:22:57 +00:00
Matt Woodrow
b27192a627
Bug 1598516 - Enable DocumentChannel for all protocols, except for list of known issues. r=kmag
...
Differential Revision: https://phabricator.services.mozilla.com/D54246
2019-11-25 20:22:31 +00:00
Kershaw Chang
e7bb179208
Bug 1579049 - P1: Map Http error response codes to gecko error codes r=mayhemer,valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D49903
2019-11-21 14:24:36 +00:00
Jean-Yves Avenard
69592715a2
Bug 1595637 - P3. Only set contentType, contentDisposition and originalURI in the parent. r=kmag,mayhemer
...
They don't need to be set on the DocumentChannelChild as they are never read.
Differential Revision: https://phabricator.services.mozilla.com/D52785
2019-11-21 10:58:14 +00:00
Ehsan Akhgari
c5ab356460
Bug 1592599 - Switch nsIDocShell.getDocShellEnumerator() away from using nsISimpleEnumerator; r=bzbarsky
...
Differential Revision: https://phabricator.services.mozilla.com/D51100
2019-11-18 20:11:58 +00:00
Andreas Farre
2fb0a6c70f
Bug 1590782 - Switch process when InternalLoad finds oop BrowsingContext. r=mattwoodrow
...
Differential Revision: https://phabricator.services.mozilla.com/D50945
2019-11-12 21:52:18 +00:00
Matt Woodrow
fe12d7ee86
Bug 1594166 - Enable DocumentChannel for ftp, file and blob. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D51902
2019-11-07 19:01:43 +00:00
Matt Woodrow
16f0a21197
Bug 1593560 - Allow data urls with DocumentChannel. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D51547
2019-11-06 22:37:06 +00:00
Dorel Luca
116f107e5b
Backed out changeset b2026c2b563f (bug 1594529) for Browser-chrome failures in workspace/build/src/docshell/base/nsDocShell. CLOSED TREE
2019-11-07 03:45:01 +02:00
Jonathan Kingston
cf53fe6298
Bug 1594529 - Adding in asserts for LoadURI to ensure we have the correct contentPolicyType r=kmag
...
Differential Revision: https://phabricator.services.mozilla.com/D52088
2019-11-06 23:47:06 +00:00
Dorel Luca
c4c3d1ed72
Backed out changeset eaee8979fdc4 (bug 1594529) for Browser-chrome in toolkit/components/passwordmgr/test/browser/browser_doorhanger_crossframe.js. CLOSED TREE
2019-11-07 02:12:16 +02:00
Kris Maglione
184f4783e8
Bug 1594529: Infer nsDocShell::IsFrame from BrowsingContext. r=nika
...
This fixes the content policy type for document loads in these frames, where
the explicit mIsFrame flag was not set, due to DocShell creation taking a
different code path in remote frames than in in-process frames.
Differential Revision: https://phabricator.services.mozilla.com/D52093
2019-11-06 20:34:36 +00:00
Coroiu Cristina
c2912e226b
Backed out 7 changesets (bug 1593560) for crashtest failures at tests/layout/base/crashtests/446328.html on a CLOSED TREE
...
Backed out changeset 7dfae085a4cb (bug 1593560)
Backed out changeset 9842c80c98d8 (bug 1593560)
Backed out changeset d67a10437af7 (bug 1593560)
Backed out changeset 3e3948e9531c (bug 1593560)
Backed out changeset a7d04e276b44 (bug 1593560)
Backed out changeset 9f52c9f6dc54 (bug 1593560)
Backed out changeset 90572c49d464 (bug 1593560)
2019-11-07 00:32:53 +02:00
Matt Woodrow
46f931aa7a
Bug 1593560 - Allow data urls with DocumentChannel. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D51547
2019-11-06 18:22:00 +00:00
Andreas Tolfsen
46e958bbf3
bug 1549708: docshell: add nsIDocShell.isForceReloading; r=bzbarsky
...
Exposes a new nsIDocShell API, isForceReloading, to determine if
the loaded document was force-reloaded or not.
It relies on the underlying behaviour of nsDocShell::IsForceReloading(),
which again relies on nsDocShell::IsForceReloadType(mLoadType).
The getter is used in the remote agent to test that
Page.reload({ignoreCache: true}) works as intended.
Differential Revision: https://phabricator.services.mozilla.com/D51435
2019-11-04 13:28:23 +00:00
Sebastian Hengst
84c9c8b5c1
Merge mozilla-central to autoland. a=merge CLOSED TREE
2019-11-06 15:00:06 +01:00
Sebastian Hengst
ebf630f398
Merge mozilla-inbound to mozilla-central. a=merge
2019-11-06 14:54:44 +01:00
Andreas Farre
230e07715f
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
2019-11-06 10:54:49 +00:00
Brendan Dahl
ef30c33394
Bug 1470510 - Rename nsXULWindow and nsIXULWindow to AppWindow and nsIAppWindow. r=smaug
...
nsXULWindow is no longer XUL specific and is somewhat confusing name.
Differential Revision: https://phabricator.services.mozilla.com/D51486
2019-11-05 17:56:28 +00:00
Mihai Alexandru Michis
5803a050c4
Backed out 2 changesets (bug 1470510) for causing bustages in widget/cocoa/nsChildView.mm CLOSED TREE
...
Backed out changeset a343f30c34a3 (bug 1470510)
Backed out changeset 4da64790094d (bug 1470510)
2019-11-05 09:24:26 +02:00
Brendan Dahl
b484de8fe7
Bug 1470510 - Rename nsXULWindow and nsIXULWindow to AppWindow and nsIAppWindow. r=smaug
...
nsXULWindow is no longer XUL specific and is somewhat confusing name.
Differential Revision: https://phabricator.services.mozilla.com/D51486
2019-11-04 23:37:31 +00:00
Peter Van der Beken
731f764552
Bug 1588491 - Associate session history entries with a session history object from creation. Continue to allow docshells to create session history entries even if the root docshell doesn't have a session history object. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D50574
2019-10-24 09:17:19 +02:00
Peter Van der Beken
2d52b5901a
Bug 1588491 - Associate session history entries with a session history object from creation. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D49170
2019-10-17 20:03:49 +02:00
Dorel Luca
bcbec745b9
Backed out 2 changesets (bug 1470510) for build bustage on /build/src/widget/cocoa/nsChildView.mm. CLOSED TREE
...
Backed out changeset 5967bf633574 (bug 1470510)
Backed out changeset 067a556bb614 (bug 1470510)
2019-11-04 19:18:56 +02:00
Brendan Dahl
4f87b88cc6
Bug 1470510 - Rename nsXULWindow and nsIXULWindow to AppWindow and nsIAppWindow. r=smaug
...
nsXULWindow is no longer XUL specific and is somewhat confusing name.
Differential Revision: https://phabricator.services.mozilla.com/D51486
2019-11-04 16:52:35 +00:00
Dragana Damjanovic
95bc2237cb
Bug 1581637 - Part 2 - Add NS_ERROR_NET_HTTP3_PROTOCOL_ERROR error. r=mayhemer
...
Differential Revision: https://phabricator.services.mozilla.com/D46647
2019-11-01 14:55:54 +00:00
Paul Bone
ec62d8d93f
Bug 1588412 - (part 2) moz:// documents should use documentchannel r=mattwoodrow
...
the URL moz://a redirects to mozilla's website, Because it redirects to
https we want to use documentchannel.
Depends on D49100
Differential Revision: https://phabricator.services.mozilla.com/D51227
2019-10-31 18:36:56 +00:00
Cosmin Sabou
40b045555d
Backed out changeset 36a8c8887629 (bug 1588220) for causing a spike in browser chrome failures (eg: Bug 1592741).
2019-10-31 14:53:40 +02:00
Christoph Kerschbaumer
9545b113fa
Bug 1584998: Make x-frame-options work with fission enabled. r=jkt,farre,johannh,flod
...
Differential Revision: https://phabricator.services.mozilla.com/D50588
2019-10-31 08:28:35 +00:00
Andreea Pavel
ad4a095848
Backed out 13 changesets (bug 1581637) for xpchell failures at test_anonymous-coalescing.js on a CLOSED TREE
...
Backed out changeset 3a458217248d (bug 1581637)
Backed out changeset a5df33ec7393 (bug 1581637)
Backed out changeset c5d8950b4a4b (bug 1581637)
Backed out changeset 97ff4a06c2da (bug 1581637)
Backed out changeset 496ec0c5a60f (bug 1581637)
Backed out changeset 63b7f1ff1714 (bug 1581637)
Backed out changeset 6b80553abc74 (bug 1581637)
Backed out changeset 6b6b75fbec7f (bug 1581637)
Backed out changeset f09b9a4ba633 (bug 1581637)
Backed out changeset 21b721e37d39 (bug 1581637)
Backed out changeset 58ca75a25253 (bug 1581637)
Backed out changeset c28174eaccbe (bug 1581637)
Backed out changeset e6ff3db0a421 (bug 1581637)
2019-10-31 02:45:42 +02:00
Dragana Damjanovic
e10150a41c
Bug 1581637 - Part 2 - Add NS_ERROR_NET_HTTP3_PROTOCOL_ERROR error. r=mayhemer
...
Differential Revision: https://phabricator.services.mozilla.com/D46647
2019-10-30 20:52:36 +00:00
Razvan Maries
29f5ebb20d
Backed out changeset 5f185a11889b (bug 1584998) for perma fails on browser_bug593387.js. CLOSED TREE
2019-10-30 23:26:01 +02:00
Christoph Kerschbaumer
e153436cc8
Bug 1584998: Make x-frame-options work with fission enabled. r=jkt,farre,johannh
...
Differential Revision: https://phabricator.services.mozilla.com/D50588
2019-10-30 17:54:36 +00:00
Daniel Varga
5ad67b3c4d
Backed out changeset ac8f6632f7e0 (bug 1584998) on request by dev. On a CLOSED TREE
2019-10-30 19:33:29 +02:00
Kris Maglione
7aedcd09ad
Bug 1588220: Keep track of last active inner window when BrowsingContext is discarded. r=bzbarsky
...
Any number of outer windows may be attached to a BrowsingContext over its
lifetime. While the BrowsingContext is alive, it's easy to keep track of which
of these is active, and therefore which of its inner windows is active. After
it has been discarded, though, it discards its docShell reference, so all we
can tell about an inner window is whether it is active for its own outer
window, but not whether it should be considered active for its
BrowsingContext.
This patch updates the BrowsingContext detach logic to store a flag on the
current inner window recording that it was active when its BrowsingContext was
detached, and then later checks that flag to determine if it is the current
window for a detached BrowsingContext.
Differential Revision: https://phabricator.services.mozilla.com/D49032
2019-10-30 17:22:37 +00:00
Christoph Kerschbaumer
bf3d7aada0
Bug 1584998: Make x-frame-options work with fission enabled. r=jkt,farre,johannh
...
Differential Revision: https://phabricator.services.mozilla.com/D50588
2019-10-30 14:47:19 +00:00
Edgar Chen
3dc70dd58e
Bug 1587062 - Move SandboxFlags from DocShell to BrowsingContext; r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D50663
2019-10-28 11:48:30 +00:00
Andreas Farre
a737baed0b
Bug 1575051 - Part 4: Expose JS stack access check control on FindWithName. r=peterv
...
Differential Revision: https://phabricator.services.mozilla.com/D49286
2019-10-25 15:34:30 +00:00
Andreas Farre
3262edc078
Bug 1575051 - Part 1: Remove nsIDocShellTreeItem.findItemWithName. r=kmag
...
Differential Revision: https://phabricator.services.mozilla.com/D46285
2019-10-24 14:53:07 +00:00
Paul Zuehlcke
eb43d30ff5
Bug 1588461 - Added OA StripAttributes flag for privateBrowsingId. r=johannh,ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D49174
2019-10-24 14:18:54 +00:00
Matt Woodrow
165dde9a8d
Bug 1590748 - Setup result principal URI on the content process LoadInfo as well as the parent process one, since ServiceWorkers depends on it there. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D50372
2019-10-24 00:46:37 +00:00
Matt Woodrow
f2b2716c7f
Bug 1583700 - Copy hasNonEmptySandboxingFlags across with DocumentChannel so that it can be set on the nHttpChannel in the parent. r=JuniorHsu,valentin
...
Depends on D49870
We fail coop-sandbox.https.html without this, since the changes in bug 1566868 don't apply to DocumentChannel.
Differential Revision: https://phabricator.services.mozilla.com/D49871
2019-10-22 19:16:28 +00:00
Matt Woodrow
261a71e6d7
Bug 1583700 - Move CSP setup code to run in both processes. r=nika,ckerschb,mattwoodrow
...
We want this to run in both processes so that we set the cspToInherit on the LoadInfo within the child as well as the parent.
Differential Revision: https://phabricator.services.mozilla.com/D47355
2019-10-22 01:03:18 +00:00
Mihai Alexandru Michis
7078263d1a
Backed out 7 changesets (bug 1583700) for causing raptor dom failures.
...
Backed out changeset 48ceb0dd5d09 (bug 1583700)
Backed out changeset c662a369062f (bug 1583700)
Backed out changeset dc9e317da307 (bug 1583700)
Backed out changeset 41e07201a158 (bug 1583700)
Backed out changeset 015ec42c311a (bug 1583700)
Backed out changeset cfb571dd120a (bug 1583700)
Backed out changeset b9d06db6d43c (bug 1583700)
2019-10-22 03:57:07 +03:00
Matt Woodrow
07a66b59a9
Bug 1583700 - Copy hasNonEmptySandboxingFlags across with DocumentChannel so that it can be set on the nHttpChannel in the parent. r=JuniorHsu,valentin
...
Depends on D49870
We fail coop-sandbox.https.html without this, since the changes in bug 1566868 don't apply to DocumentChannel.
Differential Revision: https://phabricator.services.mozilla.com/D49871
2019-10-21 20:47:28 +00:00