Commit Graph

8533 Commits

Author SHA1 Message Date
Mike Conley
3a0f75795e Bug 1753990 - Only collect wireframes for top content BrowsingContexts. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D138050
2022-02-07 18:11:20 +00:00
Olli Pettay
90b2d9e86c Bug 1750973, don't replace the nsILayoutHistoryState object when doing same document history navigations, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D137703
2022-02-04 11:37:14 +00:00
Chris Peterson
2ae60bead7 Bug 1744425 - Replace nsContentUtils::GenerateUUID() to nsID::GenerateUUID(). r=nika
Bug 1723674 added a new nsID::GenerateUUID() static factory function to generate UUIDs without the overhead of querying and instantiating an nsIUUIDGenerator object. nsContentUtils::GenerateUUID() is a utility function that amortizes that overhead by holding an nsIUUIDGenerator singleton. That's no longer necessary because code that calls nsContentUtils::GenerateUUID() can now just call nsID::GenerateUUID(). No nsIUUDGenerator is needed.

Differential Revision: https://phabricator.services.mozilla.com/D132866
2022-02-03 04:39:34 +00:00
Peter Van der Beken
f1ed7fa59e Bug 1750174 - Auto-refreshing pages reposition themselves to the top upon refresh. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D137383
2022-02-02 13:22:30 +00:00
Cristian Tuns
833a4b981c Backed out changeset 1e505766ba35 (bug 1750174) for causing mochitest failures on test_bug1742865.html CLOSED TREE 2022-02-02 03:44:16 -05:00
Peter Van der Beken
632fde0caa Bug 1750174 - Auto-refreshing pages reposition themselves to the top upon refresh. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D137383
2022-02-02 07:58:58 +00:00
Olli Pettay
a959481f5a Bug 1729545, Try to ensure session history loads can't get stuck because of bogus requested index, r=peterv
Requested index handling is very fragile. We should try to figure out a way to remove it altogether.
(But unfortunately some behavior similar to it is needed in certain cases).
The patch is a stop-gap solution.

Differential Revision: https://phabricator.services.mozilla.com/D137479
2022-02-01 20:30:32 +00:00
Joel Maher
a261492460 Bug 1750839 - Enable fission browser-chrome for variants. r=mccr8,releng-reviewers,gbrown
Differential Revision: https://phabricator.services.mozilla.com/D136512
2022-02-01 19:30:34 +00:00
Olli Pettay
14f1eabde6 Bug 1745638, allow stopping session history load to an iframe, r=peterv
The previous version had two issues:
It revealed an issue in the old implementation which causes an assertion to fire.
There was also a problem with mDocumentRequest, so the new approach tries to be less clever
and just adds a new boolean member variable mCheckingSessionHistory,
which GetIsAttemptingToNavigate() then uses.

Differential Revision: https://phabricator.services.mozilla.com/D136041
2022-02-01 18:59:05 +00:00
Olli Pettay
009ee0ad5c Bug 1752413, add nsIWebProgress.documentRequest to let one to access the request for the document, r=nika
Differential Revision: https://phabricator.services.mozilla.com/D137212
2022-02-01 15:46:32 +00:00
Benjamin VanderSloot
dfb65118c5 Bug 1750002 - Make tests in docshell/test/ dFPI compatible, r=smaug,anti-tracking-reviewers,timhuang
We are fixing mochitests that fail when network.cookie.cookieBehavior = 5, i.e. when we enable Total Cookie Protection.
This is most often due to the test assuming that an origin will always have access to its storage state when embedded as
a third party.

In this case I mostly had to request storage access to allow an embedded iframe to use a BroadcastChannel to communicate with top-level pages of the same origin.
For test `docshell/test/mochitest/test_bug1121701.html`, I also had to reorder the code slightly to make sure the test didn't end prematurely. This caused some
tabbing that makes the diff harder to read.

Differential Revision: https://phabricator.services.mozilla.com/D136602
2022-01-31 14:37:53 +00:00
Iulian Moraru
a47757f1f9 Backed out changeset e15925b76a27 (bug 1745638) for causing mochitest failures on test_bug1745638.html. 2022-01-28 21:33:34 +02:00
Peter Van der Beken
5109c22447 Bug 1751919 - Crash in [@ mozilla::dom::SessionHistoryEntry::ReplaceWith]. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D137305
2022-01-28 18:52:21 +00:00
Olli Pettay
96f10318be Bug 1745638, allow stopping session history load to an iframe, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D136041
2022-01-28 18:21:28 +00:00
Olli Pettay
87ab534f34 Bug 1747019 - set cache key on session history entry, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D136979
2022-01-28 17:00:08 +00:00
Mike Conley
03af506a58 Bug 1749008 - Create a wireframe for history states during navigation / pushState. and hang them off of nsISHEntry. r=peterv,emilio
This is preffed off by default via browser.history.collectWireframes.

Differential Revision: https://phabricator.services.mozilla.com/D135341
2022-01-26 15:53:34 +00:00
Nika Layzell
004e42c534 Bug 1678965 - Part 1: Expose SetCrossGroupOpener to chrome JS, r=Gijs,farre
Differential Revision: https://phabricator.services.mozilla.com/D100152
2022-01-25 17:42:44 +00:00
Olli Pettay
3b790f6301 Bug 1719178 - test, r=peterv
Depends on D119114

Differential Revision: https://phabricator.services.mozilla.com/D119303
2022-01-25 11:13:12 +00:00
Kagami Sascha Rosylight
1ae5ee832f Bug 1748874 - Part 3: Mark the decl of SessionStoreRestoreData::RestoreInto as CAN_RUN_SCRIPT r=masayuki
Depends on D135402

Differential Revision: https://phabricator.services.mozilla.com/D135403
2022-01-11 11:52:27 +00:00
Jonathan Watt
7e25ffb0ec Bug 1749003 - Remove unnecessary includes and other mentions of nsIWebBrowserPrint. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D135339
2022-01-07 14:46:30 +00:00
Andrew McCreight
d31f5cedf9 Bug 1748912 - Add null check in CanonicalBrowsingContext::RemoveFromSessionHistory. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D135270
2022-01-07 14:16:07 +00:00
Henrik Skupin
91785ff3f3 Bug 1746332 - Expose replace bit for "browsing-context-attached" notification. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D135052
2022-01-04 18:16:19 +00:00
Olli Pettay
bc8d149fd3 Bug 1745730, disable bfcache when loading the current uri again, r=peterv
The idea is to get us to https://searchfox.org/mozilla-central/rev/25d26b0a62cc5bb4aa3bb90a11f3b0b7c52859c4/docshell/base/nsDocShell.cpp#10824,10829 so that
we can do a replace load.
It should be ok to disable bfcache in all the cases, not only in the cases nsDocShell checks for replace load.

Differential Revision: https://phabricator.services.mozilla.com/D134876
2021-12-31 12:14:36 +00:00
Masatoshi Kimura
3c84171152 Bug 1745730 - Test to make sure that same page naviations do not create a duplicate session history entry. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D134012
2021-12-28 21:22:07 +00:00
Peter Van der Beken
9995f7174d Bug 1267614 - Update meta refresh parsing to match the new spec. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D134225
2021-12-26 17:03:30 +00:00
Butkovits Atila
94d38895e3 Backed out changeset 69ac7afb9489 (bug 1267614) for causing failures at navigate.window.html. CLOSED TREE 2021-12-26 13:13:46 +02:00
Peter Van der Beken
9435610906 Bug 1267614 - Update meta refresh parsing to match the new spec. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D134225
2021-12-26 10:09:44 +00:00
Karl Tomlinson
d4229451f9 Bug 1705532 wait for pagehide instead of polling on location.href r=annyG
waitForCondition() waits only 3 seconds, which can sometimes not be long
enough for slow builds such as TSan builds.
https://searchfox.org/mozilla-central/rev/468a65168dd0bc3c7d602211a566c16e66416cce/testing/mochitest/tests/SimpleTest/SimpleTest.js#1266,1269

Differential Revision: https://phabricator.services.mozilla.com/D134581
2021-12-25 22:47:11 +00:00
Karl Tomlinson
5ec86389c8 Bug 1705532 use async/await instead of callbacks r=annyG
Differential Revision: https://phabricator.services.mozilla.com/D134580
2021-12-25 22:47:11 +00:00
Kagami Sascha Rosylight
1af44698e9 Bug 1539884 - Part 33: Mark nsDocLoader::DocLoaderIsEmpty as CAN_RUN_SCRIPT r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D134416
2021-12-23 16:27:25 +00:00
Kagami Sascha Rosylight
b35db1ba18 Bug 1539884 - Part 24: Mark nsIContentViewer::pageHide as can_run_script r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D134388
2021-12-23 16:27:21 +00:00
Anny Gakhokidze
47764bd683 Bug 1735613 - Part 1: Remove the requirement for SHIP with parent controlled loads, r=peterv,nika
Differential Revision: https://phabricator.services.mozilla.com/D132092
2021-12-20 22:39:29 +00:00
Anny Gakhokidze
b2523ab7eb Bug 1721217 - Part 7: Make sure to cancel loads when a canonical BC gets discarded, r=nika
This fixes failures in browser/base/content/test/tabPrompts/browser_contentOrigins.js

Differential Revision: https://phabricator.services.mozilla.com/D126847
2021-12-16 22:27:18 +00:00
Anny Gakhokidze
a4eca0ad6f Bug 1721217 - Part 6: Don't cancel concurrent loads if they are downloads, r=nika,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D126846
2021-12-16 22:27:17 +00:00
Anny Gakhokidze
81d0b36175 Bug 1721217 - Part 5: Change the error code when we cancel loads due to another one starting, r=nika
This allows us to move away from using IsNavigating field in parent-controlled
paths.  Use a new distinct error code in cases when we cancel loads in
Canonical BC due to another load starting. This way, we know to not reset the
urlbar if we are doing another load.

See https://bugzilla.mozilla.org/show_bug.cgi?id=1721217#c10 for longer
explanation of what is going on here.

Differential Revision: https://phabricator.services.mozilla.com/D126845
2021-12-16 22:27:17 +00:00
Anny Gakhokidze
1fdd285c2c Bug 1721217 - Part 2: Fix the race between navigations originating in the parent and in the content, r=nika
Add a synced ParentInitiatedNavigationEpoch field to browsing context, which
only gets incremented when we start navigations in the parent process. When a
child process initiates a navigation, it sends the current value of the field
that it sees via DocumentChannelCreationArgs. In the parent process, we can
compare the value of that field with the latest one for the same browsing
context. If the latest value is higher than the one provided by the content
process, it means that in the meantime parent process has started a navigation
so the earlier navigation originating in the content process will be cancelled.

Differential Revision: https://phabricator.services.mozilla.com/D126842
2021-12-16 22:27:16 +00:00
Anny Gakhokidze
a15eb38a92 Bug 1721217 - Part 1: Enable parent controlled loads via DC, r=nika
Differential Revision: https://phabricator.services.mozilla.com/D126841
2021-12-16 22:27:15 +00:00
Peter Van der Beken
a33a4db25e Bug 1744397 - Simplify refresh code: pass around delay as an unsigned int. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D132863
2021-12-16 22:27:08 +00:00
Peter Van der Beken
ef88fc87e8 Bug 1744397 - Simplify refresh code: clean up meta refresh code in nsDocShell. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D132862
2021-12-16 22:27:07 +00:00
Peter Van der Beken
6cd3771ef1 Bug 1744397 - Simplify refresh code: remove aMetaRefresh argument. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D132861
2021-12-16 22:27:07 +00:00
Peter Van der Beken
fd2d03af6a Bug 1744397 - Simplify refresh code: remove aRepeat argument. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D132860
2021-12-16 22:27:06 +00:00
Toshihito Kikuchi
baa43db813 Bug 1743663 - Remove windowContext.hasActivePeerConnections. r=peterv
TabUnloader.jsm can directly call windowGlobal.hasActivePeerConnections(),
so windowContext.hasActivePeerConnections is not needed.

Differential Revision: https://phabricator.services.mozilla.com/D132654
2021-12-16 16:14:13 +00:00
Peter Van der Beken
b9b3a16001 Bug 1742865 - Handle meta refresh correctly with session history in the parent. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D132837
2021-12-16 15:31:56 +00:00
Butkovits Atila
196050d57d Backed out changeset e55eb174b342 (bug 1742865) for causin failures at attr-meta-http-equiv-refresh/parsing.html?131 2021-12-16 12:15:59 +02:00
Peter Van der Beken
8f586038da Bug 1742865 - Handle meta refresh correctly with session history in the parent. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D132837
2021-12-16 08:19:45 +00:00
Dennis Jackson
cf376cc878 Bug 1742617 - Add null pointer check for missing cert in MaybeFixBadCertDomainErrorURI r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D132153
2021-12-15 12:24:39 +00:00
Henri Sivonen
527882bab5 Bug 1736248 - Update the charset source if non-ASCII is seen after the first detector guess but the encoding does not change. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D133731
2021-12-14 15:01:21 +00:00
Norisz Fay
333caceb64 Backed out 5 changesets (bug 1742865, bug 1744397) for causing wpt failures on attr-meta-http-equiv-refresh/parsing.html CLOSED TREE
Backed out changeset 7b01edc5a0e0 (bug 1744397)
Backed out changeset 41abd4b7d2c0 (bug 1744397)
Backed out changeset 634641e3a05a (bug 1744397)
Backed out changeset 6e7755177481 (bug 1744397)
Backed out changeset e9fc94b33da9 (bug 1742865)
2021-12-14 13:25:58 +02:00
Peter Van der Beken
bfbe9b27fe Bug 1744397 - Simplify refresh code: pass around delay as an unsigned int. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D132863
2021-12-14 10:14:00 +00:00
Peter Van der Beken
a538f42b2d Bug 1744397 - Simplify refresh code: clean up meta refresh code in nsDocShell. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D132862
2021-12-14 10:13:59 +00:00