Граф коммитов

8598 Коммитов

Автор SHA1 Сообщение Дата
Dana Keeler 6502ebf4b6 Bug 1608307 - remove redundant flags parameters from nsISiteSecurityService r=jschanck,necko-reviewers,kershaw
Before this patch, nsISiteSecurityService APIs took "flags" parameters that
differentiated private contexts from not private contexts. However, these
parameters were redundant with respect to origin attributes, which led to some
confusion for consumers of these APIs. This patch removes these parameters in
favor of using origin attributes.

Differential Revision: https://phabricator.services.mozilla.com/D142901
2022-04-06 17:37:23 +00:00
Frederik Braun 86ba751d18 Bug 1577122 - mozJSComponentLoader::Import() should only work for internal URLs, and update some tests r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D140058
2022-04-06 14:36:47 +00:00
Butkovits Atila 393fc50e58 Backed out 4 changesets (bug 1735746) for causing failures at browser_protocol_custom_sandbox.js. CLOSED TREE
Backed out changeset 703dfd92c775 (bug 1735746)
Backed out changeset 3b06ed08d93b (bug 1735746)
Backed out changeset 9968278b9efe (bug 1735746)
Backed out changeset 49f2e283115d (bug 1735746)
2022-04-05 16:04:29 +03:00
Paul Zuehlcke 720e7605fe Bug 1735746 - Block external protocol navigation from sandboxed contexts. r=nika,ckerschb,Gijs,smaug
Differential Revision: https://phabricator.services.mozilla.com/D141131
2022-04-05 11:31:53 +00:00
Emilio Cobos Álvarez 6553f27967 Bug 1762298 - Inherit used color-scheme from embedder <browser> elements. r=nika,dao,Gijs
This allows popups and sidebars to use the chrome preferred
color-scheme.

This moves the responsibility of setting the content-preferred color
scheme to the appropriate browsers to the front-end (via tabs.css).

We still return the PreferredColorSchemeForContent() when there's no
pres context (e.g., for display:none in-process iframes). We could
potentially move a bunch of the pres-context data to the document
instead, but that should be acceptable IMO as for general web content
there's no behavior change in any case.

Differential Revision: https://phabricator.services.mozilla.com/D142578
2022-04-04 18:22:04 +00:00
Jonathan Watt 82ca8925d2 Bug 1757657. Remove some about:printpreview cruft that was missed in 1702501. r=mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D139993
2022-04-04 17:19:24 +00:00
Cosmin Sabou ae056f8313 Backed out changeset f255030d86d8 (bug 1577122) for causing talos crashes in Bug 1762611. 2022-04-01 23:30:12 +03:00
Cathy Lu 104eb166e9 Bug 1753700 - Rename ActivityChanged to BrowserPriorityChanged. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D141531
2022-04-01 14:42:41 +00:00
Frederik Braun e926167702 Bug 1577122 - mozJSComponentLoader::Import() should only work for internal URLs, and update some tests r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D140058
2022-04-01 09:27:06 +00:00
Gijs Kruitbosch 8e67201171 Bug 1753696 - Automatic rewrite: replace add_task(setup with add_setup in browser mochitest, r=Standard8,webcompat-reviewers,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D141437
2022-03-30 16:16:42 +00:00
Norisz Fay acdd6851cd Backed out 2 changesets (bug 1753696) for causing multiple dt and bc failures CLOSED TREE
Backed out changeset 67fd9edfbcea (bug 1753696)
Backed out changeset a9d957ea887b (bug 1753696)
2022-03-30 12:17:55 +03:00
Gijs Kruitbosch 27039e2946 Bug 1753696 - Automatic rewrite: replace add_task(setup with add_setup in browser mochitest, r=Standard8,webcompat-reviewers,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D141437
2022-03-30 08:18:51 +00:00
Edgar Chen e475cac8cc Bug 1752250 - Part 2: [SHIP] Don't restore form data when reload a page with a no-store header; r=peterv
Sync mSaveLayoutState to child process, so when the LayoutHistoryState is created
and add into SessionHistoryInfo in child process, we could update its
mScrollPositionOnly flag directly.

Differential Revision: https://phabricator.services.mozilla.com/D141365
2022-03-29 20:27:09 +00:00
Edgar Chen 87adb15d3b Bug 1752250 - Part 1: Refactor form restoration test; r=peterv
to make adding new tests easier.

Differential Revision: https://phabricator.services.mozilla.com/D141364
2022-03-29 20:27:09 +00:00
Emilio Cobos Álvarez 8885ef4b8d Bug 1760674. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D141958
2022-03-29 12:15:52 +00:00
Cristian Tuns 9bd0c3604e Backed out changeset ddf7a48e3bf1 (bug 1760674) for causing mochitest failures on Link.cpp CLOSED TREE 2022-03-29 07:39:21 -04:00
Emilio Cobos Álvarez 0d56184e9d Bug 1760674. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D141958
2022-03-29 10:56:50 +00:00
Henri Sivonen 8dca2aaa89 Bug 1712928 - Gather telemetry about encoding-unlabeled pages and about Repair Text Encoding usage situations. r=emk
In particular, gather telemetry to evaluate the impact of unlabeled UTF-8
and how detector-triggered reloads would change if ASCII-only at initial
guess was treated as UTF-8.

Differential Revision: https://phabricator.services.mozilla.com/D140818
2022-03-29 08:04:25 +00:00
Butkovits Atila f60ac86be0 Backed out 2 changesets (bug 1728331) for causing failures at RTCPeerConnection-videoDetectorTest.html. CLOSED TREE
Backed out changeset b6649f0253c5 (bug 1728331)
Backed out changeset e9242af1224d (bug 1728331)
2022-03-29 00:04:47 +03:00
Nika Layzell 66b31a7ed2 Bug 1728331 - Part 1: Avoid cycling between processes when navigating within a tab, r=smaug
This patch replaces the previous process selection infrastructure with a
new setup implemented entirely in C++, which should more accurately
track the set of processes in use, and should encourage re-use of the
existing content process when navigating by not counting the current
tab.

This approach intentionally allows for process switching to another
process during navigation if there is uneven load between processes to
encourage balanced process use.

I think this may also fix some of the session restore issues with many
tabs using the same process, rather than being spread over 4, as we now
track a tab earlier in its lifecycle before the BrowserParent instance
is created.

Differential Revision: https://phabricator.services.mozilla.com/D126405
2022-03-28 16:18:04 +00:00
Tim Huang 7e5160909f Bug 1760009 - Don't strip the URL query parameters if there is no triggering principal. r=smaug
In the case where the triggering principal doesn't exist, calling
nsDocShellLoadState::MaybeStripTrackerQueryStrings() will crash. It's
becuase we will access the triggering principal in the function.

The patch makes the function to return early if the triggering prinicpal
doesn't exist. In this case, we cannot decide if we need to strip the
URL because the information from the triggering principal is lacking.
Therefore, we can only return and don't strip the URL. Also, this can
avoid crashing Firefox.

Differential Revision: https://phabricator.services.mozilla.com/D141594
2022-03-22 08:45:19 +00:00
Jamie Nicol 5178584a8a Bug 1759990 - Add about:crashgpu redirector to cause GPU process crash. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D141337
2022-03-21 20:55:56 +00:00
Nika Layzell c14c6bb509 Bug 1647892 - Improve the reliability of test_double_submit.html, r=farre
Unlike the previous implementation, this new version performs the
waiting before sending response headers, meaning that it delays
OnStartRequest rather than just delaying the response body. As the
double-submission prevention currently only waits for OnStartRequest,
this should improve the reliability of the test.

Because the test no longer requires large amounts of data for delay
purposes, it has also been simplified to not generate random large
payloads anymore.

Differential Revision: https://phabricator.services.mozilla.com/D141427
2022-03-21 20:19:45 +00:00
Mike Conley 7c2537851e Bug 1759549 - Persist wireframes to Session Store when wireframe capturing is enabled. r=mossop,farre
Differential Revision: https://phabricator.services.mozilla.com/D141001
2022-03-21 17:54:13 +00:00
Butkovits Atila ff0c766132 Backed out changeset 583b98909672 (bug 1759549) for causing failures at browser_sessionHistory.js. 2022-03-21 19:34:29 +02:00
Mike Conley 3e72a94124 Bug 1759549 - Persist wireframes to Session Store when wireframe capturing is enabled. r=mossop,farre
Differential Revision: https://phabricator.services.mozilla.com/D141001
2022-03-21 15:43:15 +00:00
Paul Bone e322863d92 Bug 1697737 - pt 2. Remove the NOTIFY_LISTENERS macro r=nika
We can replace this macro with a static function to make the code here
easier to read.

Differential Revision: https://phabricator.services.mozilla.com/D107805
2022-03-21 02:31:30 +00:00
Paul Bone abe4c7e882 Bug 1697737 - pt 1. Remove NOTIFY_LISTENERS_CANCELABLE r=nika
This macro was used in two places to do the same thing.  We can remove this
over-generalisation and have clearer code.

Differential Revision: https://phabricator.services.mozilla.com/D107804
2022-03-21 02:31:29 +00:00
Sean Feng 0cd5f46306 Bug 1620690 - Fix BFCACHE_COMBO telemetry is double counted r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D141259
2022-03-17 14:59:28 +00:00
Randell Jesup fcaf70841e Bug 1207753 - Add MOZ_UNANNOTATED to all Mutexes/Monitors r=nika,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D140849
2022-03-16 18:47:08 +00:00
Noemi Erli 2390d257e6 Backed out changeset 12a59e5a50bf (bug 1207753) for causing build bustage CLOSED TREE 2022-03-16 18:32:51 +02:00
Randell Jesup 4b033a5256 Bug 1207753 - Add MOZ_UNANNOTATED to all Mutexes/Monitors r=nika,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D140849
2022-03-16 16:16:14 +00:00
Butkovits Atila 927ad62c6a Backed out changeset a68ee4b09f92 (bug 1207753) for causing Hazard bustages. CLOSED TREE 2022-03-16 14:38:14 +02:00
Randell Jesup 7d4b5fae04 Bug 1207753 - Add MOZ_UNANNOTATED to all Mutexes/Monitors r=nika,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D140849
2022-03-16 12:01:14 +00:00
Olli Pettay d60b67d332 Bug 1759444, null check webProgress before using it, r=peterv
this should fix the crash, but I'm investigating if beforeunload handling should be tweaked too as followup work.

Differential Revision: https://phabricator.services.mozilla.com/D141117
2022-03-15 16:28:42 +00:00
Mike Conley 62eaba6817 Bug 1749575 - Add tests for nsISHEntry.wireframe capturing. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D140987
2022-03-15 15:24:59 +00:00
criss cc323f558f Backed out 2 changesets (bug 1577122) for causing xpcshell failures. CLOSED TREE
Backed out changeset d2ec4915e725 (bug 1577122)
Backed out changeset 63a236bcd713 (bug 1577122)
2022-03-14 17:19:01 +02:00
Gijs Kruitbosch 5022553169 Bug 1577122 - fix tests, r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D139861
2022-03-14 14:00:22 +00:00
Olli Pettay e9e98dc88b Bug 1757458, replace loading session history entry only right before redirecting load to real channel r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D140559
2022-03-10 10:41:20 +00:00
Olli Pettay 0b429bbbfc Bug 1758664, don't try to recheck possible session history entry in the parent process if we're doing such check already, r=peterv
The code which this patch removes was clearly an oversight in the regressing patch.

Differential Revision: https://phabricator.services.mozilla.com/D140690
2022-03-10 10:19:57 +00:00
Chris Peterson 809cd2a13e Bug 1598759 - Remove support for Large-Allocation HTTP header. r=nika,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D140459
2022-03-09 03:18:04 +00:00
Nika Layzell 05dc5e0d76 Bug 1754037 - Part 3c: Automatically update all ParamTraits implementations, r=ipc-reviewers,media-playback-reviewers,bryce,mccr8
Automatically generated rewrites of all ParamTraits and IPDLParamTraits
implementations in-tree to use IPC::Message{Reader,Writer}.

Differential Revision: https://phabricator.services.mozilla.com/D140004
2022-03-04 15:39:41 +00:00
Nika Layzell 14e4d6be72 Bug 1754037 - Part 2: Forward declare Message{Reader,Writer} where Message is forward declared, r=ipc-reviewers,mccr8
This will allow the types to be more easily automatically substituted in place
of `IPC::Message`, as the type will already be declared in places it is used.

Differential Revision: https://phabricator.services.mozilla.com/D140000
2022-03-04 15:39:39 +00:00
Andreea Pavel 2e2899b994 Bug 1721261 - disable browser_browsingContext-webProgress.js on linux64 debug r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D140264
2022-03-03 22:57:42 +00:00
Sean Feng f61ec1c3d7 Bug 1741671 - Enable BFCache for pages with beforeunload event listeners on Desktop r=smaug
The changes only made it works in SHIP(session-history-in-parent) only.

Differential Revision: https://phabricator.services.mozilla.com/D131715
2022-03-03 19:13:47 +00:00
Cristian Tuns 1a0b214ad9 Backed out 2 changesets (bug 1741671) for causing wpt failures on back-forward-cache/events.html CLOSED TREE
Backed out changeset 7fffe4e20ea8 (bug 1741671)
Backed out changeset fc9c97d475c2 (bug 1741671)
2022-03-01 14:44:53 -05:00
Sean Feng 3380a4df7d Bug 1741671 - Enable BFCache for pages with beforeunload event listeners on Desktop r=smaug
The changes only made it works in SHIP(session-history-in-parent) only.

Differential Revision: https://phabricator.services.mozilla.com/D131715
2022-03-01 18:50:45 +00:00
Olli Pettay a5eb1e68fd Bug 1757005 - BrowsingContext.getCurrentTopByBrowserId returns null for a valid browserId, r=nika
Differential Revision: https://phabricator.services.mozilla.com/D139665
2022-02-26 23:24:47 +00:00
Cristian Tuns 8871543441 Backed out 2 changesets (bug 1741671) for causing wpt and mochitest failures on events.html CLOSED TREE
Backed out changeset 782650de8717 (bug 1741671)
Backed out changeset 6928411c8730 (bug 1741671)
2022-02-24 14:06:28 -05:00
Sean Feng 1a229dabcd Bug 1741671 - Enable BFCache for pages with beforeunload event listeners on Desktop r=smaug
The changes only made it works in SHIP(session-history-in-parent) only.

Differential Revision: https://phabricator.services.mozilla.com/D131715
2022-02-24 16:45:48 +00:00