Henri Sivonen
2fd5af8ef4
Bug 1736570 - Avoid DocumentChannel for nsParser-created initial about:blank replacement. r=nika,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D135106
2022-02-17 13:27:15 +00:00
Emilio Cobos Álvarez
51f5539b57
Bug 1754813 - Make Hal::ScreenOrientation an enum class. r=gsvelto,m_kato,geckoview-reviewers
...
This adds proper IPC validation too.
Differential Revision: https://phabricator.services.mozilla.com/D138461
2022-02-14 07:51:06 +00:00
Nika Layzell
001c77587c
Bug 1746115 - Perform data URI blocking from DocumentLoadListener, r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D138213
2022-02-11 16:34:24 +00:00
Nika Layzell
acaba2d6b2
Bug 1744352 - Part 2: Add test for sandboxing javascript uris in pop-ups, r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D138211
2022-02-09 17:50:51 +00:00
Nika Layzell
14fc53518e
Bug 1744352 - Part 1: Ensure we set InitialSandboxFlags when opening or replacing toplevel BrowsingContexts, r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D138209
2022-02-09 17:50:51 +00:00
Butkovits Atila
1d9c37d4a5
Backed out 2 changesets (bug 1744352) for causing failures at test_javascript_sandboxed_popup.html. CLOSED TREE
...
Backed out changeset 1a7d29ce984c (bug 1744352)
Backed out changeset b3a8f99f0044 (bug 1744352)
2022-02-09 17:53:32 +02:00
Nika Layzell
ea06f86339
Bug 1744352 - Part 2: Add test for sandboxing javascript uris in pop-ups, r=smaug
...
Depends on D138209
Differential Revision: https://phabricator.services.mozilla.com/D138211
2022-02-09 14:44:51 +00:00
Nika Layzell
5e17bc5cd2
Bug 1744352 - Part 1: Ensure we set InitialSandboxFlags when opening or replacing toplevel BrowsingContexts, r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D138209
2022-02-09 14:44:51 +00:00
Nika Layzell
ff54347f9f
Bug 1753136 - Explicitly escape and unescape precursor origins in null principal queries, r=valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D138090
2022-02-08 15:18:21 +00:00
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