Malte Juergens
686328e490
Bug 761152 - Copy referrer info to new session history entry on history.pushState r=freddyb
...
Per spec [1], we should copy over the complete document state [2], which
includes the referrer info. Bug 1773192 has already added this for the
"replace" case when the session history is in parent (almost always the case),
but it is still missing for the "push" case, and the "replace" case when the
session history is not in parent.
[1] https://html.spec.whatwg.org/multipage/browsing-the-web.html#url-and-history-update-steps
[2] https://html.spec.whatwg.org/multipage/browsing-the-web.html#document-state
Differential Revision: https://phabricator.services.mozilla.com/D200684
2024-02-22 14:29:06 +00:00
Emilio Cobos Álvarez
a56f40eee5
Bug 1881488 - Use a static pref for tooltip delay. r=masayuki,dom-core
...
It's 500 everywhere.
Differential Revision: https://phabricator.services.mozilla.com/D202419
2024-02-22 12:59:41 +00:00
Sandor Molnar
b1d213acb7
Backed out changeset 8e21fdfc60f0 (bug 1868001) for causing mochitest failures at dom/tests/mochitest/general/test_resource_timing_cross_origin.html CLOSED TREE
2024-02-20 20:36:30 +02:00
Nika Layzell
ec657d1c80
Bug 1868001 - Ignore Content-Disposition if DONT_RETARGET is set, r=smaug
...
This patch modifies the behaviour of loads when the DONT_RETARGET
nsIURILoader flag is set, making them ignore the Content-Disposition
header. This means that loads which cannot trigger downloads will
attempt to display handleable content which would otherwise be
downloaded.
This keeps overall behaviour of object/embed elements more similar to
their behaviour pre-Fission, while allowing them to load attachment PDFs
and Images as-if they were being displayed by a plugin.
This patch does not change the existing behaviour around
unknown/unhandleable resource types in object/embed elements.
In Gecko, object/embed elements are prevented from triggering downloads
or external protocol handlers during their initial load. Other browser
engines can trigger a download for an unknown resource type (or
sometimes an attachment resource).
The new pref dom.navigation.object_embed.allow_retargeting can be
enabled to instead trigger a download when loading these resources
within an object/embed element.
Differential Revision: https://phabricator.services.mozilla.com/D201645
2024-02-20 17:33:57 +00:00
Gijs Kruitbosch
ff17e7fc68
Bug 1780071 - Manual fixes/disabling of no-comparison-or-assignment-inside-ok for exceptional cases, r=Standard8,devtools-reviewers,anti-tracking-reviewers,places-reviewers,dom-storage-reviewers,pbz,asuth,nchevobbe
...
Differential Revision: https://phabricator.services.mozilla.com/D198979
2024-02-19 23:30:40 +00:00
Iulian Moraru
3c429990cb
Backed out 2 changesets (bug 1875040) for causing performance regression - Bug 1877481
. CLOSED TREE
...
Backed out changeset 8af7503ecb57 (bug 1875040)
Backed out changeset 0e77ff8e2bfc (bug 1875040)
2024-02-15 17:40:41 +02:00
Chris H-C
73e530d7dd
Bug 1877842 - Migrate performance GVST probes r=perry.mcmanis,denispal
...
Most are brought over straightforwardly, their Telemetry callsites reworded
to use Glean, with mirroring to the Telemetry probes taken care of by the Glean
Interface For Firefox Telemetry (see the telemetry_mirror property).
There were two special cases: PERF_DOM_CONTENT_LOADED_FROM_RESPONSESTART_MS,
and PERF_DOM_CONTENT_LOADED_MS. Both were removed as they were unused.
Differential Revision: https://phabricator.services.mozilla.com/D200867
2024-02-09 21:11:05 +00:00
Emilio Cobos Álvarez
2971047c81
Bug 1875100 - Propagate top level activeness automatically to top descendants. r=nika,tabbrowser-reviewers,mconley,extension-reviewers,robwu,geckoview-reviewers,owlish,kaya
...
For that, opt in tabbrowser and the shopping sidebar to manual
activeness management.
Differential Revision: https://phabricator.services.mozilla.com/D198942
2024-02-07 10:58:15 +00:00
Cristian Tuns
2d66624de2
Backed out changeset ecd780688279 (bug 1875100) for causing mochitest failures in test_suspend_media_by_inactive_docshell.html
2024-02-07 01:25:21 -05:00
Emilio Cobos Álvarez
e68568b511
Bug 1875100 - Propagate top level activeness automatically to top descendants. r=nika,tabbrowser-reviewers,mconley,extension-reviewers,robwu,geckoview-reviewers,owlish
...
For that, opt in tabbrowser and the shopping sidebar to manual
activeness management.
Differential Revision: https://phabricator.services.mozilla.com/D198942
2024-02-06 21:47:37 +00:00
Gregory Pappas
6ce8dcf31c
Bug 1878530 - Run test_subframe_stop_after_parent_error.js on Android r=nika
...
It doesn't fail on try, so we should try to enable this.
Differential Revision: https://phabricator.services.mozilla.com/D200575
2024-02-05 18:42:10 +00:00
zcanceling
cd8a3ca314
Bug 1876311 - Remove TODO comment from fixed bug 1561706 r=emilio DONTBUILD
...
Differential Revision: https://phabricator.services.mozilla.com/D200594
2024-02-04 21:30:42 +00:00
Gregory Pappas
9f654f22ea
Bug 1876942 - Run docshell/test/unit/test_subframe_stop_after_parent_error.js with E10S enabled r=nika
...
The goal of these modifications is to avoid this assertion when the test
is run with E10S enabled
https://searchfox.org/mozilla-central/rev/f5f63e51c6b91038d6d9fb0e635cad516fc403e6/netwerk/ipc/ParentProcessDocumentChannel.cpp#66-70
Differential Revision: https://phabricator.services.mozilla.com/D199805
2024-02-02 20:54:49 +00:00
Malte Juergens
bf96ecb63a
Bug 1750706 - Copy referrer info to new session history entry during fragment navigation r=freddyb
...
Differential Revision: https://phabricator.services.mozilla.com/D199746
2024-02-01 10:28:32 +00:00
Marc Seibert
9cf6a2cfc5
Bug 1841869 - entering "abc @xyz.[TLD]" in address bar opens a prompt regarding loading "xyz.[TLD]" instead of searching for "abc @xyz.[TLD]" on the default search engine.r=adw
...
Differential Revision: https://phabricator.services.mozilla.com/D198196
2024-01-31 19:07:57 +00:00
Tom Schuster
d9047629b5
Bug 1876276 - Remove dead nsIDocShell allowPlugins code. r=emilio,sessionstore-reviewers,dao
...
Differential Revision: https://phabricator.services.mozilla.com/D199491
2024-01-31 13:23:52 +00:00
Iulian Moraru
448769c125
Backed out changeset 4871c819b21e (bug 1876276) for causing multiple bc failures. CLOSED TREE
2024-01-31 14:25:42 +02:00
Tom Schuster
ab34543442
Bug 1876276 - Remove dead nsIDocShell allowPlugins code. r=emilio,sessionstore-reviewers,dao
...
Differential Revision: https://phabricator.services.mozilla.com/D199491
2024-01-31 09:36:36 +00:00
Emilio Cobos Álvarez
f26fefccfa
Bug 1877242 - Use a FunctionRef in CanonicalBrowsingContext::CallOnAllTopDescendants. r=nika
...
This should be marginally more efficient, in theory, so do it drive-by.
Differential Revision: https://phabricator.services.mozilla.com/D199902
2024-01-30 23:24:44 +00:00
Emilio Cobos Álvarez
cce5bdd802
Bug 1877242 - Avoid some unnecessary refcounting churn when accessing parent-cross-chrome-boundary. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D199901
2024-01-30 23:24:43 +00:00
Tom Marble
3c78905f47
Bug 1868866 - adds ManifestParser TOML linter r=jmaher,linter-reviewers,ahal,webdriver-reviewers,settings-reviewers,search-reviewers,devtools-reviewers,fxview-reviewers,cookie-reviewers,sessionstore-reviewers,places-reviewers,dom-storage-reviewers,translations-reviewers,valentin,whimboo,Standard8,sclements,jesup
...
Differential Revision: https://phabricator.services.mozilla.com/D199054
2024-01-29 17:30:48 +00:00
Sandor Molnar
51bb77759a
Backed out changeset 2be67d91cf16 (bug 1868866) for causing Mn failures at toolkit/xre/test/marionette/test_exitcode.py CLOSED TREE
2024-01-27 00:15:22 +02:00
Tom Marble
2434015dc5
Bug 1868866 - adds ManifestParser TOML linter r=jmaher,linter-reviewers,ahal,webdriver-reviewers,settings-reviewers,search-reviewers,devtools-reviewers,fxview-reviewers,cookie-reviewers,sessionstore-reviewers,places-reviewers,dom-storage-reviewers,translations-reviewers,valentin,whimboo,Standard8,sclements,jesup
...
Differential Revision: https://phabricator.services.mozilla.com/D199054
2024-01-26 20:06:56 +00:00
Joel Maher
3ad5072cf1
Bug 1873732 - remove outdated manifest conditions and use consistent conditions. r=aryx,necko-reviewers,jgilbert,settings-reviewers,credential-management-reviewers,devtools-reviewers,sessionstore-reviewers,dom-storage-reviewers,sgalich,kershaw,nchevobbe,janv,dao
...
Differential Revision: https://phabricator.services.mozilla.com/D198082
2024-01-25 00:27:05 +00:00
Daisuke Akatsuka
c051aa567d
Bug 1849866: Rename moz-anno:favicon protocol to cached-favicon r=necko-reviewers,places-reviewers,valentin,mak
...
Differential Revision: https://phabricator.services.mozilla.com/D198130
2024-01-24 22:05:42 +00:00
Stanca Serban
221d7acc5b
Backed out changeset 54462970f797 (bug 1873732) for causing web platform tests failures.
2024-01-24 21:08:19 +02:00
Joel Maher
807575f8e1
Bug 1873732 - remove outdated manifest conditions and use consistent conditions. r=aryx,necko-reviewers,jgilbert,settings-reviewers,credential-management-reviewers,devtools-reviewers,sessionstore-reviewers,dom-storage-reviewers,sgalich,kershaw,nchevobbe,janv,dao
...
Differential Revision: https://phabricator.services.mozilla.com/D198082
2024-01-24 16:35:54 +00:00
Andreas Farre
b51bf27f13
Bug 1875040 - Use GetExtantDocument instead of GetDocument. r=smaug
...
Avoids accidentally creating a document when checking if a document's
presentation can be saved.
Differential Revision: https://phabricator.services.mozilla.com/D198781
2024-01-23 08:04:51 +00:00
Tom Schuster
40de2c94b3
Bug 1875466 - Remove nsContentUtils::ShouldHideObjectOrEmbedImageDocument. r=emilio
...
Depends on D199114
Differential Revision: https://phabricator.services.mozilla.com/D199115
2024-01-22 14:26:10 +00:00
Gregory Pappas
b3e0fd295c
Bug 1724089 - Remove browser.tabs.remote.autostart pref r=webdriver-reviewers,perftest-reviewers,geckoview-reviewers,jgraham,extension-reviewers,mossop,sparky,robwu,owlish,necko-reviewers,jmaher,valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D192136
2024-01-22 09:52:53 +00:00
Iulian Moraru
b643962356
Backed out changeset da092d881d44 (bug 1724089) for causing valgrind build bustages.
2024-01-18 22:12:44 +02:00
Gregory Pappas
c2ed911bfb
Bug 1724089 - Remove browser.tabs.remote.autostart pref r=webdriver-reviewers,perftest-reviewers,geckoview-reviewers,jgraham,extension-reviewers,mossop,sparky,robwu,owlish,necko-reviewers,jmaher,valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D192136
2024-01-18 16:25:47 +00:00
Noemi Erli
623ef8a876
Backed out changeset be072303feaf (bug 1724089) for causing xpc failures in test_headless.js
2024-01-18 16:44:10 +02:00
Gregory Pappas
68e8f55749
Bug 1724089 - Remove browser.tabs.remote.autostart pref r=webdriver-reviewers,perftest-reviewers,geckoview-reviewers,jgraham,extension-reviewers,mossop,sparky,robwu,owlish,necko-reviewers,jmaher,valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D192136
2024-01-18 11:51:13 +00:00
Emilio Cobos Álvarez
7bf069df3a
Bug 1840762 - Don't throttle postMessage for pdf.js. r=smaug
...
This should be safe to uplift.
Differential Revision: https://phabricator.services.mozilla.com/D198829
2024-01-17 21:49:34 +00:00
Emilio Cobos Álvarez
a94d5c59e6
Bug 1874701 - Convert aboutNetError to an html page. r=Gijs,valentin
...
While I'm looking at this / bug 1866884, this it probably makes sense,
wdyt?
Differential Revision: https://phabricator.services.mozilla.com/D198571
2024-01-15 15:03:19 +00:00
Emilio Cobos Álvarez
ec149cc5de
Bug 1866884 - Make browser_alternate_fixup_middle_click_link.js wait for error page properly. r=Gijs
...
Depends on D198571
Differential Revision: https://phabricator.services.mozilla.com/D198574
2024-01-15 15:01:51 +00:00
Tooru Fujisawa
da72302e92
Bug 1873330 - Part 4: Add UserActivation::Modifiers getters. r=smaug
...
In order to use the modifiers in nsGlobalWindowOuter::OpenInternal, add accessor
methods to BrowsingContext, Document, and WindowContext.
Those accessors behave in the same way as ConsumeTransientUserGestureActivation
and RevisePopupAbuseLevel, except for checking the PopupBlocker state.
Differential Revision: https://phabricator.services.mozilla.com/D197862
2024-01-11 17:24:02 +00:00
Tooru Fujisawa
1eb9eb9c1a
Bug 1873330 - Part 3: Store modifiers for user activation with input event. r=smaug
...
Depends on D197860
Differential Revision: https://phabricator.services.mozilla.com/D197861
2024-01-11 17:24:02 +00:00
Tooru Fujisawa
aeb2eac8f0
Bug 1873330 - Part 2: Add UserActivation::Modifiers and UserActivation::StateAndModifiers. r=smaug
...
Associate modifier keys to user activation, in order to use the modifiers
in `window.open` initiated by the user activation.
Depends on D197859
Differential Revision: https://phabricator.services.mozilla.com/D197860
2024-01-11 17:24:01 +00:00
Cristian Tuns
31c5852d57
Backed out changeset 1313a6a0c641 (bug 1669453) for causing wpt failures in history_pushstate_url_rewriting.html CLOSED TREE
2024-01-10 21:16:11 -05:00
David
096f34a11c
Bug 1669453 - Get user passwords after validating same-origin. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D198084
2024-01-10 23:31:03 +00:00
Emilio Cobos Álvarez
267ec889a9
Bug 1873967 - Remove DocGroup::TryToLoadIframesInBackground. r=sefeng
...
This is somewhat complex, untested, never shipped, and predates
fission.
Remove it to simplify the code.
Depends on D198183
Differential Revision: https://phabricator.services.mozilla.com/D198184
2024-01-10 22:33:17 +00:00
Emilio Cobos Álvarez
b132d83211
Bug 1873967 - Simplify dom_separate_event_queue_for_post_message_enabled checks. r=sefeng
...
Differential Revision: https://phabricator.services.mozilla.com/D198183
2024-01-10 22:33:17 +00:00
Nika Layzell
b18b3314a5
Bug 1873294 - Clean up logic for firing cross-process load events, r=smaug
...
Previously it may have been possible in some edge cases for us to send
`MaybeFireEmbedderLoadEvents` for a non-toplevel frame during docshell
tree teardown.
Differential Revision: https://phabricator.services.mozilla.com/D197825
2024-01-08 19:30:59 +00:00
Tom Schuster
346cecd51c
Bug 1872839 - Remove aMimeTypeGuess parameter from nsIContentPolicy. r=freddyb
...
Differential Revision: https://phabricator.services.mozilla.com/D197794
2024-01-08 15:47:42 +00:00
Oliver Medhurst
465206f92c
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 upstream for their future removal:
https://github.com/w3c/webappsec-csp/issues/608
Consensus seems to agree to remove, will do in follow up bug once landed.
Also removed our own tests.
Added a hack in StartDocumentLoad as just removing the navigate-to check call
breaks some inhertiance, see comment for more info.
Differential Revision: https://phabricator.services.mozilla.com/D181630
2024-01-03 16:43:12 +00:00
Tom Schuster
061fc361e2
Bug 1867628 - Fire a load event when frame-ancestors blocks an iframe (similar to X-Frame-Options). r=nika,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D196036
2023-12-19 10:05:12 +00:00
aiunusov
41283b7581
Bug 1868387 - Part 1: Make a pref, that enables origin security check for SetDocumentURI() method, r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D195554
2023-12-13 15:14:35 +00:00
Jonathan Watt
da74a43f47
Bug 1430691. Add a documenting comment to the nsIDocShell interface. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D31356
2023-12-06 19:18:13 +00:00