Closed Bug 1341898 Opened 7 years ago Closed 7 years ago

Make nsDocument::IsWebComponentsEnabled use a cached bool pref

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla54
Tracking Status
firefox54 --- fixed

People

(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)

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: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.