Closed Bug 1341898 Opened 3 years ago Closed 3 years ago

Make nsDocument::IsWebComponentsEnabled use a cached bool pref

Categories

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

defect
Not set

Tracking

()

RESOLVED FIXED
mozilla54
Tracking Status
firefox54 --- fixed

People

(Reporter: ehsan, Assigned: ehsan)

References

Details

Attachments

(1 file)

Another similar issue: https://perfht.ml/2l1f671

XrayResolveAttribute calling into nsDocument::IsWebComponentsEnabled() which does a slow hashtable lookup.  Making this block bug 1334263 since I don't know of a better tracker bug.
Assignee: nobody → ehsan
Attachment #8840288 - Flags: review?(amarchesini) → review+
We should also add this to the content prefs, otherwise the content process attempts to access it too early at startup.
Pushed by eakhgari@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/9fe977a59fa1
Make nsDocument::IsWebComponentsEnabled use a cached bool pref; r=baku
https://hg.mozilla.org/mozilla-central/rev/9fe977a59fa1
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
Depends on: 1342334
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.