Closed Bug 1471711 Opened 6 years ago Closed 5 years ago

Factor window targeting, spec sandbox, and short circuit loads out of nsDocShell::InternalLoad

Categories

(Core :: DOM: Navigation, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
mozilla67
Fission Milestone M1
Tracking Status
firefox67 --- fixed

People

(Reporter: qdot, Assigned: qdot)

References

(Blocks 1 open bug)

Details

Attachments

(5 files)

In an effort to reduce complexity of nsDocShell::InternalLoad, we can move window targeting and spec sandbox checks to their own methods.
Note to self: Pay attention to changes being made in bug 1441059 when refactoring, to make sure we still cancel out correctly.
Priority: -- → P2
Summary: Factor window targeting and spec sandbox out of nsDocShell::InternalLoad → Factor window targeting, spec sandbox, and short circuit loads out of nsDocShell::InternalLoad

Move targeting logic out of InternalLoad into its own method.

Since targeting has been moved to another method, we don't need to
know the ContentPolicyType until we're in DoURILoad. We can also move
Srcdoc handling to DoURILoad, as all data is passed with the LoadState.

Depends on D17015

Loading between 2 history entries is mostly a standalone procedure,
and can be extracted to its own method to clean up InternalLoad.

Depends on D17017

Stop all loads that are coming through Docshells that are currently
being destroyed. Keeps earliest check for this condition, removes
later one.

Depends on D17018

Fission Milestone: --- → M1
Whiteboard: [1/30] waiting for review
Status: NEW → ASSIGNED
Whiteboard: [1/30] waiting for review
Pushed by kmachulis@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e2f05d4b4588
Extract targeting from nsDocShell::InternalLoad; r=bzbarsky
https://hg.mozilla.org/integration/autoland/rev/0923f30e1b54
Move ContentPolicyType and Srcdoc checking to DoURILoad; r=bzbarsky
https://hg.mozilla.org/integration/autoland/rev/9a1a9249d888
Move bailout checks as early as possible in nsDocShell::InternalLoad; r=bzbarsky
https://hg.mozilla.org/integration/autoland/rev/ae2f3a7e24b1
Extract short circuit loads to their own method; r=bzbarsky
https://hg.mozilla.org/integration/autoland/rev/71e4d00dc7bc
Remove redundant docshell being destroyed check; r=bzbarsky
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: