Closed
Bug 2045635
Opened 1 month ago
Closed 1 month ago
Validate more fields around docshell load state
Categories
(Core :: IPC, enhancement)
Core
IPC
Tracking
()
RESOLVED
FIXED
154 Branch
People
(Reporter: vhilla, Assigned: vhilla)
References
Details
Attachments
(2 files)
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
diannaS
:
approval-mozilla-release?
|
Details | Review |
To follow-up on bug 2027207 validating principals, we can also add checks to load state.
| Assignee | ||
Comment 1•1 month ago
|
||
Updated•1 month ago
|
Assignee: nobody → vhilla
Status: NEW → ASSIGNED
Pushed by vhilla@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/b03ef05776a6
https://hg.mozilla.org/integration/autoland/rev/afee3fe942f5
Validate more fields for nsDocShellLoadState. r=nika
Pushed by abutkovits@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/08c4c75efd4b
https://hg.mozilla.org/integration/autoland/rev/65c5f5a151c2
Revert "Bug 2045635 - Validate more fields for nsDocShellLoadState. r=nika" for causing failures at browser_open_docgroup.js.
Comment 4•1 month ago
|
||
Backed out for causing failures at browser_open_docgroup.js.
Backout link: https://hg.mozilla.org/integration/autoland/rev/65c5f5a151c2
Flags: needinfo?(vhilla)
| Assignee | ||
Comment 5•1 month ago
•
|
||
Looking at my try history, the tests passed previously which is confusing. What's failing is the check for mPartitionedPrincipalToInherit. I remember I had the same happen locally once but wasn't able to reproduce it consistently.
0:03.55 GECKO(39037) [MozDbg] [./../../../docshell/base/nsDocShellLoadState.cpp:193] mPartitionedPrincipalToInherit = nsIPrincipal { http://example.com^partitionKey=%28http%2Cexample.com%29 } @ 0x7a379b707dc0
0:03.56 GECKO(39037) [MozDbg] [./../../../docshell/base/nsDocShellLoadState.cpp:194] GetEffectiveTriggeringRemoteType() = "webIsolated=https://example.com"
0:03.56 GECKO(39037) [MozDbg] [./../../../docshell/base/nsDocShellLoadState.cpp:195] mPrincipalToInherit = nsIPrincipal { moz-nullprincipal:{041f6b76-256e-4969-b90a-576a1c9307f7}?http://example.com } @ 0x7a379c5f6300
Note PPTI is http while remote type is https. That seems like a bug, I'll try to figure out how the principals get out of sync. It gets fixed when changing example.com to https. Reminds me of bug 2003449.
Flags: needinfo?(vhilla)
Pushed by vhilla@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/aa0af8853008
https://hg.mozilla.org/integration/autoland/rev/4d437225e2ab
Validate more fields for nsDocShellLoadState. r=nika
Comment 7•1 month ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
status-firefox154:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 154 Branch
Updated•4 days ago
|
status-firefox152:
--- → affected
status-firefox153:
--- → affected
Updated•3 days ago
|
| Assignee | ||
Comment 8•1 day ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D305101
Updated•1 day ago
|
Attachment #9609438 -
Flags: approval-mozilla-beta?
Comment 9•1 day ago
|
||
firefox-beta Uplift Approval Request
- User impact if declined/Reason for urgency: Add more principal validation in 153.
- Code covered by automated testing?: yes
- Fix verified in Nightly?: yes
- Needs manual QE testing?: no
- Steps to reproduce for manual QE testing:
- Risk associated with taking this patch: medium
- Explanation of risk level: This adds some checks around loading and more edge cases like bug 2048851 might show up. The change has been in Nightly for a month, edge cases would likely be low severity.
- String changes made/needed?: No
- Is Android affected?: yes
Updated•44 minutes ago
|
Attachment #9609438 -
Flags: approval-mozilla-beta? → approval-mozilla-release?
You need to log in
before you can comment on or make changes to this bug.
Description
•