Randell Jesup
594f5b5808
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
Kris Maglione
6f26095043
Bug 1646573: Part 1 - Fix GetInProcessParent usage in WindowShouldMatchActiveTab. r=zombie,nika
...
Differential Revision: https://phabricator.services.mozilla.com/D90334
2020-09-22 17:41:34 +00:00
Olli Pettay
e56a7a73a7
Bug 1666477, implement SessionHistoryEntry::AdoptBFCacheEntry, r=peterv
...
Differential Revision: https://phabricator.services.mozilla.com/D91014
2020-09-22 17:24:55 +00:00
Olli Pettay
b6a8ca7795
Bug 1666465 - Pass the correct value as the 'persist' parameter in CanonicalBrowsingContext::SessionHistoryCommit, r=peterv
...
Differential Revision: https://phabricator.services.mozilla.com/D90995
2020-09-22 16:27:14 +00:00
Razvan Maries
b98ab6da2c
Backed out changeset 1de39d201585 (bug 1665709) for build bustages on SessionHistoryEntry.cpp. CLOSED TREE
2020-09-22 16:56:14 +03:00
Randell Jesup
1144faec40
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
Olli Pettay
4af1240826
Bug 1666449 - Disable some bfcache tests on Fission, part 2, r=farre
...
Differential Revision: https://phabricator.services.mozilla.com/D90991
2020-09-22 11:54:40 +00:00
Peter Van der Beken
d78733695d
Bug 1666326 - Fix docshell/test/navigation/test_bug1375833.html for session history in the parent. r=farre
...
Differential Revision: https://phabricator.services.mozilla.com/D90910
2020-09-22 07:47:08 +00:00
Peter Van der Beken
f1fd281cee
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
Emilio Cobos Álvarez
a4e300194a
Bug 1557645 - Clone OOP iframes in the right process. r=nika
...
This works, though probably we want to do some follow-up tweaks, like
the adding of the onload blocker and so on, so that we can avoid the
UpdateDimensions hack.
We may also want a PrintObject in the nsPrintJob tree, perhaps...
Differential Revision: https://phabricator.services.mozilla.com/D90310
2020-09-22 09:57:27 +00:00
Kris Maglione
bbae7bbee6
Bug 1655866: Follow-up: Fix rebase botch.
...
Differential Revision: https://phabricator.services.mozilla.com/D90945
2020-09-22 01:30:10 +00:00
Kris Maglione
9f99c21cf1
Bug 1655866: Part 7 - Add test. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D88320
2020-09-21 22:44:26 +00:00
Kris Maglione
d3498e1041
Bug 1655866: Part 5 - Use native PermitUnload implementation from front-end code. r=nika,mconley
...
Differential Revision: https://phabricator.services.mozilla.com/D88318
2020-09-21 22:41:04 +00:00
Kris Maglione
0ae5bf64c5
Bug 1655866: Part 4 - Handle OOP beforeunload listeners in PermitUnload(). r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D88317
2020-09-21 22:41:01 +00:00
Kris Maglione
aa7e3fbdb4
Bug 1655866: Part 3 - Refactor PermitUnload to simplify handling OOP frames. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D88316
2020-09-21 22:40:53 +00:00
Kris Maglione
fb3a9daf66
Bug 1655866: Part 2 - Move HasBeforeUnload flag to WindowContext. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D88315
2020-09-21 22:40:51 +00:00
Olli Pettay
fe776d35ce
Bug 1653561, Get URIWasModified from mLoadingEntry when it is available, r=peterv
...
Differential Revision: https://phabricator.services.mozilla.com/D90871
2020-09-21 21:03:26 +00:00
Olli Pettay
7a22246c6d
Bug 1666010 - Ensure nsDocShell::mActiveEntryIsLoadingFromSessionHistory value is set correctly r=peterv
...
Differential Revision: https://phabricator.services.mozilla.com/D90891
2020-09-21 16:57:23 +00:00
pbz
f445708595
Bug 1314912 - Added test for location change rate limit. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D90137
2020-09-21 11:54:57 +00:00
pbz
b81e69ee95
Bug 1314912 - Rate limit calls to History and Location interfaces. r=smaug
...
This adds a rate limit to methods and setters of the History and Location
for non-system callers.
The rate limit is counted per BrowsingContext and can be controlled by prefs.
This patch is based on the original rate limit patch by :freesamael.
Differential Revision: https://phabricator.services.mozilla.com/D90136
2020-09-21 11:54:50 +00:00
Peter Van der Beken
595c969e2a
Bug 1666194 - Return before touching session history in the child in nsDocShell::Reload if session history in the parent is enabled. r=farre
...
Differential Revision: https://phabricator.services.mozilla.com/D90821
2020-09-21 09:07:17 +00:00
Peter Van der Beken
41e9c935de
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
Peter Van der Beken
a8c40b4ffe
Bug 1664655 - Update loading entry's layout history state if it shares it with the current active entry. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D90030
2020-09-20 12:40:45 +00:00
Peter Van der Beken
2b10b0874a
Bug 1664656 - Support nsIWebNavigation::LOAD_FLAGS_REPLACE_HISTORY with session history in the parent. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D90029
2020-09-20 12:40:33 +00:00
Peter Van der Beken
aa030970db
Bug 1664656 - Decide whether to add a new entry based on the load type. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D90028
2020-09-20 12:40:10 +00:00
Dorel Luca
594edf3c57
Backed out 3 changesets (bug 1664656, bug 1664655) for multiple failures in checkouts/gecko/docshell/base/nsDocShell.cpp
...
Backed out changeset ac1e652efeb6 (bug 1664655)
Backed out changeset c8c1abf5f616 (bug 1664656)
Backed out changeset 3c1e9e36a39e (bug 1664656)
2020-09-19 16:38:26 +03:00
Peter Van der Beken
9348dc4a06
Bug 1664655 - Update loading entry's layout history state if it shares it with the current active entry. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D90030
2020-09-18 16:49:41 +00:00
Peter Van der Beken
25833b010a
Bug 1664656 - Support nsIWebNavigation::LOAD_FLAGS_REPLACE_HISTORY with session history in the parent. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D90029
2020-09-19 12:29:10 +00:00
Peter Van der Beken
9d54c7ab78
Bug 1664656 - Decide whether to add a new entry based on the load type. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D90028
2020-09-18 16:49:35 +00:00
Olli Pettay
c1560ee4eb
Bug 1666010 - Ensure nsDocShell::mActiveEntryIsLoadingFromSessionHistory value is set correctly r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D90751
2020-09-18 20:29:52 +00:00
Nika Layzell
1d58fba49c
Bug 1659696 - Check PendingInitialization before targeting in window.open, r=kmag
...
This requires adding the flag as a synced field on the BrowsingContext, and
checking it in a few more places. Attempts to open a new window in this racy
manner will now raise an exception.
This should avoid the issue from bug 1658854 by blocking the buggy attempts to
load before the nested event loop has been exited.
Differential Revision: https://phabricator.services.mozilla.com/D87927
2020-09-16 20:47:55 +00:00
Kris Maglione
a3b66dd82c
Bug 1662841: Remove Fission-incompatible `nsDocumentViewer::AppendSubtree`. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D90615
2020-09-17 22:43:47 +00:00
Olli Pettay
208cca166b
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
Olli Pettay
3f30b17ab9
Bug 1665165 - Disable some bfcache tests on Fission, r=jesup
...
Differential Revision: https://phabricator.services.mozilla.com/D90303
2020-09-17 17:36:24 +00:00
Olli Pettay
ea62e522c0
Bug 1664329 - Make HandleSameDocumentNavigation handle loads from session history, r=peterv
...
Need to mark entries as being loading sooner, since HandleSameDocumentNavigation case doesn't do the round trip through parent again.
And HandleSameDocumentNavigation needs to update active entry and inform parent that is has dealt with the load.
Differential Revision: https://phabricator.services.mozilla.com/D89837
2020-09-17 15:39:59 +00:00
Olli Pettay
dc9645dce5
Bug 1665502 - Update session history entry names also in the parent process, r=timhuang,peterv
...
Differential Revision: https://phabricator.services.mozilla.com/D90493
2020-09-17 10:40:32 +00:00
Andreas Farre
2c546aa7d3
Bug 1662410
- Part 3: Fix tests that use legacySHistory. r=peterv
...
Differential Revision: https://phabricator.services.mozilla.com/D89901
2020-09-16 14:51:11 +00:00
Andreas Farre
d80d98ee5d
Bug 1662410
- Part 2: Fix test infrastructure usage of legacySHistory. r=peterv
...
Differential Revision: https://phabricator.services.mozilla.com/D89711
2020-09-16 14:51:03 +00:00
Andreas Farre
f9f96d23ca
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
Karl Tomlinson
820dfc0a45
Bug 1646601 document as const some WindowContext members r=farre
...
Differential Revision: https://phabricator.services.mozilla.com/D90216
2020-09-15 22:13:22 +00:00
Randell Jesup
9a3ba1d1f1
Bug 1664961: check if child process when processing docshell Reload() r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D90200
2020-09-16 02:44:45 +00:00
Randell Jesup
bf35bdd65b
Bug 1665063: GetSessionHistory() isn't null-checked in HistoryCommitIndexAndLength() r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D90262
2020-09-15 18:39:09 +00:00
Andrea Marchesini
e733096393
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
Tim Huang
d332cd8f36
Bug 444222 - Add browsing context name into SHEntry. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D89555
2020-09-11 07:52:11 +00:00
Tim Huang
f4e796f357
Bug 444222 - Add a flag 'SetHasLoadedNonInitialDocument' in the BrowsingContext. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D88416
2020-09-11 07:52:11 +00:00
Anny Gakhokidze
6a0eb66873
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
a16ddf24f8
Bug 1664776 - Fall back to loading entry if there is no active entry. r=peterv
...
Differential Revision: https://phabricator.services.mozilla.com/D90089
2020-09-14 16:32:17 +00:00
Olli Pettay
9fe5fa2214
Bug 1663452, steal structured clone data for pushState, r=peterv
...
Differential Revision: https://phabricator.services.mozilla.com/D89903
2020-09-11 11:51:57 +00:00
Bogdan Tara
11b8b5a61b
Backed out 7 changesets (bug 1661364, bug 1660342) for making bug 1551615 perma fail CLOSED TREE
...
Backed out changeset a56449ddacc9 (bug 1661364)
Backed out changeset fc185ddca53b (bug 1661364)
Backed out changeset 99234e013005 (bug 1661364)
Backed out changeset eac6bfc4a98d (bug 1661364)
Backed out changeset 9cb0e2dc8d8a (bug 1661364)
Backed out changeset 37b78e402c23 (bug 1661364)
Backed out changeset ae991d4209a7 (bug 1660342)
2020-09-11 14:13:46 +03:00
Mark Banner
3d9ea7d179
Bug 1375244 - Remove sync KeywordToURI and related IPC messages as they are no longer required. r=Gijs,mak,mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D89486
2020-09-11 07:15:21 +00:00