Open Bug 1516775 Opened 6 years ago Updated 2 years ago

Optimize lookups on cross-realm WindowProxies

Categories

(Core :: JavaScript Engine: JIT, enhancement, P2)

enhancement

Tracking

()

Tracking Status
firefox66 --- fix-optional

People

(Reporter: jandem, Unassigned)

References

(Depends on 1 open bug)

Details

Initially we will only optimize lookups on the WindowProxy for the current global (bug 1467124), but later the IC optimizations for WindowProxy could also be used for other windows in the compartment.

When we do this we will need to guard on something like "did the window mutate document.domain" because that will affect behavior of the WindowProxy after bug 1363208. We have a flag like that on xpc's CompartmentPrivate but we could add something on JS::Realm - this may also let us move the document.domain info out of ContentPrincipal, bholley is interested in that.
Depends on: 1517424
Priority: -- → P2
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.