Commit Graph
4545 Commits
Author SHA1 Message Date
Adam Vandolder b44ff9da24 Bug 2015811 - Enqueue hashchange before dispatching popstate for same-document navigations. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D283816
2026-03-03 00:48:57 +00:00
Vincent Hilla 3da21b9ff1 Bug 2014692 - Propagate OOM during DocumentViewer creation and handle it in RecvConstructBrowser. r=dom-core,hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D285092
2026-02-27 01:29:58 +00:00
Vincent Hilla 5db3c2f413 Bug 2016614 - Destroy nsFrameLoader if failed to create docshell. r=nika,dom-core,smaug
Differential Revision: https://phabricator.services.mozilla.com/D283887
2026-02-24 18:25:19 +00:00
Emilio Cobos Álvarez 968fc5a645 Bug 2015924 - Centralize lazyload checks, and observe only while in document. r=smaug
Now that stuff is a bit more complex and that we're adding media lazy
loading, factor the observer management down to Element.

Make UnbindContext more parallel to BindContext while at it. This
allows the new calls to work regardless of whether they get called
before or after the base class's Bind/UnbindFromTree, which is nice.

Differential Revision: https://phabricator.services.mozilla.com/D282723
2026-02-11 15:14:46 +00:00
Vincent Hilla 0c8d0fd093 Bug 2013932 - Be more strict about when docshell has a viewer and is initialized. r=dom-core,smaug
Differential Revision: https://phabricator.services.mozilla.com/D282429
2026-02-10 14:22:28 +00:00
Andreas Farre 54c2e67d89 Bug 2013868 - Only write to contiguous entries when Navigation API is enabled. r=dom-core,jjaschke
Differential Revision: https://phabricator.services.mozilla.com/D281963
2026-02-06 09:25:24 +00:00
Vincent Hilla d364d66936 Bug 2013289 - Null check viewer in nsDocShell::ShouldDoInitialAboutBlankSyncLoad. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D281589
2026-02-04 13:42:03 +00:00
Vincent Hilla a204d64509 Bug 2013872 - Propagate result in nsDocShell::CreateInitialDocumentViewer. r=dom-core,smaug
Differential Revision: https://phabricator.services.mozilla.com/D281438
2026-02-02 18:01:07 +00:00
Vincent Hilla 54fe7c7be5 Bug 2009931 - Cleanup after BrowserChild::Init crash. r=nika,hsivonen
This commit removes the unsuccessful deferring of notifications around
BrowserChild::Init and  and narrows when we ignore a failure in
nsDocShell::Initialize.

Differential Revision: https://phabricator.services.mozilla.com/D279293
2026-01-29 14:38:19 +00:00
Vincent Hilla 3e79569b7f Bug 2006265 - Don't inherit ServiceWorker to window.opened about:blank. r=asuth,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D280046
2026-01-26 09:30:56 +00:00
Emilio Cobos Álvarez 077d88e977 Bug 2011213 - Remove FMT_STRING() usage. r=padenot
Should not be needed now that we build with C++20.

Differential Revision: https://phabricator.services.mozilla.com/D279521
2026-01-19 15:12:33 +00:00
Charlotte 5c4ee1c97a Bug 372761 - Change out-of-date socket error message. r=valentin,necko-reviewers,keeler,fluent-reviewers,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D277515
2026-01-19 11:05:54 +00:00
Vincent Hilla 640fc639e7 Bug 2003449 - Part 2: Get expectedPartitionedPrincipal from channel. r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D279162
2026-01-16 16:42:00 +00:00
Vincent Hilla 99b0f101a7 Bug 2003449 - Part 1: Refactor CompleteInitialAboutBlankLoad principalMismatch. r=dom-core,smaug
Differential Revision: https://phabricator.services.mozilla.com/D279161
2026-01-16 16:41:55 +00:00
Emilio Cobos Álvarez bff9d29ee4 Bug 2010264 - Remove NS_PRINT_PREVIEW define. r=jwatt
It always matches NS_PRINTING, so no need for it, really.

Differential Revision: https://phabricator.services.mozilla.com/D278966
2026-01-15 18:24:39 +00:00
Nathan Barrett bc8f1722a3 Bug 2005048 - Provide notification callback for nsDocShell speculative connections r=valentin,necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D278556
2026-01-12 15:18:51 +00:00
Vincent Hilla 6dd0a24b90 Bug 2006642 - Track Document PiP position and size via a new notification. r=edgar,dom-core
Differential Revision: https://phabricator.services.mozilla.com/D276862
2026-01-12 14:26:18 +00:00
Vincent Hilla e256d38d6a Bug 2006642 - Block move/resize/navigate for Document PiP only in content. r=edgar
Per spec, certain functionality should be blocked for Document PiP windows. We
rely on the IsDocumentPiP flag that is set for both the content and chrome
window. But the chrome window should still be able to navigate, and system
callers should be able to move/resize content as well as chrome windows.

Differential Revision: https://phabricator.services.mozilla.com/D278260
2026-01-12 14:26:16 +00:00
Adam Vandolder 3969aaa14e Bug 2006468 - Use previously-determined triggering navigation type when deciding whether to reuse the navigation API key for a replace load. r=dom-core,farre
Differential Revision: https://phabricator.services.mozilla.com/D277946
2026-01-07 15:33:06 +00:00
Vincent Hilla 67b246b157 Bug 2003244 - Don't crash when failing to initialize docshell. r=dom-core,mccr8,smaug
Bug 543435 changed nsDocShell::Initialize from always returning true to
returning whether CreateInitialDocumentViewer succeeded. If this fails,
it is propagated up to ContentChild::RecvConstructBrowser where we crash.
The call to CreateDocumentViewerForActor that existed before bug 543435 in
nsWebBrowser::Create would've failed silently.

This commit restores avoids a crash by restoring the silent failure.

Differential Revision: https://phabricator.services.mozilla.com/D277765
2026-01-06 08:57:08 +00:00
Vincent Hilla fd219ed843 Bug 2007897 - Use normal load path when initial about:blank doesn't match remote type. r=hsivonen,dom-core
Differential Revision: https://phabricator.services.mozilla.com/D277764
2026-01-05 14:34:27 +00:00
Atila Butkovits 7a8a3e1a81 Revert "Bug 2003244 - Don't crash when failing to initialize docshell. r=dom-core,mccr8" for causing failures at nsGlobalWindowOuter.cpp.
This reverts commit 58f9527f38.
2026-01-05 10:21:24 +00:00
Vincent Hilla 58f9527f38 Bug 2003244 - Don't crash when failing to initialize docshell. r=dom-core,mccr8
Bug 543435 changed nsDocShell::Initialize from always returning true to
returning whether CreateInitialDocumentViewer succeeded. If this fails,
it is propagated up to ContentChild::RecvConstructBrowser where we crash.
The call to CreateDocumentViewerForActor that existed before bug 543435 in
nsWebBrowser::Create would've failed silently.

This commit restores avoids a crash by restoring the silent failure.

Differential Revision: https://phabricator.services.mozilla.com/D277765
2026-01-05 09:15:05 +00:00
Simon Farre b4ac69ad68 Bug 1085214 - Implement location.ancestorOrigins r=necko-reviewers,webidl,dom-core,smaug,jesup,zcorpan,devtools-reviewers,nchevobbe
This implements this attribute on Location and also adheres to the
changes to the spec introduced in
https://github.com/whatwg/html/pull/11560

Tentative tests are also added in this patch.

Differential Revision: https://phabricator.services.mozilla.com/D273393
2026-01-02 21:09:34 +00:00
Valentin Gosu 44bd5382c0 Bug 2006028 - Remove predictor code r=necko-reviewers,firefox-style-system-reviewers,emilio,kershaw,extension-reviewers,toolkit-telemetry-reviewers,manuel,robwu
The network predictor used the HTTP cache as a database to learn browsing
patterns and make speculative DNS prefetches, TCP preconnects, and resource
prefetches. While this provided performance benefits for repeat visits to
frequently-accessed sites, it came with significant costs: I/O on every page
load, CPU overhead for prediction algorithms, memory for caching learned
patterns, and substantial IPC complexity with six message types coordinating
predictions between processes.

A large part of the functionality the predictor was meant to improve is now
available to webdevelopers. HTTP 103 Early Hints allow servers to explicitly
specify resources to preload while generating the response.
And Speculation Rules API will enable content authors to declaratively specify
prefetch/prerender behavior based on their knowledge of site structure and user
intent, providing immediate accuracy without a learning period.

The network.predictor.enable-hover-on-ssl preference is retained as it controls
simpler hover-triggered speculative connections that don't require the
predictor's learning system. This removal simplifies the codebase while
steering users toward more accurate, standards-based optimization mechanisms.

The one feature of the predictor which was never used was learning websites
that are opened soon after startup. There was no action taken based on this
info, and we could already predict this info based on the history database.

Differential Revision: https://phabricator.services.mozilla.com/D276437
2025-12-18 22:56:37 +00:00
agoloman accc77502e Revert "Bug 1085214 - Implement location.ancestorOrigins r=necko-reviewers,webidl,dom-core,smaug,jesup,zcorpan" for causing dt failures @browser_dbg-expressions-error.js.
This reverts commit 7f88f48401.
2025-12-18 17:54:07 +00:00
Simon Farre 7f88f48401 Bug 1085214 - Implement location.ancestorOrigins r=necko-reviewers,webidl,dom-core,smaug,jesup,zcorpan
This implements this attribute on Location and also adheres to the
changes to the spec introduced in
https://github.com/whatwg/html/pull/11560

Tentative tests are also added in this patch.

Differential Revision: https://phabricator.services.mozilla.com/D273393
2025-12-17 11:00:19 +00:00
Vincent Hilla 1d7618633a Bug 1858562 - Part 1: Implement Document Picture-in-Picture Spec. r=edgar,smaug,dom-core,webidl,firefox-style-system-reviewers,layout-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D265290
2025-12-16 19:10:04 +00:00
Atila Butkovits 4b85427200 Revert "Bug 2003759 - Add crash annotations for docshell initialization failure reasons. r=hsivonen,gsvelto" for causing bustages at nsWebBrowser.cpp.
This reverts commit 857dc0c7fe.
2025-12-16 14:00:50 +00:00
Vincent Hilla 857dc0c7fe Bug 2003759 - Add crash annotations for docshell initialization failure reasons. r=hsivonen,gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D276521
2025-12-16 11:25:51 +00:00
Atila Butkovits 79e1b89109 Revert "Bug 2006028 - Remove predictor code r=necko-reviewers,firefox-style-system-reviewers,emilio,kershaw" for causing failures at test_basic.js.
This reverts commit 117ed7db99.
2025-12-16 09:52:23 +00:00
Valentin Gosu 117ed7db99 Bug 2006028 - Remove predictor code r=necko-reviewers,firefox-style-system-reviewers,emilio,kershaw
The network predictor used the HTTP cache as a database to learn browsing
patterns and make speculative DNS prefetches, TCP preconnects, and resource
prefetches. While this provided performance benefits for repeat visits to
frequently-accessed sites, it came with significant costs: I/O on every page
load, CPU overhead for prediction algorithms, memory for caching learned
patterns, and substantial IPC complexity with six message types coordinating
predictions between processes.

A large part of the functionality the predictor was meant to improve is now
available to webdevelopers. HTTP 103 Early Hints allow servers to explicitly
specify resources to preload while generating the response.
And Speculation Rules API will enable content authors to declaratively specify
prefetch/prerender behavior based on their knowledge of site structure and user
intent, providing immediate accuracy without a learning period.

The network.predictor.enable-hover-on-ssl preference is retained as it controls
simpler hover-triggered speculative connections that don't require the
predictor's learning system. This removal simplifies the codebase while
steering users toward more accurate, standards-based optimization mechanisms.

The one feature of the predictor which was never used was learning websites
that are opened soon after startup. There was no action taken based on this
info, and we could already predict this info based on the history database.

Differential Revision: https://phabricator.services.mozilla.com/D276437
2025-12-16 08:58:03 +00:00
Vincent Hilla c2035e8aff Bug 1880012 - Crash closer to sync load completion for service worker principal mismatch. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D276230
2025-12-15 08:10:29 +00:00
Vincent Hilla f5e10c041c Bug 2005094 - Don't fail assertion if docshell is broken after initialization. r=hsivonen,dom-core,smaug
Differential Revision: https://phabricator.services.mozilla.com/D275960
2025-12-12 11:42:22 +00:00
Adam Vandolder 20fc2fb403 Bug 1998761 - Copy the Navigation API Key from the old to the new entry for same-origin cross-document replace navigations. r=farre,dom-core
Differential Revision: https://phabricator.services.mozilla.com/D275908
2025-12-11 23:40:21 +00:00
Alexandru Marc f2c14bfe8e Revert "Bug 1998761 - Copy the Navigation API Key from the old to the new entry for same-origin cross-document replace navigations. r=farre,dom-core" for causing wpt failures @ pageswap-replace-with-cross-origin-redirect.sub.html
This reverts commit 39869215be.
2025-12-11 21:42:03 +00:00
Adam Vandolder 39869215be Bug 1998761 - Copy the Navigation API Key from the old to the new entry for same-origin cross-document replace navigations. r=farre,dom-core
Differential Revision: https://phabricator.services.mozilla.com/D275908
2025-12-11 20:07:25 +00:00
Alexandru Marc d8eb790ee4 Revert "Bug 1085214 - Implement location.ancestorOrigins r=necko-reviewers,webidl,dom-core,smaug,jesup,zcorpan" for causing wpt failures @ location-ancestor-origins.sub.html
This reverts commit ec3055a6d5.
2025-12-11 19:57:50 +00:00
Simon Farre ec3055a6d5 Bug 1085214 - Implement location.ancestorOrigins r=necko-reviewers,webidl,dom-core,smaug,jesup,zcorpan
This implements this attribute on Location and also adheres to the
changes to the spec introduced in
https://github.com/whatwg/html/pull/11560

Tentative tests are also added in this patch.

Differential Revision: https://phabricator.services.mozilla.com/D273393
2025-12-11 18:48:32 +00:00
Atila Butkovits cfb40063a4 Revert "Bug 1085214 - Implement location.ancestorOrigins r=necko-reviewers,webidl,dom-core,smaug,jesup,zcorpan" for causing failures at location-ancestor-origins.sub.html.
This reverts commit d93f1bc4f1.
2025-12-11 16:06:57 +00:00
Simon Farre d93f1bc4f1 Bug 1085214 - Implement location.ancestorOrigins r=necko-reviewers,webidl,dom-core,smaug,jesup,zcorpan
This implements this attribute on Location and also adheres to the
changes to the spec introduced in
https://github.com/whatwg/html/pull/11560

Tentative tests are also added in this patch.

Differential Revision: https://phabricator.services.mozilla.com/D273393
2025-12-11 14:54:48 +00:00
Adam Vandolder deccebb8a2 Bug 2005209 - Make Document::CanRewriteURL check aReportErrors when the URI is a local file. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D275789
2025-12-10 18:21:58 +00:00
Vincent Hilla fa9c48352a Bug 2004165 - Use async load path when restoring initial about:blank from session history. r=dom-core,hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D275780
2025-12-10 15:19:35 +00:00
Andrea Marchesini 985c5a4d66 Bug 1986320 - Implement an add-on block URL-Classifier feature - part 5 - Block top-level documents when loaded by add-ons, r=extension-reviewers,dimi,fluent-reviewers,robwu,bolsson,android-reviewers,android-l10n-reviewers,delphine,tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D263425
2025-12-04 01:26:57 +00:00
Botond Ballo 52e752321e Bug 1999440 - Introduce ScrollContainerFrame::ScrollModeForScrollBehavior(). r=hiro,layout-reviewers
This helper function encapsulates checks in various places which
were of a form similar to:

  sf->IsSmoothScroll(behavior) ? ScrollMode::SmoothMsd
                               : ScrollMode::Instant

Differential Revision: https://phabricator.services.mozilla.com/D272346
2025-12-04 01:25:20 +00:00
Atila Butkovits f43210f622 Revert "Bug 1986879 - Implement #update-the-navigation-api-entries-for-reactivation. r=smaug" for causing reftest failures.
This reverts commit 28759ec172.
2025-12-03 21:42:35 +00:00
Cristian Tuns c99c271730 Revert "Bug 1986320: apply code formatting via Lando" for causing lint failures in browser_ext_urlclassifier.js
This reverts commit 8c2c577a03.

Revert "Bug 1986320 - Implement an add-on block URL-Classifier feature - part 6 - Mobile r=geckoview-reviewers,android-reviewers,geckoview-api-reviewers,tcampbell,ohall"

This reverts commit 7b0c7db7c3.

Revert "Bug 1986320 - Implement an add-on block URL-Classifier feature - part 5 - Block top-level documents when loaded by add-ons, r=extension-reviewers,dimi,fluent-reviewers,robwu,bolsson,android-reviewers,android-l10n-reviewers,delphine,tcampbell"

This reverts commit 9a058ba0d5.

Revert "Bug 1986320 - Implement an add-on block URL-Classifier feature - part 4 - Expose the URLClassifier addon feature to non-recommended addons only, r=zombie"

This reverts commit 41e8a464d9.

Revert "Bug 1986320 - Implement an add-on block URL-Classifier feature - part 3 - devtool support, r=devtools-reviewers,dimi,devtools-backward-compat-reviewers,bomsy"

This reverts commit c0f866931b.

Revert "Bug 1986320 - Implement an add-on block URL-Classifier feature - part 2 - telemetry, r=dimi,extension-reviewers,robwu"

This reverts commit 1bdba2f426.

Revert "Bug 1986320 - Implement an add-on block URL-Classifier feature - part 1, r=dimi,geckoview-reviewers,extension-reviewers,tcampbell,robwu"

This reverts commit f1a3613f44.
2025-12-03 19:15:17 +00:00
Andreas Farre 28759ec172 Bug 1986879 - Implement #update-the-navigation-api-entries-for-reactivation. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D263743
2025-12-03 19:08:59 +00:00
Andrea Marchesini 9a058ba0d5 Bug 1986320 - Implement an add-on block URL-Classifier feature - part 5 - Block top-level documents when loaded by add-ons, r=extension-reviewers,dimi,fluent-reviewers,robwu,bolsson,android-reviewers,android-l10n-reviewers,delphine,tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D263425
2025-12-03 18:47:36 +00:00
iulian moraru a5862a7e70 Revert "Bug 1999177 - Support cursor scroll in the composable toolbar r=android-reviewers,moyin" for causing linting failures on browser_ext_urlclassifier.js.
This reverts commit ae35529fab.

Revert "Bug 1986320: apply code formatting via Lando"

This reverts commit 768f3614ff.

Revert "Bug 1986320 - Implement an add-on block URL-Classifier feature - part 5 - Block top-level documents when loaded by add-ons, r=extension-reviewers,dimi,fluent-reviewers,robwu,bolsson,android-reviewers,android-l10n-reviewers,delphine,tcampbell"

This reverts commit 5f2e690d2b.

Revert "Bug 1986320 - Implement an add-on block URL-Classifier feature - part 4 - Expose the URLClassifier addon feature to non-recommended addons only, r=zombie"

This reverts commit 1e7b1753d4.

Revert "Bug 1986320 - Implement an add-on block URL-Classifier feature - part 3 - devtool support, r=devtools-reviewers,dimi,devtools-backward-compat-reviewers,bomsy"

This reverts commit 928a253e9e.

Revert "Bug 1986320 - Implement an add-on block URL-Classifier feature - part 2 - telemetry, r=dimi,extension-reviewers,robwu"

This reverts commit 2a13eb6ec3.

Revert "Bug 1986320 - Implement an add-on block URL-Classifier feature - part 1, r=dimi,geckoview-reviewers,extension-reviewers,tcampbell,robwu"

This reverts commit 1ef88130d9.
2025-12-03 10:26:32 +00:00