Narcis Beleuzu
6e9d812757
Backed out 12 changesets (bug 1721217) for bc failures on browser_TopLevelNavigationDelegate.js
...
Backed out changeset 5fe3c617d521 (bug 1721217)
Backed out changeset c131e4a6d9d5 (bug 1721217)
Backed out changeset a59210a5b400 (bug 1721217)
Backed out changeset 74362b0c39c0 (bug 1721217)
Backed out changeset c8075b91d660 (bug 1721217)
Backed out changeset 46512deaf0e5 (bug 1721217)
Backed out changeset b38bc569d227 (bug 1721217)
Backed out changeset ee9bd012fda8 (bug 1721217)
Backed out changeset 7aa2726a0982 (bug 1721217)
Backed out changeset 885ced5f4bb4 (bug 1721217)
Backed out changeset 7d3f99ca3f44 (bug 1721217)
Backed out changeset 2f5a0164679a (bug 1721217)
2021-12-01 03:38:10 +02:00
Anny Gakhokidze
f93c8afd88
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-11-30 16:31:34 +00:00
Narcis Beleuzu
96c4882d22
Backed out 11 changesets (bug 1721217) for bc failures on browser_scrollPositions.js . CLOSED TREE
...
Backed out changeset 750f4a84b30e (bug 1721217)
Backed out changeset c4eb4ad769ad (bug 1721217)
Backed out changeset 81af11d67439 (bug 1721217)
Backed out changeset 548f2441b7c6 (bug 1721217)
Backed out changeset cd584129321a (bug 1721217)
Backed out changeset f5f5291d1da8 (bug 1721217)
Backed out changeset 9ad66ceec1e2 (bug 1721217)
Backed out changeset 10b53a21bb23 (bug 1721217)
Backed out changeset 3755cfbe22fe (bug 1721217)
Backed out changeset 71436dc6c4c4 (bug 1721217)
Backed out changeset ecf33b73ae60 (bug 1721217)
2021-11-26 01:51:03 +02:00
Anny Gakhokidze
3318dd6b6e
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-11-25 20:40:57 +00:00
Sean Feng
64a91b18e5
Bug 1735644 - Use TimeStamp::Now() as AsyncOpenTime for DocumentChannel r=nika,valentin,necko-reviewers
...
Currently `AsyncOpenTime` is generated when DocumentChannel is
created, rather than being set in the `AsyncOpen` function. This is
mysterious and the reason for doing it this way is unclear.
I noticed a discrepancy while comparing the test result for
`nav2_test_redirect_server.html`. When I run it locally, the
value of `redirectStart` was 0.05 for me in Firefox and 1.5 in Chrome,
which turned out AsyncOpenTime was being used, and it didn't look like
it was set to the correct value.
I think we should use `TimeStamp::Now()` instead which appeals to be
more accurate.
Differential Revision: https://phabricator.services.mozilla.com/D129549
2021-10-28 00:37:15 +00:00
Valentin Gosu
fc5c91fb40
Bug 1733356 - Fix non-unified build errors in netwerk/ipc/ r=necko-reviewers,kershaw
...
Differential Revision: https://phabricator.services.mozilla.com/D127402
2021-10-14 12:57:59 +00:00
Cosmin Sabou
8b22b9a67c
Backed out 10 changesets (bug 1733356, bug 1733922) for causing windows hybrid bustages. CLOSED TREE
...
Backed out changeset 85b747a60e73 (bug 1733922 )
Backed out changeset 4af7a3a697ad (bug 1733356)
Backed out changeset 3b2e02c99090 (bug 1733356)
Backed out changeset b481b801250e (bug 1733356)
Backed out changeset 88c33cdcb8aa (bug 1733356)
Backed out changeset 3d31e8c8e194 (bug 1733356)
Backed out changeset 616f676e8f94 (bug 1733356)
Backed out changeset 3f8e9b14879d (bug 1733356)
Backed out changeset 241c7cdb3f6b (bug 1733356)
Backed out changeset 7f9e266070c6 (bug 1733356)
2021-10-14 01:54:30 +03:00
Valentin Gosu
40f137554d
Bug 1733356 - Fix non-unified build errors in netwerk/ipc/ r=necko-reviewers,kershaw
...
Differential Revision: https://phabricator.services.mozilla.com/D127402
2021-10-13 19:39:06 +00:00
Cristian Tuns
b97fa80548
Backed out 10 changesets (bug 1733922, bug 1733356) for causing hybrid build bustages on nsAboutProtocolHandler.cpp. CLOSED TREE
...
Backed out changeset 293ff1a22c98 (bug 1733922 )
Backed out changeset b640749ee844 (bug 1733356)
Backed out changeset d2e3dc1b492a (bug 1733356)
Backed out changeset cd6c19829601 (bug 1733356)
Backed out changeset ef8145f88447 (bug 1733356)
Backed out changeset 366e2d375980 (bug 1733356)
Backed out changeset 14563275a25b (bug 1733356)
Backed out changeset 7700cd82bdf2 (bug 1733356)
Backed out changeset 4e198c3d5ef3 (bug 1733356)
Backed out changeset c26481d0f689 (bug 1733356)
2021-10-11 10:02:20 -04:00
Valentin Gosu
cff7147f1e
Bug 1733356 - Fix non-unified build errors in netwerk/ipc/ r=necko-reviewers,kershaw
...
Differential Revision: https://phabricator.services.mozilla.com/D127402
2021-10-11 10:40:06 +00:00
Nika Layzell
0eeb1388f2
Bug 1722880 - Part 1: Add IsInBFCache to WindowContext, and make it non-SHIP compatible, r=smaug,necko-reviewers,dragana
...
This field will be useful to JS code such as JSWindowActors which need to be
able to detect when their WindowContext is no longer active.
Differential Revision: https://phabricator.services.mozilla.com/D124098
2021-09-03 15:26:13 +00:00
Peter Van der Beken
0df75e1148
Bug 1715884 - Call DisconnectChildListeners directly if we've already put a BC in the BFCache. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D118299
2021-06-21 10:35:28 +00:00
Peter Van der Beken
9c19c5e1dc
Bug 1696175 - Call DisconnectChildListeners at a later time for BFCache in the parent. r=necko-reviewers,nika
...
Differential Revision: https://phabricator.services.mozilla.com/D112981
2021-05-13 15:38:01 +00:00
Anny Gakhokidze
5b6b73ae0d
Bug 1597427 - Check for recursive subframe loads in the parent process, r=kmag,necko-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D107311
2021-03-11 00:39:37 +00:00
Olli Pettay
da49f813a4
Bug 1689601, hide fission.bfcacheInParent pref access behind a function which checks that also SHIP is enabled, r=peterv,necko-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D106562
2021-03-02 12:13:21 +00:00
Olli Pettay
79c168187d
Bug 1689601, try to use bfcache for top level pages, r=peterv
...
Differential Revision: https://phabricator.services.mozilla.com/D105238
2021-03-02 12:13:20 +00:00
Mihai Alexandru Michis
f7d499a648
Backed out 16 changesets (bug 1689601) for causing cpp bustages in nsFrameLoader.
...
CLOSED TREE
Backed out changeset 6e5523a7210d (bug 1689601 )
Backed out changeset 745eaa468c74 (bug 1689601 )
Backed out changeset a594bd02b8b6 (bug 1689601 )
Backed out changeset 0c5fe977ced6 (bug 1689601 )
Backed out changeset 2fca23521891 (bug 1689601 )
Backed out changeset 334aeb627855 (bug 1689601 )
Backed out changeset 2b2081a15d67 (bug 1689601 )
Backed out changeset 307bde43cc96 (bug 1689601 )
Backed out changeset 04aadec67ce2 (bug 1689601 )
Backed out changeset 701eccb34772 (bug 1689601 )
Backed out changeset 278db692aa8b (bug 1689601 )
Backed out changeset c261c243a64d (bug 1689601 )
Backed out changeset 7e8022e5696a (bug 1689601 )
Backed out changeset 6138bfc6c08d (bug 1689601 )
Backed out changeset 63295b3a62d0 (bug 1689601 )
Backed out changeset 6d02e59ddc51 (bug 1689601 )
2021-03-02 13:15:10 +02:00
Olli Pettay
a0105eed94
Bug 1689601, hide fission.bfcacheInParent pref access behind a function which checks that also SHIP is enabled, r=peterv,necko-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D106562
2021-03-02 09:44:14 +00:00
Olli Pettay
6b9c750b99
Bug 1689601, try to use bfcache for top level pages, r=peterv
...
Differential Revision: https://phabricator.services.mozilla.com/D105238
2021-03-02 09:44:12 +00:00
Nika Layzell
5afbed67ee
Bug 1682285 - Part 1: Split internal and external load flags, r=kmag,necko-reviewers,valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D103364
2021-01-29 22:06:16 +00:00
Masatoshi Kimura
12c9fd0669
Bug 1685900 - Split internal and external contentPolicyType. r=ckerschb,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D101271
2021-01-15 12:07:16 +00:00
Narcis Beleuzu
30a5f83baa
Backed out changeset a52961071dcd (bug 1685900) for Build bustage in nsContentSecurityManager.cpp. CLOSED TREE
2021-01-15 04:04:37 +02:00
Masatoshi Kimura
666d7f8e2b
Bug 1685900 - Split internal and external contentPolicyType. r=ckerschb,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D101271
2021-01-15 04:02:41 +02:00
Dorel Luca
922d64bb4f
Backed out changeset a52961071dcd (bug 1685900) for Build bustage in nsContentSecurityManager.cpp. CLOSED TREE
2021-01-15 02:45:34 +02:00
Masatoshi Kimura
fd94179ca1
Bug 1685900 - Split internal and external contentPolicyType. r=ckerschb,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D101271
2021-01-14 20:44:54 +00:00
Masatoshi Kimura
279bad6dbb
Bug 1682103 - Make nsContentPolicyType a CEnum type. r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D99580
2020-12-16 11:36:47 +00:00
Simon Giesecke
fbb9c742c8
Bug 1679272 - Include ScopeExit.h exactly where used. r=andi
...
Differential Revision: https://phabricator.services.mozilla.com/D98888
2020-12-07 14:25:59 +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
Nika Layzell
5ee15f041e
Bug 1614524 - Part 1: Add support for process-switching object/embed loads, r=mattwoodrow,smaug,kamidphish
...
By passing a weak reference back to the DocumentChannelParent into
DocumentLoadListener for object loads, we are able to handle process switching
loads by asking the content process to create a BrowsingContext, and delaying
the real process switch until it becomes available.
The load then completes as it would before, acting as a normal process-switching
subframe load.
Differential Revision: https://phabricator.services.mozilla.com/D86580
2020-08-18 16:49:34 +00:00
Edgar Chen
f504130c9e
Bug 1658650 - Remove hasValidTransientUserAction from DocumentChannelCreationArgs; r=mattwoodrow
...
There is the same information exposed in DocShellLoadStateInit.
And we don't really need to query user action from BrowsingContext, this
information would be carried in `nsDocShellLoadState`.
Depends on D86724
Differential Revision: https://phabricator.services.mozilla.com/D86773
2020-08-16 20:18:02 +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
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
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
Dan Glastonbury
f46941684d
Bug 1656925 - DocumentChannel: Don't add download loads to load group. r=mattwoodrow
...
Starting a load from a link click, to a link with the 'download' attribute
doesn't cancel any existing loads (since it's known to be just a download, not a
navigation, so doesn't need to replace the existing one). But then we have two
DocumentChannels alive at the same time, on the same loadgroup, the loadgroup
copies flags from the old one to the download one, since they're different, and
triggers the assert about setting LoadFlags.
The download one shouldn't really be added to the loadgroup; the progress of the
download should NOT block the 'load' event of the existing navigation.
Differential Revision: https://phabricator.services.mozilla.com/D85964
2020-08-10 15:10:31 +00:00
Csoregi Natalia
1d46598d45
Backed out 3 changesets (bug 1648887, bug 1611961) for assertion failures on WindowContext.cpp. CLOSED TREE
...
Backed out changeset 3719f7db339d (bug 1648887)
Backed out changeset b7c7fcb5df37 (bug 1648887)
Backed out changeset ab82a9c613f8 (bug 1611961)
2020-08-06 17:43:51 +03:00
Edgar Chen
ef727eb50f
Bug 1611961 - Move UserActivationState from BrowsingContext to WindowContext; r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D83126
2020-08-06 10:25:00 +00:00
Andreas Farre
b447c24f6c
Bug 1613431 - Part 3: Handle synced setters return value. r=nika
...
Depends on D83646
Differential Revision: https://phabricator.services.mozilla.com/D83647
2020-07-31 13:37:13 +00:00
Dan Glastonbury
23f70228fe
Bug 1646899 - P4: Handle object & embed via DocumentChannel. r=mattwoodrow,jya
...
Pass internal content policy type to DLL and switch behavior depending on type
being loaded. This implementation immediately redirects channel back to the
content process for further handling.
Depends on D80406
Differential Revision: https://phabricator.services.mozilla.com/D80407
2020-07-21 01:01:05 +00:00
Narcis Beleuzu
84c2303e03
Backed out 5 changesets (bug 1646899) for mochitest failures on DocumentLoadListener.cpp . CLOSED TREE
...
Backed out changeset f41ac122a801 (bug 1646899)
Backed out changeset 86a5e0827050 (bug 1646899)
Backed out changeset d2fd0f955e24 (bug 1646899)
Backed out changeset 7a7194146fe1 (bug 1646899)
Backed out changeset 4731d76dae88 (bug 1646899)
2020-07-13 05:43:30 +03:00
Dan Glastonbury
88f5bd0463
Bug 1646899 - P4: Handle object & embed via DocumentChannel. r=mattwoodrow,jya
...
Pass internal content policy type to DLL and switch behavior depending on type
being loaded. This implementation immediately redirects channel back to the
content process for further handling.
Differential Revision: https://phabricator.services.mozilla.com/D80407
2020-07-13 00:48:57 +00:00
Matt Woodrow
fab0d1f7f9
Bug 1649349 - Don't delay rejecting DocumentLoadListener's Open promise when we switch process. r=jya
...
Differential Revision: https://phabricator.services.mozilla.com/D81648
2020-07-12 22:50:34 +00:00
Noemi Erli
da31063e94
Backed out changeset 3e349b00a1e4 (bug 1649349) for causing failures in browser_CORS-console-warnings.js
2020-07-02 14:01:25 +03:00
Matt Woodrow
c6c235e178
Bug 1649349 - Don't delay rejecting DocumentLoadListener's Open promise when we switch process. r=jya
...
Differential Revision: https://phabricator.services.mozilla.com/D81648
2020-07-02 07:12:23 +00:00
Mihai Alexandru Michis
e70851e149
Backed out changeset 28298106459d (bug 1649349) for causing multiple mochitest failures.
...
CLOSED TREE
2020-07-02 05:18:07 +03:00
Matt Woodrow
81ebb8a8a6
Bug 1649349 - Don't delay rejecting DocumentLoadListener's Open promise when we switch process. r=jya
...
Differential Revision: https://phabricator.services.mozilla.com/D81648
2020-06-30 19:19:59 +00:00
Olli Pettay
d434d19d46
Bug 1647307 - Simplify SessionHistoryInfo ID handling, r=peterv
...
Differential Revision: https://phabricator.services.mozilla.com/D80553
2020-06-25 16:20:32 +00:00
Andreas Farre
52f478c918
Bug 1590762 - Part 3: Keep track of current loads in BrowsingContext. r=mattwoodrow
...
Differential Revision: https://phabricator.services.mozilla.com/D75110
2020-06-23 13:01:37 +00:00
Olli Pettay
2274f0f423
Bug 1644119 - Pass loadingEntry to the docshell also when load is similar origin, r=peterv
...
Differential Revision: https://phabricator.services.mozilla.com/D78814
2020-06-12 20:53:11 +00:00
Jean-Yves Avenard
1fb00cd24d
Bug 1641737 - P5. Remove unnecessary method. r=mattwoodrow
...
Differential Revision: https://phabricator.services.mozilla.com/D78210
2020-06-12 05:56:46 +00:00
Razvan Maries
9cf11d6335
Backed out 7 changesets (bug 1641737) assertion failures. CLOSED TREE
...
Backed out changeset 7f7b98339065 (bug 1641737)
Backed out changeset 32fba417ebd0 (bug 1641737)
Backed out changeset abd9cd77f3cb (bug 1641737)
Backed out changeset e3bf9a45db6a (bug 1641737)
Backed out changeset 94d47578009c (bug 1641737)
Backed out changeset 28bca5c5b8b4 (bug 1641737)
Backed out changeset 0296d0f6c1d1 (bug 1641737)
2020-06-09 18:55:08 +03:00