This patch does not make some header files stop including the inline
header because fixing them require more changes.
Note that `#include "nsComponentManagerUtils.h"` is fixing a bustage
caused by "use of undeclared identifier 'do_CreateInstance'" error.
Differential Revision: https://phabricator.services.mozilla.com/D304432
Since bug 2037186 we already required the same allocation kind, but that can change
when we make object layout or GC changes so isn't ideal.
This change also simplifies later patches.
Differential Revision: https://phabricator.services.mozilla.com/D300252
When a sandboxed iframe with "allow-top-navigation" attempts to navigate
the top-level, we must verify that the parent is permitted to do so. To
make this check reliable across processes, this patch introduces a new
flag that is propagated cross-process.
Differential Revision: https://phabricator.services.mozilla.com/D286658
When a sandboxed iframe with "allow-top-navigation" attempts to navigate
the top-level, we must verify that the parent is permitted to do so. To
make this check reliable across processes, this patch introduces a new
flag that is propagated cross-process.
Differential Revision: https://phabricator.services.mozilla.com/D286658
This changes the way that the principal for a Blob URL is inferred to instead
be based on the URL within the BlobURL, unless the URL's origin part is
"null".
In order to continue to support system-principal Blobs without needing to
broadcast the principal around, they are given a special origin part of
"system". This changes some tests which were specifically looking for the
"blob:null" prefix.
Differential Revision: https://phabricator.services.mozilla.com/D276055
BrowsingContext::CreateDetached receives isForPrinting=true for print
preview BCs but never sets the IsPrinting synced field. The
SetIsPrinting(true) call in nsGlobalWindowOuter::Print() happens after
OpenInternal() returns, by which time the transient about:blank has
already triggered DocAccessible creation and
SendPDocAccessibleConstructor to the parent process, causing a kNoID
collision in SessionAccessibility::RegisterAccessible on Android.
Fix by setting IsPrinting during CreateDetached when isForPrinting is
true, and adding an early return in CreateDocOrRootAccessible for the
uncommitted initial about:blank in a printing BrowsingContext.
Differential Revision: https://phabricator.services.mozilla.com/D294444
This reverts commit 47367770c3.
Revert "Bug 2005247 - Part 3: Always read BlobURL info over IPC, r=asuth"
This reverts commit df37ac38f8.
Revert "Bug 2005247 - Part 2: Validate BlobURL ContentLength header during channel fetch, r=asuth,necko-reviewers,valentin"
This reverts commit 45e63e6920.
Revert "Bug 2005247 - Part 1: Get the BlobImpl from the BlobURLChannel, r=asuth,media-playback-reviewers,padenot"
This reverts commit 440a33211b.
Revert "Bug 2005002 - Part 5: sec-fetch-storage-access not implemented for workers, r=manuel"
This reverts commit 5654faf8a0.
Revert "Bug 2005002 - Part 4: Fix devtools tests for blob: URL dedicated worker changes, r=devtools-reviewers,ochameau"
This reverts commit 9c9c197990.
Revert "Bug 2005002 - Part 3: Extension content scripts for Blob URLs no longer match with full paths, r=extension-reviewers,robwu"
This reverts commit 55f399175f.
Revert "Bug 2005002 - Part 2: Infer Blob URL principal from URL when possible, r=asuth,extension-reviewers,necko-reviewers,home-newtab-reviewers,robwu,mconley,kershaw,bvandersloot"
This reverts commit d3022ec470.
Revert "Bug 2005002 - Part 1: Support do_QueryObject for nsSimpleURI and subclasses, r=necko-reviewers,valentin,asuth"
This reverts commit 3d1199b4d4.
This changes the way that the principal for a Blob URL is inferred to instead
be based on the URL within the BlobURL, unless the URL's origin part is
"null".
In order to continue to support system-principal Blobs without needing to
broadcast the principal around, they are given a special origin part of
"system". This changes some tests which were specifically looking for the
"blob:null" prefix.
Differential Revision: https://phabricator.services.mozilla.com/D276055
Child actors generally deal with content nodes, and those can be
adopted, in order to preserve behavior, switch to the new
.documentGlobal.
Fix + rename the use-ownerGlobal lint since now it's wrong.
.ownerDocument.defaultView is .documentGlobal, not .ownerGlobal now.
Differential Revision: https://phabricator.services.mozilla.com/D294805
Child actors generally deal with content nodes, and those can be
adopted, in order to preserve behavior, switch to the new
.documentGlobal.
Fix + rename the use-ownerGlobal lint since now it's wrong.
.ownerDocument.defaultView is .documentGlobal, not .ownerGlobal now.
Differential Revision: https://phabricator.services.mozilla.com/D294805
A new `PrefersReducedMotionOverride` flag has been added to the browsing context, which allows overriding the `prefers-reduced-motion` media query for a given browsing context.
Differential Revision: https://phabricator.services.mozilla.com/D293705
A new `PrefersReducedMotionOverride` flag has been added to the browsing context, which allows overriding the `prefers-reduced-motion` media query for a given browsing context.
Differential Revision: https://phabricator.services.mozilla.com/D293705
The previous implementation used a random identifier that didn't survive
process switches during isolation. This caused app link telemetry to be
lost when navigations triggered process isolation.
Differential Revision: https://phabricator.services.mozilla.com/D284815
Other browsers and iframes already keep non-initial about:blank documents in
session history. This change extends that to top-level about:blank loads.
In addition, nsDocShell::ShouldAddToSessionHistory is removed.
When browser.newtabpage.enabled=false, newly opened tabs continue to have their
initial about:newtab session history entry marked as transient. The logic is
moved from nsDocShell to AboutNewTabParent.
Differential Revision: https://phabricator.services.mozilla.com/D284624
Previously, "dom.security.framebusting_intervention.enabled" would only have an
effect with "dom.disable_open_during_load" enabled. This change makes these two
prefs independent.
Differential Revision: https://phabricator.services.mozilla.com/D273602
While this isn't needed anymore with the current approach for bug 2008334,
it is still a good refactoring for the Document PiP code.
Differential Revision: https://phabricator.services.mozilla.com/D278261