Closed Bug 1646547 Opened 4 years ago Closed 4 years ago

Figure out if GetInProcessParentDocument usage in ScriptLoader::ReadyToExecuteParserBlockingScripts is OK

Categories

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

task

Tracking

()

RESOLVED FIXED
81 Branch
Fission Milestone M6b
Tracking Status
firefox81 --- fixed

People

(Reporter: kmag, Assigned: smacleod)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

It walks the entire ancestor chain and returns false if any of them are not ready to execute parser blocking scripts, but stops any time it encounters an OOP ancestor. It should probably at least walk all in-process ancestor documents regardless of OOP interstitials, but I'm not sure how much it matters in practice.

Severity: -- → N/A

Tracking "Figure out GetInProcessTop usage" bugs for Fission M6b.

Fission Milestone: --- → M6b

Baku or Henri, I'm hoping one of you is the right person to review this usage?

Flags: needinfo?(hsivonen)
Flags: needinfo?(amarchesini)

Jon, do you have time to take a look?

Flags: needinfo?(amarchesini) → needinfo?(jcoppeard)

I don't understand this enough to usefully review it.

Flags: needinfo?(jcoppeard)

This exists in order to fix bug 383331. I don't know how much it matters in practice, but the suggestions from comment 0 seems prudent and reasonable.

Flags: needinfo?(hsivonen)

Steven, you can ask kmag for more context, if you need.

Assignee: nobody → smacleod
Status: NEW → ASSIGNED
Priority: -- → P3

ReadyToExecuteParserBlockingScripts was walking the ancestor chain but
would stop if it hit an OOP ancestor. With this change we walk the
BrowsingContext tree instead, so that we may skip over OOP ancestors
and continue checking all in process ancestors.

Pushed by smacleod@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/72c9cdfb1049
fix ScriptLoader::ReadyToExecuteParserBlockingScripts stopping at OOP ancestors. r=kmag
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 81 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: