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

9325 Коммитов

Автор SHA1 Сообщение Дата
M. Sirringhaus 4240388b19 Bug 1854618 - Implement about:webauthn page to display authenticator info (r=jschanck,desktop-theme-reviewers,bolsson)
Differential Revision: https://phabricator.services.mozilla.com/D188973
2023-11-02 16:21:48 +00:00
Iulian Moraru fcd238e653 Backed out changeset e210c2c7d93a (bug 1746524) for causing mass crashes related to DocumentLoadListener. CLOSED TREE 2023-11-02 11:35:09 +02:00
Andreas Farre 634593f2a0 Bug 1746524 - Enable browser.tabs.documentchannel.parent-controlled pref. r=smaug
This patch also does some cosmetic changes for when parent controlled
loads should be used, but more importantly introduces the pref
'browser.tabs.documentchannel.speculative-load' with the default value
false.

It turns out that speculatively loading in the parent when a parent
controlled load isn't possible is the cause for performance
regressions.

Differential Revision: https://phabricator.services.mozilla.com/D192489
2023-11-02 08:54:18 +00:00
Narcis Beleuzu f078d4fd81 Backed out 3 changesets (bug 1854908, bug 1854618, bug 1854620) for build bustages. CLOSED TREE
Backed out changeset b87eea9fe548 (bug 1854908)
Backed out changeset 501726f36e9c (bug 1854620)
Backed out changeset 84dd48da983c (bug 1854618)
2023-11-01 00:14:29 +02:00
M. Sirringhaus f4b1edc284 Bug 1854618 - Implement about:webauthn page to display authenticator info (r=jschanck,desktop-theme-reviewers,bolsson)
Differential Revision: https://phabricator.services.mozilla.com/D188973
2023-10-31 21:34:34 +00:00
Dave Townsend 201e447fd0 Bug 1855427: The DOMLinkRemoved chrome event is not used anywhere. r=emilio
The event isn't dispatched correctly for DOM manipulations anymore. It is
dispatched when swapping docshells but we don't actually use this event anywhere
except tests so we might as well just remove it entirely.

Differential Revision: https://phabricator.services.mozilla.com/D192333
2023-10-31 15:10:43 +00:00
Cristina Horotan 2842815eee Backed out 2 changesets (bug 1855992) for causing assertion failures at ContentParent.cpp CLOSED TREE
Backed out changeset 794155e516b3 (bug 1855992)
Backed out changeset 5489de5365fe (bug 1855992)
2023-10-31 12:19:43 +02:00
Gijs Kruitbosch ed63da3d0b Bug 1855992 - remove about: specialcase from principal validation in BrowserParent, r=nika,necko-reviewers,jesup
Differential Revision: https://phabricator.services.mozilla.com/D189923
2023-10-31 09:11:30 +00:00
Gijs Kruitbosch 6c143583b8 Bug 747301 - remove about:plugins and some other unused plugin-related code, r=mossop,handyman,fluent-reviewers,extension-reviewers,desktop-theme-reviewers,bolsson,dao,geckoview-reviewers,owlish,robwu
Differential Revision: https://phabricator.services.mozilla.com/D189921
2023-10-31 09:11:30 +00:00
Benjamin VanderSloot ae1d974be7 Bug 1858143 - "has storage access" should only persist during navigations that do not change the iframe's window origin - r=anti-tracking-reviewers,smaug,pbz
Minor correction from https://phabricator.services.mozilla.com/D184821.
The definition of "same-origin" used in that patch was that the iframe's origin after navigation is the same as the triggering principal.
This was incorrect.
Instead, the origin of the iframe before navigation should be the same as after navigation, which is the frame's document principal at the time this is called.

Also, I found places where I missed adding the new fields to the loadinfo: LocationBase and nsFrameLoader.
And I added the redirect tainting check and a missing nullcheck before calling SetTriggeringWindowId in nsDocShell.

Differential Revision: https://phabricator.services.mozilla.com/D190577
2023-10-26 14:24:14 +00:00
Adam Brouwers-Harries a26eafe5c3 Bug 1421651 - Remove obseleted timeline and TimelineMarker code r=canaltinova,webidl,devtools-reviewers,saschanaz,smaug,ochameau
This patch removes the old docshell timeline and timeline markers codebase and replaces them with equivalent Gecko profiler marker. This patch also fixes Bug 1834143, which is a subset of 1421651.

Differential Revision: https://phabricator.services.mozilla.com/D184217
2023-10-24 15:18:12 +00:00
Narcis Beleuzu 948c7279ee Backed out changeset 714aaf6484fb (bug 1421651) for causing Bug 1860719. CLOSED TREE 2023-10-24 17:31:02 +03:00
Mark Banner 31a45737c0 Bug 1858673 - Remove now unnecessary disabling of ESLint no-unsanitized/* rules from test files. r=freddyb,media-playback-reviewers,credential-management-reviewers,devtools-reviewers,sessionstore-reviewers,places-reviewers,aosmond,sgalich,dao,padenot
Differential Revision: https://phabricator.services.mozilla.com/D190985
2023-10-24 08:48:41 +00:00
Adam Brouwers-Harries 4cdf967b4e Bug 1421651 - Remove obseleted timeline and TimelineMarker code r=canaltinova,webidl,devtools-reviewers,saschanaz,smaug,ochameau
This patch removes the old docshell timeline and timeline markers codebase and replaces them with equivalent Gecko profiler marker. This patch also fixes Bug 1834143, which is a subset of 1421651.

Differential Revision: https://phabricator.services.mozilla.com/D184217
2023-10-23 13:55:50 +00:00
Sandor Molnar 15cde34bad Backed out 3 changesets (bug 1854908, bug 1854620, bug 1854618) for causing bc failures at browser/base/content/test/static/browser_all_files_referenced.js CLOSED TREE
Backed out changeset e059b0995a2a (bug 1854908)
Backed out changeset 689737898f5b (bug 1854620)
Backed out changeset 0464e2c6681d (bug 1854618)
2023-10-19 03:53:41 +03:00
M. Sirringhaus 581d7d8e27 Bug 1854618 - Implement about:webauthn page to display authenticator info (r=jschanck,desktop-theme-reviewers,bolsson)
Differential Revision: https://phabricator.services.mozilla.com/D188973
2023-10-18 20:04:27 +00:00
Marc Seibert 04d7ba785a Bug 1853418 - Prepare remaining tests.r=dao
Differential Revision: https://phabricator.services.mozilla.com/D190557
2023-10-18 10:15:34 +00:00
Tim Huang e2cb3b6fc1 Bug 1824222 - Add OverriddenFingerprintingSettings to WindowContext. r=nika,tjr
This patch adds a field called OverriddenFingerprintingSettings to
WindowContext. The OverriddenFingerprintingSettings represents the
granular overrides of fingerprinting protections due to WebCompat for
the given context. The value can be Nothing() if there is no overrides
defined for the context.

Differential Revision: https://phabricator.services.mozilla.com/D188758
2023-10-17 22:02:29 +00:00
Peter Van der Beken a6a8df4016 Bug 1850335 - Google Advanced Search terms not remembered when navigating back after visiting a search result. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D190467
2023-10-16 08:20:17 +00:00
Sylvestre Ledru d0f6c7fc66 Bug 1856795 - Remove redundant member init r=emilio
Done with:
./mach static-analysis check --checks="-*, readability-redundant-member-init" --fix .

https://clang.llvm.org/extra/clang-tidy/checks/readability/redundant-member-init.html

Differential Revision: https://phabricator.services.mozilla.com/D190002
2023-10-15 15:29:02 +00:00
Cristina Horotan 6a90f5eded Backed out 2 changesets (bug 1856795) for causing build bustage at BasicEvents.h CLOSED TREE
Backed out changeset 1d98b028923a (bug 1856795)
Backed out changeset eae2ac93e17c (bug 1856795)
2023-10-14 21:42:14 +03:00
Sylvestre Ledru cc8a0ee742 Bug 1856795 - Remove redundant member init r=emilio
Done with:
./mach static-analysis check --checks="-*, readability-redundant-member-init" --fix .

https://clang.llvm.org/extra/clang-tidy/checks/readability/redundant-member-init.html

Differential Revision: https://phabricator.services.mozilla.com/D190002
2023-10-14 17:34:26 +00:00
Peter Van der Beken 6df6e2ea90 Bug 1854139 - Remove unused aFireOnLocationChange argument from nsDocShell::OnNewURI. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D188728
2023-10-12 12:43:56 +00:00
Frederik Braun b903dda85e Bug 1812192 - Default some more tests to use HTTPS explicitly r=freddyb,mak
Depends on D179795

Differential Revision: https://phabricator.services.mozilla.com/D181097
2023-10-11 17:49:42 +00:00
Frederik Braun 7291dac470 Bug 1812192 - Store schemeless address bar loads in loadinfo and upgrade to https with fallback r=necko-reviewers,webidl,smaug,freddyb,kershaw
Depends on D179794

Differential Revision: https://phabricator.services.mozilla.com/D179795
2023-10-11 17:49:42 +00:00
Frederik Braun ec7bc44fb5 Bug 1812192 - Address bar should mark navigations that were schemeless r=mak,Gijs,tabbrowser-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D179794
2023-10-11 17:49:42 +00:00
Cristian Tuns 5fabc0ee57 Backed out 6 changesets (bug 1812192) for causing browser_schemeless.js failures. CLOSED TREE
Backed out changeset 3d07a92324d0 (bug 1812192)
Backed out changeset 9c2a1ff6c90d (bug 1812192)
Backed out changeset fa6784f8b0f4 (bug 1812192)
Backed out changeset 0f39aba7e4d5 (bug 1812192)
Backed out changeset ef7219327a10 (bug 1812192)
Backed out changeset 9833b559342e (bug 1812192)
2023-10-10 10:02:25 -04:00
Emilio Cobos Álvarez 25c0d10932 Bug 1624819 - Remove TaskCategory and other quantum dom remnants. r=smaug,media-playback-reviewers,credential-management-reviewers,cookie-reviewers,places-reviewers,win-reviewers,valentin,mhowell,sgalich,alwu
Sorry this is not a particularly easy patch to review. But it should be
mostly straight-forward.

I kept Document::Dispatch mostly for convenience, but could be
cleaned-up too / changed by SchedulerGroup::Dispatch. Similarly maybe
that can just be NS_DispatchToMainThread if we add an NS_IsMainThread
check there or something (to preserve shutdown semantics).

Differential Revision: https://phabricator.services.mozilla.com/D190450
2023-10-10 08:51:12 +00:00
Frederik Braun 43f9778dee Bug 1812192 - Default some more tests to use HTTPS explicitly r=freddyb,mak
Depends on D179795

Differential Revision: https://phabricator.services.mozilla.com/D181097
2023-10-10 08:43:00 +00:00
Frederik Braun aed55ecb55 Bug 1812192 - Store schemeless address bar loads in loadinfo and upgrade to https with fallback r=necko-reviewers,webidl,smaug,freddyb,kershaw
Depends on D179794

Differential Revision: https://phabricator.services.mozilla.com/D179795
2023-10-10 08:43:00 +00:00
Frederik Braun 9301710e8e Bug 1812192 - Address bar should mark navigations that were schemeless r=mak,Gijs,tabbrowser-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D179794
2023-10-10 08:42:59 +00:00
dylan d5a355d241 Bug 1156659 - Added set offline per tab to BrowsingContext. r=valentin,nika,necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D187704
2023-10-04 19:42:57 +00:00
Vinny Diehl b30a7e19e7 Bug 1847572 - Expand home directory paths for arbitrary users r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D185999
2023-10-04 16:48:47 +00:00
Tom Marble 1ca03b1818 Bug 1855295 convert .ini manifests to .toml: batch 8 dom/[a-l]**/mochitest.ini r=jmaher,jgilbert,extension-reviewers,credential-management-reviewers,robwu,sgalich
Differential Revision: https://phabricator.services.mozilla.com/D189381
2023-10-02 17:18:28 +00:00
Norisz Fay 338171a737 Backed out 2 changesets (bug 1156659) for causing dt failures on browser_net_throttle.js CLOSED TREE
Backed out changeset af64e5a0109a (bug 1156659)
Backed out changeset 7e9b86bce76b (bug 1156659)
2023-10-02 16:11:21 +03:00
dylan 3b39108bc7 Bug 1156659 - Added set offline per tab to BrowsingContext. r=valentin,nika,necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D187704
2023-10-02 04:13:43 +00:00
Jan Varga c458754592 Bug 1855134 - Move existing MOZ_TRY macros to a dedicated header file; r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D189226
2023-09-28 20:46:07 +00:00
serge-sans-paille e99d15cd0c Bug 1854478 - Improve constness of array of preferences r=KrisWright
Differential Revision: https://phabricator.services.mozilla.com/D188884
2023-09-28 15:04:00 +00:00
owlishDeveloper 41a85066d7 Bug 1850444 - Make the test for bug 1699721 work with isolateHighValue strategy on Fission r=nika
Differential Revision: https://phabricator.services.mozilla.com/D189177
2023-09-26 17:14:33 +00:00
Sandor Molnar e22024e42c Backed out 2 changesets (bug 1156659) for causing multiple dt failures on browser_jsterm_evaluation_context_selector_targets_update/browser_jsterm_file_load_save_keyboard_shortcut/browser_jsterm_focus_reload/etc CLOSED TREE
Backed out changeset 72676017aaf3 (bug 1156659)
Backed out changeset c5e205051938 (bug 1156659)
2023-09-26 19:54:00 +03:00
dylan da3e3497c1 Bug 1156659 - Added set offline per tab to BrowsingContext. r=valentin,nika,necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D187704
2023-09-26 15:33:34 +00:00
Mark Banner adc07ece4e Bug 1854913 - Turn off ESLint rule mozilla/use-chromeutils-generateqi for plain mochitests as it should not apply there. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D189099
2023-09-26 13:38:20 +00:00
Tom Marble a99a113414 Bug 1853244 - convert .ini manifests to .toml: batch 6 {caps,devtools,dom}/**/browser.ini r=jmaher,media-playback-reviewers,devtools-reviewers,profiler-reviewers,alwu,nchevobbe,canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D188856
2023-09-22 20:42:14 +00:00
Benjamin VanderSloot b7d464acd5 Bug 1848783, part 5 - Move UsingStorageAccess onto the WindowContext to fix the storage access check for resource reuqests within subdocuments without active storage access but with permission r=timhuang,nika
Differential Revision: https://phabricator.services.mozilla.com/D187138
2023-09-21 01:48:49 +00:00
Nika Layzell 23df3cab6b Bug 1790666 - Propagate session storage across COOP switches without SHIP, r=smaug,asuth
With non-SHIP Desktop we would propagate the session storage across
process switches using session restore, so the internal propagation was
diabled. However, android's session restore has no handling for session
storage, meaning that all session storage is discarded.

This changes the logic to always use the internal propagation, even when
SHIP is disabled.

Differential Revision: https://phabricator.services.mozilla.com/D188647
2023-09-20 20:01:32 +00:00
Iulian Moraru 385fa91360 Backed out 9 changesets (bug 1848783, bug 1837168, bug 1835920) for causing multiple failures. CLOSED TREE
Backed out changeset ab1717421318 (bug 1848783)
Backed out changeset de5e1715c877 (bug 1848783)
Backed out changeset 1f64106e6667 (bug 1848783)
Backed out changeset e082ba20bbb2 (bug 1848783)
Backed out changeset cb56c5d713bf (bug 1848783)
Backed out changeset 735161c251e4 (bug 1848783)
Backed out changeset 3d1468ac6e84 (bug 1848783)
Backed out changeset 9ff5b92032cb (bug 1837168)
Backed out changeset 15cfb0c4f048 (bug 1835920)
2023-09-20 22:29:41 +03:00
Benjamin VanderSloot aa4774d79e Bug 1848783, part 5 - Move UsingStorageAccess onto the WindowContext to fix the storage access check for resource reuqests within subdocuments without active storage access but with permission r=timhuang,nika
Differential Revision: https://phabricator.services.mozilla.com/D187138
2023-09-20 16:14:40 +00:00
Andreas Farre 1d72861f9f Bug 1799326 - Don't restore replaced browsing contexts from BFCache. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D188688
2023-09-20 11:50:49 +00:00
Cosmin Sabou 39c14444b7 Backed out 9 changesets (bug 1837168, bug 1835920, bug 1848783) for causing storage-access-api wpt failures. CLOSED TREE
Backed out changeset 3fd66f8f5d65 (bug 1848783)
Backed out changeset a96afb6d05d6 (bug 1848783)
Backed out changeset 117132b000ac (bug 1848783)
Backed out changeset 3a14281b7d72 (bug 1848783)
Backed out changeset 7dc5f794364d (bug 1848783)
Backed out changeset 84ca25a557a6 (bug 1848783)
Backed out changeset 8bb89cf9587e (bug 1848783)
Backed out changeset 15a005bef445 (bug 1837168)
Backed out changeset a97bc1fd6637 (bug 1835920)
2023-09-20 04:41:18 +03:00
Benjamin VanderSloot 4297663528 Bug 1848783, part 5 - Move UsingStorageAccess onto the WindowContext to fix the storage access check for resource reuqests within subdocuments without active storage access but with permission r=timhuang,nika
Differential Revision: https://phabricator.services.mozilla.com/D187138
2023-09-19 21:03:08 +00:00
Narcis Beleuzu 2990006272 Backed out 9 changesets (bug 1835920, bug 1848783, bug 1837168) for assertion failure on PermissionManager.cpp . CLOSED TREE
Backed out changeset 589241e4e1f6 (bug 1848783)
Backed out changeset 7446d643420d (bug 1848783)
Backed out changeset 1b5a505a9bc6 (bug 1848783)
Backed out changeset bfd4df9014d7 (bug 1848783)
Backed out changeset 01f053bbdb97 (bug 1848783)
Backed out changeset e1b829bfb8d1 (bug 1848783)
Backed out changeset f17d58a27f3c (bug 1848783)
Backed out changeset d21bdbf5baf1 (bug 1837168)
Backed out changeset a2d17b5958b8 (bug 1835920)
2023-09-19 16:15:26 +03:00
Benjamin VanderSloot 1551d09f92 Bug 1848783, part 5 - Move UsingStorageAccess onto the WindowContext to fix the storage access check for resource reuqests within subdocuments without active storage access but with permission r=timhuang,nika
Differential Revision: https://phabricator.services.mozilla.com/D187138
2023-09-19 11:11:19 +00:00
edgul 29f608721d Bug 1723456 - Fixing test breakage. r=valentin,necko-reviewers,extension-reviewers,credential-management-reviewers,robwu,dimi,pbz,Gijs,places-reviewers,adw
Differential Revision: https://phabricator.services.mozilla.com/D181274
2023-09-15 20:38:48 +00:00
Marco Bonardo 70fdad6676 Bug 1852963 - Rename BrowserTestUtils.loadURIString() to .startLoadingURIString(). r=dao
This should make a bit clearer that it is only starting the load, not waiting
for its completion.

Differential Revision: https://phabricator.services.mozilla.com/D188213
2023-09-15 09:16:34 +00:00
Sandor Molnar 950a3c620d Backed out 3 changesets (bug 1852963) for causing remote failures on remote/shared/messagehandler/test/browser/browser_session_data.js CLOSED TREE
Backed out changeset 98de7bc404c3 (bug 1852963)
Backed out changeset edf1527c9a99 (bug 1852963)
Backed out changeset 34357750f69c (bug 1852963)
2023-09-14 20:29:06 +03:00
Marco Bonardo 61f8ecc425 Bug 1852963 - Rename BrowserTestUtils.loadURIString() to .startLoadingURIString(). r=dao
This should make a bit clearer that it is only starting the load, not waiting
for its completion.

Differential Revision: https://phabricator.services.mozilla.com/D188213
2023-09-14 16:33:13 +00:00
Mathew Hodson 66ffe4b27e Bug 582361 - Align scrolling to a fragment with HTML spec. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D187362
2023-09-14 09:29:27 +00:00
Tom Marble 9e40a719f2 Bug 1850545 - convert .ini manifests to .toml: batch 3 chrome.ini (bis) r=jmaher,geckoview-reviewers,extension-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,places-reviewers,profiler-reviewers,m_kato,mak,mtigley
Differential Revision: https://phabricator.services.mozilla.com/D187597
2023-09-13 18:28:32 +00:00
Cosmin Sabou e3ddb212bd Backed out changeset ce9c917d3e22 (bug 582361) for causing wpt failures on scroll-frag-percent-encoded.html. CLOSED TREE 2023-09-13 20:52:47 +03:00
Mathew Hodson 9b4650bb45 Bug 582361 - Align scrolling to a fragment with HTML spec. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D187362
2023-09-13 16:04:59 +00:00
Malte Juergens 83723019a1 Bug 1847918 - Limit `nsDocShellLoadState::IsExemptFromHTTPSOnlyMode` to HTTPS-First r=freddyb
`nsDocShellLoadState::IsExemptFromHTTPSOnlyMode` is currently only used by HTTPS-First. It is used for fixing upgrade-downgrade loops and when loading history entries, as when we already know if HTTPS-First succeeded there or not, we have no need for trying to upgrade again and can disable HTTPS-First. With the changes introduced by Bug 1839612, `nsDocShellLoadState::IsExemptFromHTTPSOnlyMode` also applies to HTTPS-Only, which is a problem because disabling HTTPS-Only for history entries will result in them potentially being loaded insecurely without the user setting an exception. As a solution this patch just applies `nsILoadInfo::HTTPS_ONLY_EXEMPT_NEXT_LOAD`, the flag being set when `nsDocShellLoadState::IsExemptFromHTTPSOnlyMode` is set, when HTTPS-First is enabled, and renames both flags to reflect that behavior.

Differential Revision: https://phabricator.services.mozilla.com/D185829
2023-09-11 12:14:30 +00:00
Daisuke Akatsuka 8e9e77f019 Bug 1850902: Remove browser.fixup.alternate.enabled pref and its code path r=jteow,mak
Differential Revision: https://phabricator.services.mozilla.com/D187237
2023-09-10 22:33:27 +00:00
Andrew McCreight 0598531d40 Bug 1851922 - Crash faster in RemoteObjectProxyBase::GetOrCreateProxyObject(). r=peterv,dom-core
Differential Revision: https://phabricator.services.mozilla.com/D187628
2023-09-08 15:51:13 +00:00
Stanca Serban 04ab13cb66 Backed out changeset 65e974428cdb (bug 1847572) for causing gtest crashes. CLOSED TREE 2023-09-07 22:42:14 +03:00
Vinny Diehl ac308994f4 Bug 1847572 - Expand home directory paths for arbitrary users r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D185999
2023-09-07 18:35:59 +00:00
owlishDeveloper 190718bd97 Bug 1850440 - Adjust the test to make assertion on remote frame only for isolateEverything Fission site isolation strategy r=nika
Differential Revision: https://phabricator.services.mozilla.com/D187158
2023-09-06 21:42:01 +00:00
owlishDeveloper 37db2bd2db Bug 1850429 - Adjust the test to make assertion on remote frame only for isolateEverything Fission site isolation strategy r=nika
Depends on D187073

Differential Revision: https://phabricator.services.mozilla.com/D187154
2023-09-06 20:34:45 +00:00
Gregory Pappas 51c277ed92 Bug 1848896 - Remove ui.use_activity_cursor pref r=farre
Differential Revision: https://phabricator.services.mozilla.com/D187350
2023-09-05 21:32:32 +00:00
Cosmin Sabou 76354af98f Bug 1781601 - Disable test_opener.html on all platforms because of frequent failures. r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D187493
2023-09-05 19:07:13 +00:00
Sean Feng 6721383752 Bug 1830820 - Introduce some delays to user input handling r=smaug
In some edge cases, we may start handling user input events that
are not supposed to be handled by the current document.

This patch introduces some delay to handle user input events.

Differential Revision: https://phabricator.services.mozilla.com/D180976
2023-09-05 18:28:52 +00:00
Emilio Cobos Álvarez 4e4cb31a7f Bug 1847584 - Account for IsUnderHiddenEmbedderElement() for BrowserChild visibility. r=smaug
Test by Gijs. Note that I removed the .isActive assertion, because this doesn't
affect activeness.

We could make that change too, but that's a bigger change, and I think we want
to do this regardless.

The CAN_RUN_SCRIPT annotations are obsolete (they come from bug 1582042
which directly fired docshell activity events, but that's not true
anymore, bug 1635914 changed the setup a bit later).

Differential Revision: https://phabricator.services.mozilla.com/D185643
2023-09-05 16:13:00 +00:00
Iulian Moraru 1007c47c48 Backed out 2 changesets (bug 1830820) for causing marionette failures on test_actions_wheel.py. CLOSED TREE
Backed out changeset e930161a5935 (bug 1830820)
Backed out changeset 4df110e417d4 (bug 1830820)
2023-08-31 20:55:06 +03:00
Sean Feng cd954eaa9f Bug 1830820 - Introduce some delays to user input handling r=smaug
In some edge cases, we may start handling user input events that
are not supposed to be handled by the current document.

This patch introduces some delay to handle user input events.

Differential Revision: https://phabricator.services.mozilla.com/D180976
2023-08-31 15:56:47 +00:00
Markus Stange 3d20b7df6c Bug 1843484 - Use EventTarget* instead of nsISupports* for the event target parameter of the nsContentUtils::Dispatch methods. r=smaug
This saves a few queryInterface calls on the hot path.

Differential Revision: https://phabricator.services.mozilla.com/D186976
2023-08-28 23:38:42 +00:00
owlishDeveloper 66a39a7760 Bug 1849389 - Enable test that has no Android Fission specific failures (known intermittent) r=nika
Depends on D186556

Differential Revision: https://phabricator.services.mozilla.com/D186560
2023-08-18 19:51:28 +00:00
owlishDeveloper 8dd3ca1f6f Bug 1849389 - Enable tests that were blocked on metabugs r=nika
Depends on D186555

Differential Revision: https://phabricator.services.mozilla.com/D186556
2023-08-18 19:43:51 +00:00
Cristian Tuns 2117c1d899 Backed out changeset a741e0bcdca4 (bug 1847584) for causing bc failures in browser_reload_tab.js CLOSED TREE 2023-08-18 14:24:03 -04:00
Emilio Cobos Álvarez 87f67e0819 Bug 1847584 - Account for IsUnderHiddenEmbedderElement() for BrowserChild visibility. r=smaug
Test by Gijs. Note that I removed the .isActive assertion, because this doesn't
affect activeness.

We could make that change too, but that's a bigger change, and I think we want
to do this regardless.

The CAN_RUN_SCRIPT annotations are obsolete (they come from bug 1582042
which directly fired docshell activity events, but that's not true
anymore, bug 1635914 changed the setup a bit later).

Differential Revision: https://phabricator.services.mozilla.com/D185643
2023-08-18 16:17:31 +00:00
owlishDeveloper 5637e974b1 Bug 1673763 - Do not switch processes when loading error pages on Android r=geckoview-reviewers,nika,jonalmeida
Differential Revision: https://phabricator.services.mozilla.com/D186065
2023-08-15 18:43:38 +00:00
Narcis Beleuzu 0c70f2a736 Backed out 2 changesets (bug 1830820) for reftest failure on inline-block-slice-5.html . CLOSED TREE
Backed out changeset 941c44881781 (bug 1830820)
Backed out changeset da493ba4c9a6 (bug 1830820)
2023-08-15 18:55:44 +03:00
Sean Feng 65383b4b4e Bug 1830820 - Introduce some delays to user input handling r=smaug
In some edge cases, we may start handling user input events that
are not supposed to be handled by the current document.

This patch introduces some delay to handle user input events.

Differential Revision: https://phabricator.services.mozilla.com/D180976
2023-08-15 13:55:57 +00:00
Sean Feng 4379a8876c Bug 1848409 - Tweak the UpdateDefaultPreventedOnContent call to only special case the HTMLEditorEventListener case r=masayuki,dom-core
Calling `UpdateDefaultPreventedOnContent` separately from
`PreventDefault()` is error-prone. This patch should make it
safer.

Differential Revision: https://phabricator.services.mozilla.com/D186052
2023-08-15 13:46:42 +00:00
Benjamin VanderSloot 8acc7b239c Bug 1835907, part 5 - Refactor the window's mStorageAccessPermissionGranted variable and its Getters to a more accurate name: mUsingStorageAccess - r=anti-tracking-reviewers,pbz
This probably should have been done earlier, but became obvious with uses of Document::HasStorageAccessPermissionGrated in this stack.

Differential Revision: https://phabricator.services.mozilla.com/D184825
2023-08-15 13:04:05 +00:00
Benjamin VanderSloot 58d36f75d6 Bug 1835907, part 1 - Add has storage access bit and triggering window id to the LoadInfo - r=smaug,necko-reviewers,kershaw,pbz
In the Storage Access API's latest draft, a few items were added to the user-agent state. Relevant here,
the source snapshot params gained two fields that are initialized from the sourceDocument during
snapshotting source params while navigating: "has storage access" and "environment id".

https://privacycg.github.io/storage-access/#ua-state

These are used to identify self-initiated navigations that come from documents that have obtained storage access.
Combined with a same-origin check, this determines if the destination document of the navigation should start
with storage access.

This is stricter than the current behavior, where if the permission is available, all documents start with storage access.
Instead, now a document will only have storage access if it requests it explicitly or if a same-origin document that has
storage access navigates itself to that document. This is seen as a security win.

Security discussion of this change was here: https://github.com/privacycg/storage-access/issues/113
Artur at Google wrote up a great summary here: https://docs.google.com/document/d/1AsrETl-7XvnZNbG81Zy9BcZfKbqACQYBSrjM3VsIpjY/edit#

Differential Revision: https://phabricator.services.mozilla.com/D184821
2023-08-15 13:04:04 +00:00
Cosmin Sabou 4f5ef3986b Backed out 6 changesets (bug 1835907) for causing multiple failures. CLOSED TREE
Backed out changeset 91ef29afec50 (bug 1835907)
Backed out changeset 989479621780 (bug 1835907)
Backed out changeset 86e3f98ceb31 (bug 1835907)
Backed out changeset 4790e44c234c (bug 1835907)
Backed out changeset bb9f48eec5bf (bug 1835907)
Backed out changeset 74f90708260a (bug 1835907)
2023-08-14 22:18:10 +03:00
Benjamin VanderSloot d2a4578703 Bug 1835907, part 5 - Refactor the window's mStorageAccessPermissionGranted variable and its Getters to a more accurate name: mUsingStorageAccess - r=anti-tracking-reviewers,pbz
This probably should have been done earlier, but became obvious with uses of Document::HasStorageAccessPermissionGrated in this stack.

Differential Revision: https://phabricator.services.mozilla.com/D184825
2023-08-14 18:02:47 +00:00
Benjamin VanderSloot 06a4432ed1 Bug 1835907, part 1 - Add has storage access bit and triggering window id to the LoadInfo - r=smaug,necko-reviewers,kershaw,pbz
In the Storage Access API's latest draft, a few items were added to the user-agent state. Relevant here,
the source snapshot params gained two fields that are initialized from the sourceDocument during
snapshotting source params while navigating: "has storage access" and "environment id".

https://privacycg.github.io/storage-access/#ua-state

These are used to identify self-initiated navigations that come from documents that have obtained storage access.
Combined with a same-origin check, this determines if the destination document of the navigation should start
with storage access.

This is stricter than the current behavior, where if the permission is available, all documents start with storage access.
Instead, now a document will only have storage access if it requests it explicitly or if a same-origin document that has
storage access navigates itself to that document. This is seen as a security win.

Security discussion of this change was here: https://github.com/privacycg/storage-access/issues/113
Artur at Google wrote up a great summary here: https://docs.google.com/document/d/1AsrETl-7XvnZNbG81Zy9BcZfKbqACQYBSrjM3VsIpjY/edit#

Differential Revision: https://phabricator.services.mozilla.com/D184821
2023-08-14 18:02:46 +00:00
Vinny Diehl 11bd76e996 Bug 93141 - Expand `~` to home directory when fixing up file URIs r=mak
Differential Revision: https://phabricator.services.mozilla.com/D185562
2023-08-14 07:45:56 +00:00
Emilio Cobos Álvarez e385adffde Bug 1847584 - Misc BrowserChild clean-ups. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D185642
2023-08-09 13:08:59 +00:00
Natalia Csoregi 428aa75e35 Backed out 3 changesets (bug 1847584) for causing vsync failures. CLOSED TREE
Backed out changeset bdfc3c7388cf (bug 1847584)
Backed out changeset 54b34c76db47 (bug 1847584)
Backed out changeset 03bf43b4ae07 (bug 1847584)
2023-08-09 15:47:03 +03:00
Emilio Cobos Álvarez 3f17f5a609 Bug 1847584 - Account for IsUnderHiddenEmbedderElement() for BrowserChild visibility. r=smaug
Test by Gijs. Note that I removed the .isActive assertion, because this doesn't
affect activeness.

We could make that change too, but that's a bigger change, and I think we want
to do this regardless.

The CAN_RUN_SCRIPT annotations are obsolete (they come from bug 1582042
which directly fired docshell activity events, but that's not true
anymore, bug 1635914 changed the setup a bit later).

Differential Revision: https://phabricator.services.mozilla.com/D185643
2023-08-09 10:57:42 +00:00
Emilio Cobos Álvarez 0648f36a09 Bug 1847584 - Misc BrowserChild clean-ups. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D185642
2023-08-09 09:32:27 +00:00
Emilio Cobos Álvarez 47427950b9 Bug 1846500 - Inherit color scheme override from opener. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D185166
2023-08-08 11:32:03 +00:00
Olli Pettay ae55d8bc22 Bug 1843239, optimize Location.hash, r=peterv,dom-core
Differential Revision: https://phabricator.services.mozilla.com/D183788
2023-08-07 12:31:25 +00:00
Peter Van der Beken 3f4ffadbe1 Bug 1846277 - Untangle nsGlobalWindow*.h includes. r=dom-core,media-playback-reviewers,sessionstore-reviewers,padenot,farre
Differential Revision: https://phabricator.services.mozilla.com/D184978
2023-08-02 20:41:49 +00:00
Peter Van der Beken 9fba1d5220 Bug 1846277 - Remove nsGlobalWindow.h. r=dom-core,necko-reviewers,jesup,farre
Differential Revision: https://phabricator.services.mozilla.com/D184973
2023-08-02 20:41:48 +00:00
Olli Pettay c8d088d181 Bug 1845924, no need for DIAGNOSTIC_ASSERT, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D185040
2023-08-01 13:37:57 +00:00
Peter Van der Beken dfce7f40b3 Bug 1843968 - Hold some strong references. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D184803
2023-08-01 12:09:36 +00:00
Emilio Cobos Álvarez db4ed173eb Bug 1846141 - Don't propagate zoom on replacement for site-specific zoom. r=nika
As otherwise it can race with the front-end setting the right zoom.

This is a bit sketchy, I'm open to other potential solutions?

But we don't have access to per-site zoom prefs in Gecko, so...

Depends on D184922

Differential Revision: https://phabricator.services.mozilla.com/D184923
2023-08-01 00:14:37 +00:00
Stanca Serban 5c30ffc25e Backed out changeset ce4f02a4ad1e (bug 1843239) for causing multiple failures. CLOSED TREE 2023-07-31 19:06:51 +03:00
Olli Pettay 3931b88d43 Bug 1843239, [Cached] Location.hash, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D183788
2023-07-31 11:15:17 +00:00
Gregory Pappas 3eac12bbd7 Bug 1845311 - Use ChromeUtils.defineLazyGetter in more places r=arai,webdriver-reviewers,geckoview-reviewers,extension-reviewers,application-update-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,anti-tracking-reviewers,sessionstore-reviewers,pbz,joschmidt,robwu,issammani,bytesized,owlish,dao
Differential Revision: https://phabricator.services.mozilla.com/D184481
2023-07-26 16:28:11 +00:00
Tim Huang 7812491622 Bug 1842030 - Part 1: Adding CanonicalBrowsingContext::IsPrivateBrowsingActive(). r=nika
The CanonicalBrowsingContext::IsPrivateBrowsingActive() function allows
us to know if private browsing is active. We need it to prevent setting
cookies if there is no active private browsing session.

Differential Revision: https://phabricator.services.mozilla.com/D184010
2023-07-26 10:14:37 +00:00
Tooru Fujisawa 58214f4c37 Bug 1843795 - Part 1: Rewrite netwerk/base/NetUtil.sys.mjs consumers in html/xhtml to use ChromeUtils.importESModule. r=necko-reviewers,credential-management-reviewers,devtools-reviewers,sgalich,kershaw
Depends on D183690

Differential Revision: https://phabricator.services.mozilla.com/D183691
2023-07-19 12:06:16 +00:00
Tooru Fujisawa 60215ad826 Bug 1843790 - Part 1: Rewrite toolkit/modules/AppConstants.sys.mjs consumers in html/xhtml to use ChromeUtils.importESModule. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D183660
2023-07-18 23:06:31 +00:00
Tooru Fujisawa d8c21fafdb Bug 1843789 - Part 3: Rewrite testing/mochitest/BrowserTestUtils/BrowserTestUtils.sys.mjs consumers in html/xhtml to use ChromeUtils.importESModule. r=ahal,fxview-reviewers,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D183659
2023-07-18 23:06:30 +00:00
Paul Zuehlcke 56ff601ad9 Bug 1839916 - Update BrowsingContextWebProgress to hold BounceTrackingState objects. r=bvandersloot,nika
Differential Revision: https://phabricator.services.mozilla.com/D182342
2023-07-18 08:26:22 +00:00
Cristina Horotan ebef1cfabb Backed out 5 changesets (bug 1839916) for causing build bustage at BounceTrackingState.cpp CLOSED TREE
Backed out changeset 97b7c9d34869 (bug 1839916)
Backed out changeset c4068176e8e1 (bug 1839916)
Backed out changeset 815021dbe6fe (bug 1839916)
Backed out changeset aeab1abeef2f (bug 1839916)
Backed out changeset 1c459fb2b051 (bug 1839916)
2023-07-17 21:58:40 +03:00
Paul Zuehlcke d26a3d493b Bug 1839916 - Update BrowsingContextWebProgress to hold BounceTrackingState objects. r=bvandersloot,nika
Differential Revision: https://phabricator.services.mozilla.com/D182342
2023-07-17 17:54:50 +00:00
Cristian Tuns 3d5d7bda0c Backed out 5 changesets (bug 1839916) for causing build bustages in BounceTrackingRecord.cpp CLOSED TREE
Backed out changeset 062039e3c9ca (bug 1839916)
Backed out changeset 3713d0250e5e (bug 1839916)
Backed out changeset 39cbf84f51b7 (bug 1839916)
Backed out changeset 44f32df69c08 (bug 1839916)
Backed out changeset fce071d0f22b (bug 1839916)
2023-07-17 10:29:33 -04:00
Paul Zuehlcke 73968fc9fa Bug 1839916 - Update BrowsingContextWebProgress to hold BounceTrackingState objects. r=bvandersloot,nika
Differential Revision: https://phabricator.services.mozilla.com/D182342
2023-07-17 12:58:35 +00:00
Kagami Sascha Rosylight 2d650853a8 Bug 1842007 - Part 7: Remove MozPromise::FromDomPromise r=xpcom-reviewers,necko-reviewers,nika,jesup
Nobody uses it and currently not super useful as the possible return value is limited to primitives. It could be extended to support DOM objects, but I don't know there's actual use cases for that as in many cases the promise is resolved with non-DOM values.

Differential Revision: https://phabricator.services.mozilla.com/D183026
2023-07-13 12:43:41 +00:00
Kagami Sascha Rosylight 422007e346 Bug 1842007 - Part 4: Replace DOMPromiseListener use with Promise method in CanonicalBrowsingContext r=dom-core,edgar
This should not change any behavior, but just uses newer method to subscribe a DOM promise.

Differential Revision: https://phabricator.services.mozilla.com/D183023
2023-07-13 12:43:41 +00:00
Mark Banner 0b2d2afdea Bug 1837176 - Convert imports of httpd.js to consume the ES module directly. r=necko-reviewers,webcompat-reviewers,extension-reviewers,settings-reviewers,application-update-reviewers,credential-management-reviewers,devtools-reviewers,cookie-reviewers,twisniewski,robwu,issammani,bytesized,pbz,valentin
Differential Revision: https://phabricator.services.mozilla.com/D181159
2023-07-12 13:38:34 +00:00
Zac McKenney b5828473c9 Bug 1838260 - Add about:crashextensions to kill extension processes r=geckoview-reviewers,ipc-reviewers,ckerschb,amejiamarmol,nika
Differential Revision: https://phabricator.services.mozilla.com/D182016
2023-07-11 15:34:01 +00:00
Malte Juergens a7c59a9b78 Bug 1838183: Include HTTPS-First in current HTTPS-Only exemption options on site identity pane r=freddyb,fluent-reviewers
Depends on D182322

Differential Revision: https://phabricator.services.mozilla.com/D181356
2023-07-11 11:07:24 +00:00
Malte Juergens ad465aab06 Bug 1839612: HTTPS-First: Clear HTTPS_ONLY_EXEMPT on every load r=necko-reviewers,freddyb,kershaw
- Also clear HTTPS_ONLY_EXEMPT for HTTPS-First in TestSitePermissionAndPotentiallyAddExemption
- Remove PotentiallyClearExemptFlag as we are now clearing the exemption every time
- Introduce new flag HTTPS_ONLY_EXEMPT_NEXT_LOAD which will set the exemption again after it being (potentially) cleared
- Set that flag when nsDocShellLoadState::IsExemptFromHTTPSOnlyMode is set, since that happens before the exemption is cleared

Differential Revision: https://phabricator.services.mozilla.com/D182322
2023-07-11 11:07:24 +00:00
Cristina Horotan 5c71a93e59 Backed out changeset 117114b8eb32 (bug 1793560) for causing wpt failures at iframe-all-local-schemes-inherit-self.sub.html CLOSED TREE 2023-07-10 17:54:12 +03:00
CanadaHonk 2f7c1c1024 Bug 1793560 - Remove navigate-to CSP directive r=tschuster
It has never shipped after being implemented years ago,
and was removed from spec in September 2022:
https://github.com/w3c/webappsec-csp/pull/564

Now skipping navigate-to WPT tests. Filed issue for their future removal:
https://github.com/w3c/webappsec-csp/issues/608

Also removed our own tests to ensure it is unimplemented.

Differential Revision: https://phabricator.services.mozilla.com/D181630
2023-07-10 12:18:18 +00:00
Sean Feng caee73fc75 Bug 1817723 - Allow HTMLEditor can receive events when the focus is switched between elements in the same shadow tree. r=masayuki
The EditorEventListener for HTMLEditor is registered on document,
which is problematic because it can't receive events when the focus is
switched between elements in the same shadow tree due to shadow dom
encapsulation.

We fix this by moving the EditorEventListener to nsWindowRoot so the
events can always be received.

Differential Revision: https://phabricator.services.mozilla.com/D178215
2023-07-07 14:55:28 +00:00
Greg Tatum f1a8a9ae14 Bug 1814254 - Load about:translations in privilegedabout process; r=nordzilla
This hides any of the privileged methods for about:translations from
compromised content processes.

Differential Revision: https://phabricator.services.mozilla.com/D182503
2023-07-05 12:06:59 +00:00
Nika Layzell 189dec60f0 Bug 1838686 - Check for content-initiated file URI loads in content, r=smaug,necko-reviewers,jesup
The goal of this change is to detect content-initiated file URI loads
earlier such that crash stacks give us a better idea of what is
responsible for starting these loads.

These assertions explicitly only fire for system-principal triggered
loads of file URIs, as those should never be happening from within a web
content process.

Differential Revision: https://phabricator.services.mozilla.com/D182223
2023-07-04 20:18:36 +00:00
Gregory Pappas dd79948377 Bug 1773094 - Remove security.alternate_certificate_error_page pref r=keeler,geckoview-reviewers,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D182262
2023-07-04 11:26:24 +00:00
Kershaw Chang 705e17a537 Bug 1838829 - Skip failed tests, r=necko-reviewers,extension-reviewers,credential-management-reviewers,devtools-reviewers,dimi,valentin,robwu
Differential Revision: https://phabricator.services.mozilla.com/D181251
2023-06-28 13:21:00 +00:00
Norisz Fay 07a91b8c6a Backed out 2 changesets (bug 1838829) for causing perma mochitest failure with dom/websocket/tests being skipped CLOSED TREE
Backed out changeset 19a5d4f1850a (bug 1838829)
Backed out changeset 97cd8a256954 (bug 1838829)
2023-06-27 02:52:52 +03:00
Norisz Fay ace9aded9a Backed out changeset f9f8e7cfe057 (bug 1817723) as requested by dev for causing regressions CLOSED TREE 2023-06-27 01:22:11 +03:00
James Teh 65baf08086 Bug 1831035 part 7: Remove (now empty) platform specific RemoteAccessible classes and rename RemoteAccessibleBase to RemoteAccessible. r=eeejay
This involved moving ApplyCache from the .h into the .cpp because now that the class is no longer a template, forward declaration of DocAccessibleParent is not sufficient.

Differential Revision: https://phabricator.services.mozilla.com/D181852
2023-06-26 21:20:13 +00:00
Kershaw Chang 75c68b6864 Bug 1838829 - Skip failed tests, r=necko-reviewers,extension-reviewers,credential-management-reviewers,devtools-reviewers,dimi,valentin,robwu
Differential Revision: https://phabricator.services.mozilla.com/D181251
2023-06-26 14:22:14 +00:00
Peter Van der Beken b52a207bb0 Bug 1522052 - remove nsIDOMChromeWindow. r=dom-core,webdriver-reviewers,devtools-reviewers,whimboo,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D34310
2023-06-23 14:21:05 +00:00
Emilio Cobos Álvarez 4cc6758558 Bug 1839922 - Remove usage of {Has,Get}Attr(kNameSpaceID_None, ..). r=edgar
We have more readable and faster versions (that just omit the namespace
arg).

Mostly done via sed, with a couple helpers to use the faster lookups
where possible.

Differential Revision: https://phabricator.services.mozilla.com/D181795
2023-06-23 10:01:32 +00:00
Peter Van der Beken b727b26491 Bug 1825745 - Make form submits do a replace load if they happen before document load has ended. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D174224
2023-06-22 18:32:20 +00:00
Noemi Erli ea5b4807dc Backed out 2 changesets (bug 1825745) for causing failures in form-requestsubmit.html CLOSED TREE
Backed out changeset eb77df0ccca6 (bug 1825745)
Backed out changeset 2ce4ceb5a39d (bug 1825745)
2023-06-22 16:35:27 +03:00
Peter Van der Beken 1e615c9d15 Bug 1825745 - Make form submits do a replace load if they happen before document load has ended. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D174224
2023-06-22 08:07:06 +00:00
Norisz Fay e86f1fa0e9 Backed out 5 changesets (bug 1838829) for causing mochitest failures CLOSED TREE
Backed out changeset 693d34c8447d (bug 1838829)
Backed out changeset 903d9ff4afaa (bug 1838829)
Backed out changeset 5e51feff7467 (bug 1838829)
Backed out changeset e125be49d2a6 (bug 1838829)
Backed out changeset 1a8cf3c83dc4 (bug 1838829)
2023-06-22 03:37:07 +03:00
Ray Kraesig 1444f17712 Bug 1836349 - [3/3] Restrict IPCResult not to accept nonconstant strings r=nika,ipc-reviewers
Text passed to `IPCResult::Fail` (and, therefore, text passed to
`IPC_FAIL`) may end up in telemetry.

To avoid accidentally capturing unwanted information, restrict all such
text to compile-time constant strings, unless approved by data-review.

Differential Revision: https://phabricator.services.mozilla.com/D180152
2023-06-21 20:54:48 +00:00
Kershaw Chang 2cdb6b3a96 Bug 1838829 - Skip failed tests, r=necko-reviewers,extension-reviewers,credential-management-reviewers,devtools-reviewers,dimi,valentin,robwu
Differential Revision: https://phabricator.services.mozilla.com/D181251
2023-06-21 19:43:33 +00:00
Sean Feng ddb6212fd9 Bug 1817723 - Allow HTMLEditor can receive events when the focus is switched between elements in the same shadow tree. r=masayuki
The EditorEventListener for HTMLEditor is registered on document,
which is problematic because it can't receive events when the focus is
switched between elements in the same shadow tree due to shadow dom
encapsulation.

We fix this by moving the EditorEventListener to nsWindowRoot so the
events can always be received.

Differential Revision: https://phabricator.services.mozilla.com/D178215
2023-06-19 17:58:15 +00:00
Olli Pettay 74d6d19225 Bug 1837993, ensure correct loadId is used when removing entry, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D181343
2023-06-19 09:26:44 +00:00
Florian Quèze ebb3633d22 Bug 1836191 - make about:performance point to about:processes, r=mconley.
Differential Revision: https://phabricator.services.mozilla.com/D179694
2023-06-08 21:53:17 +00:00
Emilio Cobos Álvarez c29297c499 Bug 1827329 - Keep full/text zoom across bfcached navigations. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D175243
2023-06-08 15:16:22 +00:00
Stanca Serban 48e6d2d2ae Backed out changeset 17472385b962 (bug 1825745) for form-submit related wpt failures. CLOSED TREE 2023-06-07 16:31:57 +03:00
Mark Banner 6725448902 Bug 1834176 - Convert consumers of NetUtil.jsm to import the ES module directly. r=arai,webdriver-reviewers,perftest-reviewers,valentin,extension-reviewers,devtools-reviewers,sync-reviewers,cookie-reviewers,robwu,afinder,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D178589
2023-06-07 08:42:36 +00:00
Peter Van der Beken ea022c4cd4 Bug 1825745 - Make form submits do a replace load if they happen before document load has ended. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D174224
2023-06-07 08:22:03 +00:00
Cosmin Sabou cf2c3350b5 Backed out changeset 324defc46b66 (bug 1761981) for mochitest plain failures on test_top_navigation_no_script.html. CLOSED TREE 2023-06-05 22:57:05 +03:00
Nika Layzell 89bea3ab53 Bug 1761981 - tests, r=smaug
Depends on D142596

Differential Revision: https://phabricator.services.mozilla.com/D142597
2023-06-05 19:03:58 +00:00
Mark Banner 5d59c7aecd Bug 1824613 - Convert consumers of toolkit/mozapps/extensions/ to import ES modules directly. r=extension-reviewers,settings-reviewers,application-update-reviewers,credential-management-reviewers,devtools-reviewers,sync-reviewers,sgalich,bytesized,robwu,skhamis
Depends on D179819

Differential Revision: https://phabricator.services.mozilla.com/D179820
2023-06-02 20:00:35 +00:00
Neil Deakin 18f5e1220a Bug 1776339, add a browsing context field that syncs the isUnderHiddenEmbedderElement state, r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D168440
2023-05-31 19:46:49 +00:00
mcheang 50ce5c5c74 Bug 1648188 - Fix SearchService init failures so that the address bar can be used to search history and bookmarks. r=Standard8,mak
This patch refactors the SearchService private initialized variables and how
the SearchService stores its initialization status. These changes capture whether
the SearchService has succeeded, failed or hasn't finished initialization yet.

There are also changes made to UrlbarSearchUtils on handling when SearchService
has failed to initialize or when it hasn't finished initializing yet and we wait.
In the case where the SearchService has failed on initialization, We allow
the code to continue so that it can reach UrlbarProviderPlaces. Once we
are able to reach UrlbarProviderPlaces, we can make database calls for the user's
history and bookmarks. This allows the user to interact with the addressbar and
search their history and bookmarks even if SearchService has failed to initialize.

Differential Revision: https://phabricator.services.mozilla.com/D176936
2023-05-30 18:34:51 +00:00
Kris Maglione fbc33fd683 Bug 1648545: Part 2 - Load SpecialPowers in XPCShellContentUtils. r=ahal,application-update-reviewers,nalexander,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D119449
2023-05-27 03:46:44 +00:00
Sandor Molnar c06a989790 Backed out changeset 6a96bb1f430f (bug 1817723) for causing reftest crashes. CLOSED TREE 2023-05-24 17:31:13 +03:00
Sean Feng a7d8029535 Bug 1817723 - Allow HTMLEditor can receive events when the focus is switched between elements in the same shadow tree. r=masayuki
The EditorEventListener for HTMLEditor is registered on document,
which is problematic because it can't receive events when the focus is
switched between elements in the same shadow tree due to shadow dom
encapsulation.

We fix this by moving the EditorEventListener to nsWindowRoot so the
events can always be received.

Differential Revision: https://phabricator.services.mozilla.com/D178215
2023-05-24 13:31:57 +00:00
Sandor Molnar c7daca2e34 Backed out changeset e8b6a5dbf398 (bug 1817723) for causing mochitest failures in editor/libeditor/EditorEventListener.cpp CLOSED TREE 2023-05-24 10:03:39 +03:00
Kris Maglione f9100d622c Bug 1769763: Part 2 - Add debug names to StructuredCloneHolder objects for about:memory. r=mccr8,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D162251
2023-05-23 23:13:36 +00:00
Sean Feng df6c9aefca Bug 1817723 - Allow HTMLEditor can receive events when the focus is switched between elements in the same shadow tree. r=masayuki
The EditorEventListener for HTMLEditor is registered on document,
which is problematic because it can't receive events when the focus is
switched between elements in the same shadow tree due to shadow dom
encapsulation.

We fix this by moving the EditorEventListener to nsWindowRoot so the
events can always be received.

Differential Revision: https://phabricator.services.mozilla.com/D178215
2023-05-23 22:57:16 +00:00
Natalia Csoregi e87ecf485e Backed out 3 changesets (bug 1834222, bug 1834176) for causing RemoteProcessMonitor failures. CLOSED TREE
Backed out changeset 346d3a1568dd (bug 1834222)
Backed out changeset ea1d8b634bfc (bug 1834176)
Backed out changeset 74d1880272d3 (bug 1834176)
2023-05-24 04:29:45 +03:00
Mark Banner fbc15bdb60 Bug 1834176 - Convert NetUtil.jsm to be an ES system module. r=arai,webdriver-reviewers,perftest-reviewers,valentin,extension-reviewers,devtools-reviewers,sync-reviewers,cookie-reviewers,robwu,afinder,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D178589
2023-05-23 19:09:29 +00:00
Gijs Kruitbosch fde9a22b58 Bug 291640, r=mak
Differential Revision: https://phabricator.services.mozilla.com/D178310
2023-05-23 11:29:23 +00:00
Noemi Erli aa2f146d78 Backed out 2 changesets (bug 1834176) for causing xpc failures in test_unload.js CLOSED TREE
Backed out changeset 57876d77a652 (bug 1834176)
Backed out changeset ae2f0837b528 (bug 1834176)
2023-05-23 12:14:37 +03:00
Mark Banner e3e9a991b8 Bug 1834176 - Convert NetUtil.jsm to be an ES system module. r=arai,webdriver-reviewers,perftest-reviewers,valentin,extension-reviewers,devtools-reviewers,sync-reviewers,cookie-reviewers,robwu,afinder,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D178589
2023-05-23 08:13:08 +00:00
Mark Banner 130a655906 Bug 1826062 - Automatic fixes for upgrading Prettier to 2.8.8. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,calu
Differential Revision: https://phabricator.services.mozilla.com/D177027
2023-05-20 12:26:53 +00:00
Mark Banner 8219a5c503 Bug 1826062 - Automatic fixes for Prettier 2.0.5 upgrade. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,owlish
Differential Revision: https://phabricator.services.mozilla.com/D177025
2023-05-20 12:26:49 +00:00
Daniel Holbert 06aa3fba93 Bug 1834133 part 1: Remove about:config prefs layout.css.notify-of-unvisited and layout.css.always-repaint-on-unvisited. r=emilio
Update all of their usages to assume that they're true (which they have been, by-default, for several years).

Differential Revision: https://phabricator.services.mozilla.com/D178569
2023-05-20 06:07:48 +00:00
Sean Feng bd1e35c1d2 Bug 1816287 - Always exit fullscreen when triggering on external protocol r=edgar
It's a security risk such that the maximized external program can obscure
the fullscreen notification and the malicious site can use this trick
to load a spoofed page in the background without user notices it.

This patch minimized the risk by always exit the fullscreen mode when
an external protocol is triggered.

Differential Revision: https://phabricator.services.mozilla.com/D177771
2023-05-17 18:00:18 +00:00
Norisz Fay 34b6c94a76 Backed out changeset 6fa00ccfe7e0 (bug 1816287) for causing bustages on LocationBase.cpp CLOSED TREE 2023-05-17 20:11:39 +03:00
Sean Feng 9740581cf7 Bug 1816287 - Always exit fullscreen when triggering on external protocol r=edgar
It's a security risk such that the maximized external program can obscure
the fullscreen notification and the malicious site can use this trick
to load a spoofed page in the background without user notices it.

This patch minimized the risk by always exit the fullscreen mode when
an external protocol is triggered.

Differential Revision: https://phabricator.services.mozilla.com/D177771
2023-05-17 16:34:57 +00:00
Kris Maglione 62ba2ff3ab Bug 1828690: Change a parent assert to an IPC_FAIL. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D176392
2023-05-15 22:10:38 +00:00
Olli Pettay 1a2c59c3bb Bug 1827655, for consistency, make nsISHEntry implementations support weak references similarly to nsISHistory implementation, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D177532
2023-05-15 14:48:46 +00:00
Masayuki Nakano e16a783838 Bug 1829570 - part 2: Add an overload of `AsyncEventDispatcher::RunDOMEventWhenSafe` r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D176488
2023-05-15 01:07:29 +00:00
Mark Banner c2dd8e3266 Bug 1829618 - Enable Prettier on json files (automatic fixes). r=perftest-reviewers,webcompat-reviewers,extension-reviewers,andi,desktop-theme-reviewers,pip-reviewers,devtools-reviewers,sync-reviewers,mossop,denschub,dao,sparky,robwu,geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D176336
2023-05-09 16:14:51 +00:00
Valentin Gosu d245bc86c2 Bug 1828643 - Make sure LOAD_TRR_DISABLED_MODE gets passed through defaultLoadFlags when browsing context is replaced r=necko-reviewers,kershaw
When the user clicks continue this time in the DoH fallback warning page
we want to set the defaultLoadFlags to LOAD_TRR_DISABLED_MODE so all of
the pages & subresources in the tab will not use TRR from that point
forward.

Setting it directly on docshell.defaultLoadFlags seems to not have the correct
behaviour when the page is using the Cross-Origin-Opener-Policy header,
as that causes the DocumentChannel to do a cross process redirect and
recreate the browsing context.

Setting the defaultLoadFlags on the browsingContext directly and
adding the field to `CanonicalBrowsingContext::ReplacedBy` seems to lead to
the expected behaviour.

Differential Revision: https://phabricator.services.mozilla.com/D176959
2023-05-04 10:06:44 +00:00
Butkovits Atila 992799b447 Backed out changeset bcdd097c9a4f (bug 1828690) for causing mass failures. CLOSED TREE 2023-05-03 04:02:36 +03:00
Kris Maglione 76be20b113 Bug 1828690: Change a parent assert to an IPC_FAIL. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D176392
2023-05-02 23:58:57 +00:00
owlishDeveloper 0560aeeeac Bug 1822711 - Enable mochitest-plain on Android Fission builds. Disable some of the tests that are currently failing r=jmaher,taskgraph-reviewers,geckoview-reviewers,calu
Differential Revision: https://phabricator.services.mozilla.com/D175077
2023-05-01 21:26:40 +00:00
Dana Keeler f0596227b1 Bug 1811645 - avoid an American English colloquialism meaning "nonsense" r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D175802
2023-04-20 22:24:00 +00:00
Peter Van der Beken 635046af85 Bug 1804140 - Enable SHIP by default on desktop, whether or not Fission is disabled. r=smaug,jgraham,webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D172278
2023-04-18 07:07:05 +00:00
Cosmin Sabou 60f701f2e5 Backed out 2 changesets (bug 1804140) for causing webdriver failures. CLOSED TREE
Backed out changeset 974558fd2790 (bug 1804140)
Backed out changeset dbe9d2f66fcc (bug 1804140)
2023-04-14 13:28:44 +03:00
Peter Van der Beken e0b98d564b Bug 1804140 - Enable SHIP by default on desktop, whether or not Fission is disabled. r=smaug,jgraham,webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D172278
2023-04-14 08:09:50 +00:00
Daisuke Akatsuka 73dc3820cc Bug 1824040: Make the loading URL opened in _blank target to be the target of Session Restore r=mak,smaug,farre,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D173790
2023-04-14 01:59:44 +00:00
Alexandre Lissy 32a6eaf06f Bug 1819311 - Collect errors on process launch r=nika,geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D171226
2023-04-13 08:35:24 +00:00
Olli Pettay 9fe9a6ccfd Bug 1827600 - Remove Timeline API usage from EventListenerManager, r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D175238
2023-04-12 14:28:11 +00:00
Tom Schuster c86335b0e3 Bug 1804684 - Fragment navigation may change document URI scheme from https to http. r=ckerschb,nika,smaug
Differential Revision: https://phabricator.services.mozilla.com/D165282
2023-04-12 12:35:18 +00:00
Sandor Molnar ad732108b0 Backed out changeset 7a21d83704b9 (bug 1822711) for causing mochitest failures in dom/security/test/csp/test_bug1242019.html CLOSED TREE 2023-04-12 05:44:25 +03:00
owlishDeveloper 6c9c240cd3 Bug 1822711 - Enable mochitest-plain on Android Fission builds. Disable some of the tests that are currently failing r=jmaher,taskgraph-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D175077
2023-04-12 00:30:34 +00:00
Emily McDonough afd9c3eee4 Bug 1576298 - Remove DeviceSizeIsPageSize from nsDocShell and nsPresContext. r=emilio
This comes from bug 890195, and it was superseded by bug 1575097.

This isn't used for anything anymore, and we can remove the otherwise unused
MediaFeatureChangeReason flag as well.

Differential Revision: https://phabricator.services.mozilla.com/D174492
2023-04-03 17:11:24 +00:00
serge-sans-paille 13e51277df Bug 1825324 - Make widget/* buildable outside of a unified build environment r=andi,geckoview-reviewers,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D173969
2023-04-01 08:31:12 +00:00
Cristian Tuns 8e06a7a853 Backed out 12 changesets (bug 1825325, bug 1825336, bug 1825333, bug 1825332, bug 1825324, bug 1824557, bug 1825328, bug 1825335, bug 1825330, bug 1825329, bug 1825327, bug 1825331) for causing build bustages in nsClipboard.cpp CLOSED TREE
Backed out changeset 9de3ed24d3a0 (bug 1825336)
Backed out changeset aef787728f19 (bug 1825335)
Backed out changeset a04c341244c1 (bug 1825333)
Backed out changeset e3ad15f762ba (bug 1825332)
Backed out changeset eed23da92a27 (bug 1825331)
Backed out changeset 8213bb54376e (bug 1825330)
Backed out changeset 747ec5ac4994 (bug 1825329)
Backed out changeset e91ff431f92d (bug 1825328)
Backed out changeset 59c18d13768b (bug 1825327)
Backed out changeset 538096d99e49 (bug 1825325)
Backed out changeset c76eb9d9b095 (bug 1825324)
Backed out changeset 8b81410eb686 (bug 1824557)
2023-03-31 12:58:53 -04:00
serge-sans-paille 0702cdc836 Bug 1825324 - Make widget/* buildable outside of a unified build environment r=andi,geckoview-reviewers,m_kato
Depends on D173637

Differential Revision: https://phabricator.services.mozilla.com/D173969
2023-03-31 13:29:44 +00:00
Norisz Fay be62edbf40 Backed out changeset ef7d2e82eb5a (bug 1825745) for causing assertion failure on nsDocShell.cpp CLOSED TREE 2023-03-31 15:08:34 +03:00
Peter Van der Beken 029d2f8315 Bug 1825745 - Make form submits do a replace load if they happen before document load has ended. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D174224
2023-03-31 10:53:02 +00:00
Rob Wu aee0e76790 Bug 1821303 - Add hasPostData bool to nsISHEntry r=smaug
To avoid unnecessary cloning of nsIInputStream, add a hasPostData
boolean attribute to tell whether a nsISHEntry has populated postData.

Differential Revision: https://phabricator.services.mozilla.com/D173237
2023-03-30 14:05:09 +00:00
Iulian Moraru f0ccf10c64 Backed out 3 changesets (bug 1821303) for causing xpcshell failures on test_ext_dnr_allowAllRequests.js. CLOSED TREE
Backed out changeset f474edf390d1 (bug 1821303)
Backed out changeset 90c73fb01441 (bug 1821303)
Backed out changeset 84cd09689228 (bug 1821303)
2023-03-29 20:53:32 +03:00
Rob Wu e505210f70 Bug 1821303 - Add hasPostData bool to nsISHEntry r=smaug
To avoid unnecessary cloning of nsIInputStream, add a hasPostData
boolean attribute to tell whether a nsISHEntry has populated postData.

Differential Revision: https://phabricator.services.mozilla.com/D173237
2023-03-29 15:50:45 +00:00
Andreas Farre 7d3b320651 Bug 1815663 - Pack synced fields. r=peterv
We use empty base optimization to reorder storage of synced fields to
loose as little as possible to padding.

Differential Revision: https://phabricator.services.mozilla.com/D173296
2023-03-29 13:00:15 +00:00
Cosmin Sabou c5ca3d1f46 Bug 1784831 - Disable test_bug321671.xhtml on mac !debug for frequent failures. r=#intermittent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D173745
2023-03-27 17:46:55 +00:00
Andi-Bogdan Postelnicu 4efa1bd0ba Bug 1276351 - Move away from mozilla::tuple to std::tuple. r=necko-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D173256
2023-03-27 07:20:25 +00:00
Sandor Molnar 9db345d4c1 Backed out 2 changesets (bug 1276351) for causing build bustage in image/ClippedImage.cp CLOSED TREE
Backed out changeset e84598eb82c1 (bug 1276351)
Backed out changeset e940b0554484 (bug 1276351)
2023-03-25 14:16:43 +02:00
Andi-Bogdan Postelnicu 447f1e3358 Bug 1276351 - Move away from mozilla::tuple to std::tuple. r=necko-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D173256
2023-03-25 06:58:52 +00:00
Iulian Moraru 6d40eee997 Backed out 2 changesets (bug 1276351) for causing multiple failures.
Backed out changeset eeaf4f1e06af (bug 1276351)
Backed out changeset d44cb5704342 (bug 1276351)
2023-03-25 00:08:24 +02:00
Mark Banner 4a729cf9d7 Bug 1824173 - Automatically fix some ESLint issues raised by the valid-jsdoc configuration. r=mossop,webcompat-reviewers,denschub
Differential Revision: https://phabricator.services.mozilla.com/D173450
2023-03-24 19:35:24 +00:00
Andi-Bogdan Postelnicu a1b827b503 Bug 1276351 - Move away from mozilla::tuple to std::tuple. r=necko-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D173256
2023-03-24 18:55:39 +00:00