Closed
Bug 1250033
Opened 10 years ago
Closed 9 years ago
DocShell shouldn't have any child when setting userContextId
Categories
(Core :: Security, defect, P1)
Core
Security
Tracking
()
RESOLVED
FIXED
mozilla49
People
(Reporter: allstars.chh, Assigned: allstars.chh)
References
(Blocks 1 open bug)
Details
(Whiteboard: [userContextId])
Attachments
(1 file)
1022 bytes,
patch
|
sicking
:
review+
|
Details | Diff | Splinter Review |
When I was working on Bug 1227861 we found that docshell already has children when setting userContextId, which should be a bug
See https://bugzilla.mozilla.org/show_bug.cgi?id=1227861#c53
Assignee | ||
Comment 1•10 years ago
|
||
Updated•9 years ago
|
Whiteboard: [userContextId]
Updated•9 years ago
|
Priority: -- → P1
Updated•9 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•9 years ago
|
||
Attachment #8749515 -
Flags: review?(jonas)
Assignee | ||
Comment 3•9 years ago
|
||
Comment on attachment 8749515 [details] [diff] [review]
Patch.
Review of attachment 8749515 [details] [diff] [review]:
-----------------------------------------------------------------
We should also assert that mContentViewer is null. Is there a followup bug on that?
Attachment #8749515 -
Flags: review?(jonas) → review+
Assignee | ||
Comment 5•9 years ago
|
||
(In reply to Jonas Sicking (:sicking) from comment #4)
> Comment on attachment 8749515 [details] [diff] [review]
> Patch.
>
> Review of attachment 8749515 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> We should also assert that mContentViewer is null. Is there a followup bug
> on that?
Thanks for the 'early' review.
Bug 1250063, I am still working on this as it involves code related to nsWindowWatcher.
Comment 7•9 years ago
|
||
The landing of this patch caused a constant crash in our firefox-ui-tests as filed as bug 1271212.
Depends on: 1271212
Comment 8•9 years ago
|
||
The try build from comment 3 also shows this crash:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=4579209f0eb3&selectedJob=20401993&filter-tier=1&filter-tier=2&filter-tier=3
Comment 9•9 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox49:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
Comment 10•9 years ago
|
||
backing out in case bug 1271212 would affect also nightly users
Status: RESOLVED → REOPENED
Flags: needinfo?(allstars.chh)
Resolution: FIXED → ---
Comment 11•9 years ago
|
||
Comment 13•9 years ago
|
||
Does this also affect 48?
Marking 49 as affected since this landed and then backed out.
status-firefox48:
--- → affected
Comment 14•9 years ago
|
||
Does this problem go back fairly far in Firefox versions? How important is it to fix?
Tracking for 49 until I understand the issue better.
tracking-firefox49:
--- → +
What test was failing? It seems quite likely that the test is doing something that's insecure. Hopefully it's just the test itself that's doing the insecure thing, and not product code.
Comment 16•9 years ago
|
||
The test which was failing is a Marionette test from the firefox-ui-tests suite:
https://dxr.mozilla.org/mozilla-central/source/testing/firefox-ui/tests/functional/security/test_no_certificate.py?from=test_no_certificate.py
Comment 17•9 years ago
|
||
Log details can also be found here:
https://public-artifacts.taskcluster.net/ezYec3LDRQmhvIeF88GPcw/0/public/logs/live_backing.log
Comment 18•9 years ago
|
||
Is this an OriginAttributes but, or usercontextId specific?
This primarily affects OriginAttributes. But since userContextId is built on top of OriginAttributes it'll affect userContextIds as well. So the problem here isn't that userContextId specifically are used the wrong way, but that all OriginAttributes, userContextId included, are used the wrong way.
Comment hidden (typo) |
Comment 21•9 years ago
|
||
Corrected a typo in comment 20 (just to avoid confusion).
The patch from Bug 1250063 should fix the assertion.
https://treeherder.mozilla.org/#/jobs?repo=try&revision=caf6351ceb58
Assignee | ||
Comment 22•9 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=dd9c08fa524a&filter-tier=1&filter-tier=2&filter-tier=3
Firefox-UI-functional-e10s looks okay.
Comment 23•9 years ago
|
||
Comment 24•9 years ago
|
||
bugherder |
Status: REOPENED → RESOLVED
Closed: 9 years ago → 9 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•