Factor window targeting, spec sandbox, and short circuit loads out of nsDocShell::InternalLoad
Categories
(Core :: DOM: Navigation, enhancement, P2)
Tracking
()
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.
Assignee | ||
Comment 1•6 years ago
|
||
Note to self: Pay attention to changes being made in bug 1441059 when refactoring, to make sure we still cancel out correctly.
Updated•6 years ago
|
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 3•5 years ago
|
||
Move targeting logic out of InternalLoad into its own method.
Assignee | ||
Comment 4•5 years ago
|
||
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
Assignee | ||
Comment 5•5 years ago
|
||
Depends on D17016
Assignee | ||
Comment 6•5 years ago
|
||
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
Assignee | ||
Comment 7•5 years ago
|
||
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
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
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
Comment 10•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/e2f05d4b4588
https://hg.mozilla.org/mozilla-central/rev/0923f30e1b54
https://hg.mozilla.org/mozilla-central/rev/9a1a9249d888
https://hg.mozilla.org/mozilla-central/rev/ae2f3a7e24b1
https://hg.mozilla.org/mozilla-central/rev/71e4d00dc7bc
Description
•