Christoph Kerschbaumer
2d6f6ae1e6
Bug 1681510: Remove unused argument aPrincipal from CopyFavicon() in Pcontent.ipdl r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D99226
2020-12-10 05:53:17 +00:00
Simon Giesecke
0e0965503b
Bug 1676364 - Remove unused includes from nsDocShell.h. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D96540
Depends on D96539
2020-11-23 16:09:17 +00:00
Simon Giesecke
eae3689379
Bug 1673931 - Avoid including Document.h from header files. r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D95046
Depends on D95045
2020-11-23 16:07:43 +00:00
Simon Giesecke
46908cfb51
Bug 1660470 - Add missing include directives/forward declarations. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D87865
2020-11-23 16:21:38 +00:00
Steven MacLeod
cc94eb3f9f
Bug 1606061 - move TouchEventsOverride to BrowsingContext. r=farre,devtools-backward-compat-reviewers
...
This change removes docshell's `mTouchEventsOverride` and replaces it
with a new `BrowsingContext` field `TouchEventsOverrideInternal`.
All uses of the old field have been replaced and an override should
now work under fission when there are cross-origin descendent frames.
Differential Revision: https://phabricator.services.mozilla.com/D96414
2020-11-10 15:57:30 +00:00
Olli Pettay
8b6ab650cc
Bug 1671658 - [Fission] Keep the old scrollRestoration value when calling replaceState(), r=peterv
...
The method is inconsistent whether to null check mActiveEntry. I'll clean that up separately.
Differential Revision: https://phabricator.services.mozilla.com/D93803
2020-10-22 10:23:47 +00:00
Marco Bonardo
2126d8e487
Bug 1626016 - Remove createFixupURI and move postData inside URIFixupInfo. r=Gijs,geckoview-reviewers,preferences-reviewers,snorp
...
Differential Revision: https://phabricator.services.mozilla.com/D93189
2020-10-13 10:20:16 +00:00
Peter Van der Beken
24627e9e19
Bug 1668940 - Tabs that crash in the background fail to restore with SHIP. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D92662
2020-10-12 17:02:32 +00:00
Mihai Alexandru Michis
743b0c41de
Backed out 2 changesets (bug 1668940) for causing bc failures.
...
CLOSED TREE
Backed out changeset c025fad53568 (bug 1668940)
Backed out changeset 9d98bf7b930f (bug 1668940)
2020-10-12 17:00:52 +03:00
Peter Van der Beken
d8eede0e57
Bug 1668940 - Tabs that crash in the background fail to restore with SHIP. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D92662
2020-10-12 12:38:04 +00:00
Razvan Maries
4a0100aa91
Backed out 2 changesets (bug 1668940) for perma failures on test_swapFrameLoaders.xhtml. CLOSED TREE
...
Backed out changeset 49b550ad8387 (bug 1668940)
Backed out changeset 786694e7b805 (bug 1668940)
2020-10-12 11:30:16 +03:00
Peter Van der Beken
634ece09c0
Bug 1668940 - Tabs that crash in the background fail to restore with SHIP. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D92662
2020-10-11 19:26:51 +00:00
Agi Sferro
f3ed600503
Bug 1648157 - Move DisplayMode to BrowsingContext. r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D92484
2020-10-09 17:31:59 +00:00
Peter Van der Beken
c09f68a5da
Bug 1659102 - Remove aLoadType argument from nsDocShell::OnNewURI. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D91590
2020-09-29 12:03:52 +00:00
Emilio Cobos Álvarez
1d86dbcf50
Bug 1666827 - Make nsDocShell::mIsPrintPreview a flag in the top browsing context. r=smaug
...
This should make it work on fission, plus is simpler than the
alternative of traversing the whole docshell tree and then undo it.
It also is going to make easier the actual fix for this bug.
Differential Revision: https://phabricator.services.mozilla.com/D91438
2020-09-27 12:07:19 +00:00
Kashav Madan
a38531ab04
Bug 1666485 - Make BrowsingContext::CreatedDynamically non-synced, r=nika,kmag
...
Differential Revision: https://phabricator.services.mozilla.com/D89223
2020-09-23 13:43:38 +00:00
Butkovits Atila
c2d7327248
Backed out changeset a81b4130ac14 (bug 1666485) for causing bustages on BrowsingContext. CLOSED TREE
2020-09-23 16:18:53 +03:00
Kashav Madan
fb01408d2e
Bug 1666485 - Make BrowsingContext::CreatedDynamically non-synced, r=nika,kmag
...
Differential Revision: https://phabricator.services.mozilla.com/D89223
2020-09-23 12:45:38 +00:00
Randell Jesup
9f980bafd3
Bug 1665710: don't update session history for about:blank transient pages r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D90589
2020-09-22 16:54:56 +00:00
Razvan Maries
2b880a944f
Backed out changeset 1de39d201585 (bug 1665709) for build bustages on SessionHistoryEntry.cpp. CLOSED TREE
2020-09-22 16:56:14 +03:00
Randell Jesup
f24b0b5532
Bug 1665709: don't update session history for about:blank transient pages r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D90589
2020-09-22 13:10:11 +00:00
Peter Van der Beken
2d039159d5
Bug 1666326 - Remove nsDocShell::mHistoryID and always use the BrowsingContext's HistoryID synced field. r=farre
...
Differential Revision: https://phabricator.services.mozilla.com/D90909
2020-09-22 09:37:08 +00:00
Peter Van der Beken
c38d423cfc
Bug 1665322 - Error page loads should add entries for the original load with session history in the parent. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D90393
2020-09-20 13:49:50 +00:00
Olli Pettay
eb56ea3f79
Bug 1574261 - Make nsDocShell::MaybeHandleSubFrameHistory work with session history in parent, r=peterv
...
This has couple of different pieces and one may want to focus on each of those separately when
reviewing. The first two as small changes.
- Moving mDynamicallyCreated from nsDocShell to be a sync'ed field on BrowsingContext.
CanonicalBrowsingContext::CreateLoadingSessionHistoryEntryForLoad sets that on a newly created entry.
- Adding mActiveEntryIsLoadingFromSessionHistory. mLoadingEntry + mActiveEntryIsLoadingFromSessionHistory has roughly
the same lifetime as mLSHE. mLoadingActiveEntry is needed so that child docshell can know whether its parent is loading from session history.
- The main part is in MaybeHandleSubframeHistory which checks if the parent docshell is loading from session history,
and if so, asks for a LoadingSessionHistoryInfo. In the case of docshell living in a child process that operation is asynchronous,
so when the data is back from the parent process, LoadURI is called again with the possibly updated data.
One could possibly split the code to smaller methods and then deal with aContinueHandlingSubframeHistory only in LoadURI,
but MaybeHandleSubframeHistory does have some early returns which would make that approach possibly hard to follow.
Differential Revision: https://phabricator.services.mozilla.com/D89685
2020-09-17 18:22:08 +00:00
Andreas Farre
4589444b55
Bug 1662410 - Part 1: Fix usage of ChildSHistory.legacySHistory . r=peterv
...
ChildSHistory.legacySHistory isn't valid for content processes when
session history in the parent is enabled. We try to fix this by either
delegating to the parent by IPC or move the implementation partially
or as a whole to the parent.
Differential Revision: https://phabricator.services.mozilla.com/D89353
2020-09-16 14:51:01 +00:00
Andrea Marchesini
8146b4c28c
Bug 444222 - Update the window.name when doing the navigation, r=smaug,nika
...
This patch implements the window.name updating in the spec
https://html.spec.whatwg.org/#history-traversal .
Differential Revision: https://phabricator.services.mozilla.com/D81361
2020-09-15 17:51:05 +00:00
Anny Gakhokidze
bad9fca7b5
Bug 1655572 - Make view-source not require session history, r=peterv
...
Differential Revision: https://phabricator.services.mozilla.com/D88509
2020-09-14 19:00:05 +00:00
Andreas Farre
22e25d7bb9
Bug 1662131 - Fix history getters for web browser persist. r=peterv
...
Differential Revision: https://phabricator.services.mozilla.com/D88979
2020-09-08 13:06:29 +00:00
Anny Gakhokidze
68c83c5040
Bug 1589102 - Part 13: Fix a race in process switching code due to reftest.js forcing a process switch, r=kmag
...
The race occurs when the parent changes the owner process for a BC, but the
child does not know about it and proceeds to call SetCurrentInnerWindowId on a
BC it no longer owns. To fix this, in child process, whenever we call
SetCurrentInnerWindowId on a BC, check that the BC is in process and that the
docshell has not been notified about an upcoming process change.
Differential Revision: https://phabricator.services.mozilla.com/D87934
2020-08-28 17:21:17 +00:00
Peter Van der Beken
31834461cf
Bug 1656347 - Make session history getters to work with history in parent. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D88413
2020-08-27 18:47:27 +00:00
Peter Van der Beken
399d4779a3
Bug 1659992 - Fix nsDocShell::LoadURI for session history loads to not rely on session history in the child. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D87744
2020-08-23 17:41:13 +00:00
Peter Van der Beken
bcaca89c59
Bug 1649131 - Implement history.pushState/.replaceState for session history in the parent. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D87039
2020-08-23 17:41:03 +00:00
Olli Pettay
3e8cc08f02
Bug 1658649 - Make session-history-in-parent nsISHEntry setters to rely on active entry, r=peterv
...
Differential Revision: https://phabricator.services.mozilla.com/D86770
2020-08-13 22:51:47 +00:00
Olli Pettay
33f2ab8a98
Bug 1658454 - nsISHEntry.cacheKey setter for session-history-in-parent, r=peterv
...
SessionHistoryEntry::MaybeSynchronizeSharedStateToInfo call is a tad controversial, but
something like that is needed for the cases when the actual value lives in the SHEntrySharedParentState.
Differential Revision: https://phabricator.services.mozilla.com/D86640
2020-08-13 22:51:17 +00:00
Olli Pettay
30c9de8bdc
Bug 1658280 - nsISHEntry.scrollRestorationIsManual setter for session-history-in-parent, r=peterv
...
Differential Revision: https://phabricator.services.mozilla.com/D86547
2020-08-13 23:17:48 +00:00
Olli Pettay
15114e6877
Bug 1657757 - nsISHEntry.title setter for session-history-in-parent, r=peterv
...
Differential Revision: https://phabricator.services.mozilla.com/D86275
2020-08-13 23:38:36 +00:00
Olli Pettay
716fb0c169
Bug 1656996 - Ensure cross-process session history navigations update child process side index and length, r=peterv
...
Differential Revision: https://phabricator.services.mozilla.com/D85789
2020-08-14 13:05:25 +00:00
Noemi Erli
4a788786b3
Backed out 2 changesets (bug 1657757, bug 1658280) for causing build bustages in nsDocShell.cpp CLOSED TREE
...
Backed out changeset 0f03a74f24a5 (bug 1658280)
Backed out changeset 3aaeea6bd201 (bug 1657757)
2020-08-14 02:12:48 +03:00
Noemi Erli
2d0ab9d2db
Backed out changeset 404955e976d6 (bug 1658454) for causing build bustages in nsDocShell.cpp CLOSED TREE
2020-08-14 01:30:50 +03:00
Csoregi Natalia
568e94a5b4
Backed out 2 changesets (bug 1656997, bug 1656996) for fission failures on browser_preferences_usage.js. CLOSED TREE
...
Backed out changeset c3aaa4f191e6 (bug 1656997)
Backed out changeset e41977f9608f (bug 1656996)
2020-08-14 00:47:56 +03:00
Olli Pettay
7eccb93d2d
Bug 1658454 - nsISHEntry.cacheKey setter for session-history-in-parent, r=peterv
...
SessionHistoryEntry::MaybeSynchronizeSharedStateToInfo call is a tad controversial, but
something like that is needed for the cases when the actual value lives in the SHEntrySharedParentState.
Differential Revision: https://phabricator.services.mozilla.com/D86640
2020-08-13 19:18:29 +00:00
Olli Pettay
f0b7a8b7c9
Bug 1658280 - nsISHEntry.scrollRestorationIsManual setter for session-history-in-parent, r=peterv
...
Differential Revision: https://phabricator.services.mozilla.com/D86547
2020-08-13 19:18:06 +00:00
Olli Pettay
d300e2d275
Bug 1657757 - nsISHEntry.title setter for session-history-in-parent, r=peterv
...
Differential Revision: https://phabricator.services.mozilla.com/D86275
2020-08-13 19:17:38 +00:00
Olli Pettay
6d8b284807
Bug 1656996 - Ensure cross-process session history navigations update child process side index and length, r=peterv
...
Differential Revision: https://phabricator.services.mozilla.com/D85789
2020-08-13 19:17:08 +00:00
Anny Gakhokidze
5612ec521f
Bug 1654922 - Part 1: Remove DocumentChannel pref usage from tests and document navigation code, r=mattwoodrow
...
Differential Revision: https://phabricator.services.mozilla.com/D85483
2020-08-01 16:36:12 +00:00
Emilio Cobos Álvarez
47634b1c9e
Bug 1653011 - Simplify and make WeakPtr<Derived> usable and compact. r=froydnj,sg,geckoview-reviewers,jgilbert,kvark,snorp
...
Having two classes in the inheritance chain inherit from SupportsWeakPtr
now won't compile, but you can use WeakPtr<Derived> when any base class
inherits from SupportsWeakPtr.
Differential Revision: https://phabricator.services.mozilla.com/D83674
2020-07-23 14:51:46 +00:00
prathiksha
8f55113fa7
Bug 1617987 - Fix URLs by prefixing www. when users encounter bad cert domain errors. r=nika,keeler
...
Differential Revision: https://phabricator.services.mozilla.com/D82024
2020-07-18 13:38:59 +00:00
Edgar Chen
3e6487ae46
Bug 1653214 - Part 1: Merge implementations of nsDocShell::Create into nsDocShell::InitWindow; r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D83766
2020-07-16 20:42:02 +00:00
Peter Van der Beken
9bcd1edd65
Bug 1644140 - Remove nsDocShell::AddChildSHEntryInternal and make some session history code in nsDocShell work with fission. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D78686
2020-07-13 15:42:15 +00:00
Matt Woodrow
b90c5208a5
Bug 1646892 - Allow DocumentChannel process switches into the parent process. r=jya,nika
...
Differential Revision: https://phabricator.services.mozilla.com/D80327
2020-06-27 04:10:23 +00:00