Bug 1948222 - Add IPAddressSpace settings in BrowsingContext. r=necko-reviewers,valentin

Differential Revision: https://phabricator.services.mozilla.com/D238498
This commit is contained in:
smayya
2025-05-22 11:11:27 +00:00
committed by smayya@mozilla.com
parent ddda5446d0
commit 7e95e529ce
3 changed files with 21 additions and 1 deletions

View File

@@ -474,6 +474,10 @@ already_AddRefed<BrowsingContext> BrowsingContext::CreateDetached(
fields.Get<IDX_AllowJavascript>() =
inherit ? inherit->GetAllowJavascript() : true;
fields.Get<IDX_IPAddressSpace>() = inherit
? inherit->GetIPAddressSpace()
: nsILoadInfo::IPAddressSpace::Public;
fields.Get<IDX_IsPopupRequested>() = aOptions.isPopupRequested;
fields.Get<IDX_TopLevelCreatedByWebContent>() =