Edgar Chen
3e6487ae46
Bug 1653214 - Part 1: Merge implementations of nsDocShell::Create into nsDocShell::InitWindow; r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D83766
2020-07-16 20:42:02 +00:00
Razvan Maries
22f0615ea7
Backed out 3 changesets (bug 1653123, bug 1602115) for perma failures on test_history_length_during_pageload.html. CLOSED TREE
...
Backed out changeset 6b3c0f542ef3 (bug 1653123)
Backed out changeset 951c0fd65a00 (bug 1602115)
Backed out changeset 258d0ebd9e34 (bug 1602115)
2020-07-16 23:21:18 +03:00
Olli Pettay
81ced2e67b
Bug 1602115 - Make history.length Fission compatible, r=peterv
...
Differential Revision: https://phabricator.services.mozilla.com/D79197
2020-07-16 19:01:36 +00:00
Peter Van der Beken
915cfcc864
Bug 1648040 - Use the new session history if pref is on. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D80885
2020-07-16 14:04:59 +00:00
Peter Van der Beken
42df6e4e35
Bug 1648038 - Don't require session history object when creating an entry. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D80883
2020-07-14 11:14:46 +00:00
Frederik Braun
617d3006d9
Bug 1366973: Rename security flags to not contain DATA anymore r=geckoview-reviewers,ckerschb,snorp
...
Differential Revision: https://phabricator.services.mozilla.com/D83490
2020-07-15 11:20:45 +00:00
Peter Van der Beken
9bcd1edd65
Bug 1644140 - Remove nsDocShell::AddChildSHEntryInternal and make some session history code in nsDocShell work with fission. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D78686
2020-07-13 15:42:15 +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
Dan Glastonbury
8cc0ad8e59
Bug 1646899 - P3: Modify CanUseDocumentChannel to take necessary vars. r=mattwoodrow
...
Allows checking if DocumentChannel can be used with out creating an
nsDocShellLoadState object.
Differential Revision: https://phabricator.services.mozilla.com/D80406
2020-07-13 00:48:54 +00:00
Matt Woodrow
a9dcd40fbe
Bug 1649879 - Handle URIFixup that happens on a failed channel in DocumentLoadListener if available, rather than waiting for it to reach nsDocShell. r=kmag
...
Differential Revision: https://phabricator.services.mozilla.com/D81947
2020-07-08 23:38:22 +00:00
julianwels
54caed8826
Bug 1644456 - Manage HTTPS-Only Mode permission with SitePermissions interface. r=necko-reviewers,pbz,dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D79427
2020-07-08 12:06:02 +00:00
Christoph Kerschbaumer
d57281e984
Bug 1647719: Introduce Pref for HTTS-Only in Private Browsing Mode. r=JulianWels,jcj
...
Differential Revision: https://phabricator.services.mozilla.com/D80873
2020-07-06 08:52:02 +00:00
Coroiu Cristina
607a5f52ac
Backed out 5 changesets (bug 1649879) for browser-chrome failures at browser/base/content/test/tabs/browser_progress_keyword_search_handling.js
...
Backed out changeset f9670eed4ac5 (bug 1649879)
Backed out changeset 76ab8adad34b (bug 1649879)
Backed out changeset 6dc2e9474f43 (bug 1649879)
Backed out changeset 6f905d33681f (bug 1649879)
Backed out changeset 13b19e14a332 (bug 1649879)
2020-07-06 10:44:56 +03:00
Matt Woodrow
a11388855f
Bug 1649879 - Handle URIFixup that happens on a failed channel in DocumentLoadListener if available, rather than waiting for it to reach nsDocShell. r=kmag
...
Differential Revision: https://phabricator.services.mozilla.com/D81947
2020-07-06 04:29:33 +00:00
Olli Pettay
593c0b8e02
Bug 1649772 - Simplify nsIWebPageDescriptor, r=peterv
...
Differential Revision: https://phabricator.services.mozilla.com/D81871
2020-07-02 14:58:15 +00:00
Henri Sivonen
695d6eb24c
Bug 1647301 - Remove forceCharset from nsIContentViewer. r=m_kato
...
Differential Revision: https://phabricator.services.mozilla.com/D80470
2020-07-02 06:23:24 +00:00
Simon Giesecke
a69d79b6db
Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D80860
2020-07-01 08:29:29 +00:00
Matt Woodrow
53b468728c
Bug 1623461 - Clear nsDocShell::mBlankTiming when providing an existing timing object from a process switch. r=jya
...
Differential Revision: https://phabricator.services.mozilla.com/D81636
2020-06-30 03:32:43 +00:00
Matt Woodrow
b90c5208a5
Bug 1646892 - Allow DocumentChannel process switches into the parent process. r=jya,nika
...
Differential Revision: https://phabricator.services.mozilla.com/D80327
2020-06-27 04:10:23 +00:00
Gabriel Luong
b322607da1
Bug 1647972 - Add a new PlatformOverride field onto BrowsingContext r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D81285
2020-06-26 14:17:08 +00:00
Peter Van der Beken
4dc370982f
Bug 1648033 - Call session history listener for reload in the parent process if session history in the parent is on. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D80882
2020-06-26 14:34:12 +00:00
Dorel Luca
92dd79fc36
Backed out changeset c6d8b979af47 (bug 1644140) for causing Bug 1644213 to regress
2020-06-26 14:21:41 +03:00
Matt Woodrow
6bb92184ef
Bug 1626362 - Make mOriginalUriString available in DocumentLoadListener and docshell. r=nika,necko-reviewers,valentin
...
This also fixes a bug where we were setting mOriginalUriString in docshell before InternalLoad (which clears it), instead of after.
Differential Revision: https://phabricator.services.mozilla.com/D80110
2020-06-25 04:33:14 +00:00
Matt Woodrow
4af119cde5
Bug 1626362 - Move nsDocShell::mUserErrorPages to BrowsingContext. r=nika
...
This is only used by Thunderbird, and is always true for Firefox. I've made CanSet only allow the embedder process, which is the desired behaviour, and should work for non-e10s.
Differential Revision: https://phabricator.services.mozilla.com/D80109
2020-06-25 04:32:51 +00:00
Matt Woodrow
3587dc1976
Bug 1626362 - Move url classifier notifications to parent process. r=nika,necko-reviewers,JuniorHsu
...
We shouldn't need to handle this with an early return in docshell, since the classifier failure codes won't display an error page anyway.
Differential Revision: https://phabricator.services.mozilla.com/D80108
2020-06-25 04:32:28 +00:00
Matt Woodrow
18c43579ff
Bug 1626362 - Combine two load error page functions into one. r=nika
...
I don't think we need these to be done at different times, since the set of checks that happen before uri fixup are error codes that won't be affected by fixup.
Differential Revision: https://phabricator.services.mozilla.com/D80107
2020-06-25 04:32:06 +00:00
Matt Woodrow
395d7b6c67
Bug 1626362 - Move checks for deciding if we should load an error page into helpers. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D80106
2020-06-25 04:32:04 +00:00
Matt Woodrow
023b766fe4
Bug 1626362 - Move docshell uri fixup code into a static helper. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D80104
2020-06-25 04:32:01 +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
Henri Sivonen
c2b1e3bb69
Bug 1647728 - Unify kCharsetFromUserForced and kCharsetFromParentForced. r=m_kato
...
For making further changes less messy.
Differential Revision: https://phabricator.services.mozilla.com/D80813
2020-06-25 03:25:03 +00:00
Eden Chuang
744f4296e3
Bug 1637035 - Do not inherit COEP from opener for non-http or non-initial-about:blank documents r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D80414
2020-06-25 02:14:29 +00:00
Csoregi Natalia
74b35e668c
Backed out 9 changesets (bug 1626362) for failures on a-download-click-404.html. CLOSED TREE
...
Backed out changeset d29ac651a4fd (bug 1626362)
Backed out changeset 5ba5cf98a95d (bug 1626362)
Backed out changeset 69b5b01da9c1 (bug 1626362)
Backed out changeset 1d31061f4421 (bug 1626362)
Backed out changeset a627870e35fb (bug 1626362)
Backed out changeset 5f3ee46032b6 (bug 1626362)
Backed out changeset 5b170666991e (bug 1626362)
Backed out changeset 4d31c2ede058 (bug 1626362)
Backed out changeset 66a9ba0f87cb (bug 1626362)
2020-06-25 02:45:52 +03:00
Matt Woodrow
a8f075a898
Bug 1626362 - Make mOriginalUriString available in DocumentLoadListener and docshell. r=nika,necko-reviewers,valentin
...
This also fixes a bug where we were setting mOriginalUriString in docshell before InternalLoad (which clears it), instead of after.
Differential Revision: https://phabricator.services.mozilla.com/D80110
2020-06-24 22:03:39 +00:00
Matt Woodrow
750d1aee38
Bug 1626362 - Move nsDocShell::mUserErrorPages to BrowsingContext. r=nika
...
This is only used by Thunderbird, and is always true for Firefox. I've made CanSet only allow the embedder process, which is the desired behaviour, and should work for non-e10s.
Differential Revision: https://phabricator.services.mozilla.com/D80109
2020-06-24 22:03:16 +00:00
Matt Woodrow
9e71bbac50
Bug 1626362 - Move url classifier notifications to parent process. r=nika,necko-reviewers,JuniorHsu
...
We shouldn't need to handle this with an early return in docshell, since the classifier failure codes won't display an error page anyway.
Differential Revision: https://phabricator.services.mozilla.com/D80108
2020-06-24 22:03:04 +00:00
Matt Woodrow
cc26ed0c8b
Bug 1626362 - Combine two load error page functions into one. r=nika
...
I don't think we need these to be done at different times, since the set of checks that happen before uri fixup are error codes that won't be affected by fixup.
Differential Revision: https://phabricator.services.mozilla.com/D80107
2020-06-24 22:02:56 +00:00
Matt Woodrow
56c14c7055
Bug 1626362 - Move checks for deciding if we should load an error page into helpers. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D80106
2020-06-24 22:01:55 +00:00
Matt Woodrow
49b358be10
Bug 1626362 - Move docshell uri fixup code into a static helper. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D80104
2020-06-24 22:01:43 +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
Jean-Yves Avenard
05adafa9ef
Bug 1637500 - P2. Rename methods as they are not always dealing with "threads". r=froydnj
...
Before P1, GetCurrentThreadSerialEventTarget would have always returned the same data as NS_GetCurrentThread, making the comment incorrect Now it will properly return the running TaskQueue if any.
This change of name more clearly exposes what they are doing, as we aren't always dealing with threads directly; but a nsISerialEventTarget
Differential Revision: https://phabricator.services.mozilla.com/D80354
2020-06-23 05:05:36 +00:00
Henri Sivonen
202b60fc22
Bug 1646484 - Remove nsIDocShell::forcedCharset. r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D80072
2020-06-18 01:18:11 +00:00
Matt Woodrow
216c7f598e
Bug 1644943 - Create single webprogress for CanonicalBrowsingContext, regardless of process the browser element contents are in. r=nika,kmag,Gijs
...
I think at this point we can remove all of RemoteWebProgressManager, some/all of the TabProgressListener recreations, and probably a bunch more.
Differential Revision: https://phabricator.services.mozilla.com/D79240
2020-06-17 02:59:29 +00:00
Razvan Maries
f3accf16d2
Backed out changeset f56d5efc5e43 (bug 1644943) for build bustages on nsFrameLoaderOwner.cpp. CLOSED TREE
2020-06-17 02:55:01 +03:00
Nicholas Nethercote
a2ef9fa679
Bug 1645982 - Rename some service getters in Services.py to better match the types. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D79791
2020-06-16 23:32:21 +00:00
Matt Woodrow
643b32a784
Bug 1644943 - Create single webprogress for CanonicalBrowsingContext, regardless of process the browser element contents are in. r=nika,kmag,Gijs
...
I think at this point we can remove all of RemoteWebProgressManager, some/all of the TabProgressListener recreations, and probably a bunch more.
Differential Revision: https://phabricator.services.mozilla.com/D79240
2020-06-16 23:24:49 +00:00
Simon Giesecke
c3d543181b
Bug 1645339 - Use range-based for with nsTObserverArray in docshell. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D79493
2020-06-16 10:14:24 +00:00
Simon Giesecke
25ba854d50
Bug 1645450 - Remove elements by index rather than searching in docshell. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D79513
2020-06-15 17:04:20 +00:00
Nika Layzell
f0cda86000
Bug 1508306 - Part 1: Migate the Large-Allocation handler to DocumentLoadListener, r=mattwoodrow,necko-reviewers,geckoview-reviewers,agi,valentin
...
This removes the diagnostic warnings which used to be logged when the
Large-Allocation header was present, but failed to switch into a
Large-Allocation process. Due to the low adoption of the header, this shouldn't
be too large of a problem, but we can look into re-adding the diagnostics if
needed in the future.
The new codepath no longer performs multiple network requests for
Large-Allocation resources, and now relies on the battle-tested
DocumentLoadListener codepath for process switching.
Differential Revision: https://phabricator.services.mozilla.com/D78998
2020-06-15 23:24:07 +00:00
Bogdan Tara
01729dc302
Backed out changeset 26231891f004 (bug 1644943) for browser_backforward_userinteraction.js and browser_sessionHistory.js failures CLOSED TREE
2020-06-16 02:46:15 +03:00