Closed Bug 1887817 Opened 2 years ago Closed 1 year ago

Document.parseHTMLUnsafe throw error: NS_ERROR_UNEXPECTED

Categories

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

Firefox 124
defect

Tracking

()

VERIFIED FIXED
128 Branch
Tracking Status
firefox128 --- verified
firefox129 --- verified

People

(Reporter: 94529818, Assigned: avandolder)

References

Details

Attachments

(2 files)

Attached image parseHTML.png

Steps to reproduce:

Execute Document.parseHTMLUnsafe('<p></p>') .

Actual results:

Throw error:
Uncaught NS_ERROR_UNEXPECTED

Expected results:

Execute successfully.

The Bugbug bot thinks this bug should belong to the 'Core::DOM: Core & HTML' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core
Severity: -- → S3
Assignee: nobody → avandolder
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Duplicate of this bug: 1892885

It doesn't throw the error any more in version 126.
But returns a "Restricted Object".

Pushed by avandolder@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/35521d03c3c7 Create document for parseHTMLUnsafe within the correct docgroup. r=dom-core,jjaschke
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 128 Branch
Regressions: 1898401
QA Whiteboard: [qa-128b-p2]

Issue is reproducible on a 2024-03-26 Nightly build on Windows 10.
Verified as fixed on Firefox 128.0b3 and Firefox Nightly 129.0a1 on Windows 10, Ubuntu 22, macOS 14.

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-128b-p2]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: