Closed Bug 1688508 Opened 4 years ago Closed 4 years ago

shadowrootattached is too slow

Categories

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

defect

Tracking

()

RESOLVED FIXED
87 Branch
Tracking Status
firefox87 --- fixed

People

(Reporter: smaug, Assigned: emilio)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Attached file test_script_2.html (deleted) —

There are at least benchmark types of cases where dispatching shadowrootattached all the time causes major performance hit.

Blocks: shadowdom
Severity: -- → N/A
Priority: -- → P3

Should be easy enough to fix.

Assignee: nobody → emilio

Much like devtools manages the existing stylesheet changed events.

This is tested by devtools/client/inspector/markup/test/browser_markup_shadowdom.js

Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4603e793ec0d Fire shadowrootattached only if devtools is observing the document. r=smaug
Pushed by emilio@crisal.io: https://hg.mozilla.org/integration/autoland/rev/65d676171800 Also enable the event on initialization.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: