Closed Bug 1844752 Opened 1 year ago Closed 1 year ago

nsNodeInfoManager's constructor should initialize mPrincipal to the right value immediately if possible

Categories

(Core :: DOM: Core & HTML, defect, P3)

defect

Tracking

()

RESOLVED FIXED
118 Branch
Tracking Status
firefox118 --- fixed

People

(Reporter: smaug, Assigned: smaug)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [sp3])

Attachments

(1 file)

It takes quite a bit time to create the NullPrincipal and then almost immediately replace that with the correct principal.
XULPrototype handling is a bit special, so I'm planning to keep the old behavior there.

Severity: -- → S3
Component: DOM: HTML Parser → DOM: Core & HTML
Priority: -- → P3

Looks like there are also other ways to create a document when the principal isn't available immediately, so passing principal is just an optimization.

Pushed by opettay@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/34c44ef4fb3e initialize nsNodeInfoManager::mPrincipal with the correct principal when available, r=dom-core,emilio,peterv
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 118 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: