Peter Van der Beken
9e53805747
Bug 1659102 - Merge SetActiveSessionHistoryEntryForTop and SetActiveSessionHistoryEntryForFrame. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D91592
2020-09-29 12:04:20 +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
Randell Jesup
3fadcefeec
Bug 1621643: Ensure replaceState updates all listeners about the modified state r=peterv
...
Differential Revision: https://phabricator.services.mozilla.com/D91433
2020-09-28 07:34:03 +00:00
Olli Pettay
517a59e62b
Bug 1667449 - Hide fission.sessionHistoryInParent pref getter behind a function r=peterv
...
Differential Revision: https://phabricator.services.mozilla.com/D91462
2020-09-28 12:01:12 +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
Peter Van der Beken
eb219331eb
Bug 1666881 - Make fission.sessionHistoryInParent require a restart when switching. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D91260
2020-09-25 09:03:58 +00:00
Peter Van der Beken
80614bbcbe
Bug 1667006 - document.open should set the url of the session history entry to the entry document's. r=smaug
...
document.open replaces the session history entry with a new one, the url of
which needs to point to the entry document. nsDocShell::UpdateActiveEntry wasn't
resetting the url and the originalURL in the replace case. This patch always
creates a new SessionHistoryInfo so we share more code between replace and
non-replace, to avoid missing some fields.
Differential Revision: https://phabricator.services.mozilla.com/D91273
2020-09-24 20:30:11 +00:00
Andreas Farre
6054cba163
Bug 1666783 - Remove nsIDocShell::GetInterface(nsISHistory). r=smaug
...
Also assert that it's never used.
Differential Revision: https://phabricator.services.mozilla.com/D91142
2020-09-24 13:28:41 +00:00
Mihai Alexandru Michis
5875dcbe89
Backed out changeset 88337b6e4e3e (bug 1666881) for causing failures regarding the fission.autostart pref.
...
CLOSED TREE
2020-09-24 15:41:33 +03:00
Peter Van der Beken
97d3d4638e
Bug 1666881 - Make fission.sessionHistoryInParent require a restart when switching. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D91260
2020-09-24 11:14:51 +00:00
Bogdan Tara
0b359244d1
Backed out changeset 1bfa83880712 (bug 1662839) for browser_disable_author_style_oop.js failures CLOSED TREE
2020-09-24 05:55:25 +03:00
Cameron McCormack
bbad6d2354
Bug 1662839 - Set author style disabled state correctly on newly created iframes. r=mattwoodrow
...
Differential Revision: https://phabricator.services.mozilla.com/D90953
2020-09-24 01:24:57 +00:00
Simon Giesecke
ab6f0a7137
Bug 1650145 - Replace all value uses of Empty[C]String by 0-length _ns literals. r=froydnj,geckoview-reviewers,agi
...
Differential Revision: https://phabricator.services.mozilla.com/D82325
2020-09-23 15:17:15 +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
Christoph Kerschbaumer
df7d9d5329
Bug 1666751: Use simple and never failing LoadInfo() getter because all channels should have a loadinfo r=freddyb,necko-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D91119
2020-09-23 12:49:40 +00: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
Peter Van der Beken
3708270d24
Bug 1666745 - Fix nsDocShell::GetCurrentScrollRestorationIsManual with session history in the parent. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D91113
2020-09-23 12:12:51 +00:00
Olli Pettay
ab88cc6fb2
Bug 1666596 - Ensure location.reload(true) removes entries for iframes, r=peterv
...
Differential Revision: https://phabricator.services.mozilla.com/D91050
2020-09-23 10:04:57 +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
Olli Pettay
6e5e9ca734
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
1d14c1307a
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
Peter Van der Beken
4f3f589f9e
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
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
Peter Van der Beken
dbc4752b27
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
073b9fe8a3
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
ec20fe3b28
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
b5c7f56328
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
b8bc59f244
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
66e12c9497
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
cbb7e8111c
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
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
Olli Pettay
214288bf66
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
5c2d273bac
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
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
Randell Jesup
58052c9d07
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
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
Tim Huang
7cdafb631c
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
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
b297123ada
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
Mark Banner
4ab5dd90a6
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
Gerald Squelart
8c49ce00f7
Bug 1663554 - Convert PROFILER_ADD_TEXT_MARKER and friends to PROFILER_MARKER_TEXT - r=gregtatum
...
Mostly mechanical changes, with some work needed to convert the different payloads (with optional timestamps, inner window id, and/or backtrace) to the equivalent MarkerOptions.
Differential Revision: https://phabricator.services.mozilla.com/D89587
2020-09-11 00:41:27 +00:00
Agi Sferro
6828a8bde2
Bug 1659073 - Add confirmRepost to nsIPromptCollection. r=pbz,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D89657
2020-09-10 22:28:15 +00:00
Peter Van der Beken
8de77a2680
Bug 1664274 - Call SetDocCurrentStateObj for session history in the parent too. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D89812
2020-09-10 19:30:13 +00:00
Peter Van der Beken
09f2ab8eb3
Bug 1663492 - Make nsDocShell::OnNewURI use mActiveEntry instead of mOSHE if session history in the parent is enabled. r=smaug
...
Depends on D89423
Differential Revision: https://phabricator.services.mozilla.com/D89424
2020-09-08 12:52:02 +00:00
Peter Van der Beken
f2a0fcadad
Bug 1663487 - Set loading history entry for loads in the parent. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D89420
2020-09-09 00:40:38 +00:00
Mihai Alexandru Michis
d33a3d0772
Backed out changeset 73f6874cb3dd (bug 1613054) for causing bc failures in browser_abort_visibility.js
...
CLOSED TREE
2020-09-09 16:40:24 +03:00