Refactor MixedContentBlocker::ShouldLoad to remove duplicated logic
Categories
(Core :: DOM: Security, task, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox78 | --- | fixed |
People
(Reporter: mattwoodrow, Assigned: mattwoodrow)
References
Details
(Whiteboard: [domsecurity-backlog1])
Attachments
(9 files)
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review |
The logic in ShouldLoad for dealing with adding/removing flags seems a lot more complex than it needs to be.
I have a set of patches to try factor out the logic and reduce the duplication, which I think will make it easier to reason about for adding fission support.
Updated•6 years ago
|
| Assignee | ||
Comment 1•6 years ago
|
||
We previously were checking the nsresult inconsistently.
Updated•6 years ago
|
| Assignee | ||
Comment 2•6 years ago
|
||
Depends on D75018
| Assignee | ||
Comment 3•6 years ago
|
||
This looks like it was necessary a long time ago, but now just runs the same calls as the calling code, so unnecessarily splits the logic into two.
Depends on D75019
| Assignee | ||
Comment 4•6 years ago
|
||
Depends on D75020
| Assignee | ||
Comment 5•6 years ago
|
||
Factor out broken flag clearing
Depends on D75021
| Assignee | ||
Comment 6•6 years ago
|
||
Depends on D75022
| Assignee | ||
Comment 7•6 years ago
|
||
Depends on D75023
| Assignee | ||
Comment 8•6 years ago
|
||
Depends on D75024
| Assignee | ||
Comment 9•6 years ago
|
||
Depends on D75025
Comment 10•6 years ago
|
||
Comment 11•6 years ago
|
||
Backed out for bustages on nsMixedContentBlocker.cpp
Backout link: https://hg.mozilla.org/integration/autoland/rev/efbb5dd6bf7baeaee6a85520791aa051571786cb
Log link: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=302176699&repo=autoland&lineNumber=34561
Comment 12•6 years ago
|
||
| Assignee | ||
Updated•6 years ago
|
Comment 13•6 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/a6da9185be30
https://hg.mozilla.org/mozilla-central/rev/a070e28e1293
https://hg.mozilla.org/mozilla-central/rev/54e745466a1e
https://hg.mozilla.org/mozilla-central/rev/9edfcabb1fb6
https://hg.mozilla.org/mozilla-central/rev/0d2c833ac4d3
https://hg.mozilla.org/mozilla-central/rev/10b5c92f0200
https://hg.mozilla.org/mozilla-central/rev/d615ede24737
https://hg.mozilla.org/mozilla-central/rev/7b3d6f15776b
https://hg.mozilla.org/mozilla-central/rev/56310eefdcdd
Description
•