Closed Bug 1726039 Opened 4 years ago Closed 3 years ago

Implement the HostEnsureCanAddPrivateElement hook

Categories

(Core :: JavaScript Engine, task, P1)

task

Tracking

()

RESOLVED FIXED
108 Branch
Tracking Status
firefox108 --- fixed

People

(Reporter: mgaudet, Assigned: mgaudet)

References

()

Details

Attachments

(2 files, 1 obsolete file)

While not JavaScript specification compliant, discussion around the challenges and concerns around getting this right make me think that until we have a solution and agreement about direction, we should at least make these operations throw.

Severity: -- → S3
Priority: -- → P1

Resolving as invalid for now... may have a fix for this.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → INVALID
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Assignee: nobody → mgaudet
Attachment #9236528 - Attachment description: WIP: Bug 1726039 - Disallow setting private fields on MaybeCrossOrigin objects r?peterv → Bug 1726039 - Disallow setting private fields on MaybeCrossOrigin objects r?peterv,jandem

Re-titling this bug, as this is now being standardized.

Summary: Disallow setting private fields on MaybeCrossOrigin objects → Implement the HostEnsureCanAddPrivateElement hook
Depends on: 1785309

Comment on attachment 9269095 [details]
Bug 1726039 - A (mozilla only) WPT Test to ensure that private fields cannot be stamped onto cross origin exotics r?peterv

Revision D141877 was moved to bug 1785309. Setting attachment 9269095 [details] to obsolete.

Attachment #9269095 - Attachment is obsolete: true
Attachment #9236528 - Attachment description: Bug 1726039 - Disallow setting private fields on MaybeCrossOrigin objects r?peterv,jandem → WIP: Bug 1726039 - Disallow setting private fields on MaybeCrossOrigin objects (HostEnsureCanPrivateElementAdd) r?peterv,jandem
Attachment #9236528 - Attachment description: WIP: Bug 1726039 - Disallow setting private fields on MaybeCrossOrigin objects (HostEnsureCanPrivateElementAdd) r?peterv,jandem → Bug 1726039 - Disallow setting private fields on MaybeCrossOrigin objects (HostEnsureCanPrivateElementAdd) r?peterv,jandem
Pushed by mgaudet@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0b2e98bdc954 Disallow setting private fields on MaybeCrossOrigin objects (HostEnsureCanPrivateElementAdd) r=peterv,jandem https://hg.mozilla.org/integration/autoland/rev/c122aae67388 Eliminate security errors from exotic objects which disallow private fields r=jandem
Status: REOPENED → RESOLVED
Closed: 4 years ago3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 108 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: