Closed
Bug 1301523
Opened 8 years ago
Closed 8 years ago
Add a test that checks HTTP auth is isolated by first party domain (Tor 13900)
Categories
(Core :: Networking: HTTP, defect, P1)
Core
Networking: HTTP
Tracking
()
RESOLVED
FIXED
mozilla52
Tracking | Status | |
---|---|---|
firefox52 | --- | fixed |
People
(Reporter: arthur, Assigned: jhao)
References
(Blocks 3 open bugs)
Details
(Whiteboard: [tor-testing][OA-testing][necko-next])
Attachments
(1 file)
2.77 KB,
patch
|
mayhemer
:
review+
arthur
:
review+
|
Details | Diff | Splinter Review |
When privacy.firstparty.isolate is true, we should isolate the HTTP Auth token storage by first party domain.
For Tor Browser, we introduced a patch that prevents 3rd-party HTTP Auth altogether:
https://torpat.ch/13900
But proper isolation based on Origin Attributes would be better.
Reporter | ||
Updated•8 years ago
|
Blocks: FirstPartyIsolation, ContextualIdentity
Comment 1•8 years ago
|
||
(In reply to Arthur Edelstein [:arthuredelstein] from comment #0)
> But proper isolation based on Origin Attributes would be better.
I agree.
Whiteboard: [tor] → [tor][OA]
Updated•8 years ago
|
Priority: -- → P1
Updated•8 years ago
|
Whiteboard: [tor][OA] → [tor][OA][tor-standalone]
Updated•8 years ago
|
Whiteboard: [tor][OA][tor-standalone] → [tor][OA]
Updated•8 years ago
|
Whiteboard: [tor][OA] → [tor][OA][necko-next]
Comment 2•8 years ago
|
||
This needs testing and a link to the HTTP Auth code.
Flags: needinfo?(kjozwiak)
Flags: needinfo?(amarchesini)
Comment 3•8 years ago
|
||
This is WORKSFORME, according https://dxr.mozilla.org/mozilla-central/rev/955840bfd3c20eb24dd5a01be27bdc55c489a285/netwerk/protocol/http/nsHttpAuthCache.cpp#26
We isolate http authentication credentials also by origin attributes suffix, so when first party domain is added to origin attributes, it will automatically work.
If this only needs automated tests, then let's turn this bug accordingly.
Tanvi, is this OK?
Flags: needinfo?(tanvi)
Flags: needinfo?(kjozwiak)
Flags: needinfo?(amarchesini)
Summary: HTTP auth can be used for tracking (Tor 13900) → Add a test that checks HTTP auth is isolated by first party domain (Tor 13900)
Comment 4•8 years ago
|
||
Yes, lets convert this to a testing bug. Thanks Honza!
Flags: needinfo?(tanvi)
Priority: P1 → P2
Whiteboard: [tor][OA][necko-next] → [tor-testing][OA-testing][necko-next]
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → jhao
Assignee | ||
Updated•8 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 5•8 years ago
|
||
Hi Honza, would you review this test, please?
This uses the IsolationTestTool.runTest. In each subtest, the tool opens two tabs with several kinds of combinations of containers and first party domain, and compare the result gotten from `getResult`.
Arthur, could you take a look, too?
Attachment #8797996 -
Flags: review?(honzab.moz)
Attachment #8797996 -
Flags: review?(arthuredelstein)
Comment 6•8 years ago
|
||
Comment on attachment 8797996 [details] [diff] [review]
Add a test that checks HTTP auth is isolated by first party domain.
Review of attachment 8797996 [details] [diff] [review]:
-----------------------------------------------------------------
LGTM
Attachment #8797996 -
Flags: review?(honzab.moz) → review+
Reporter | ||
Comment 7•8 years ago
|
||
Comment on attachment 8797996 [details] [diff] [review]
Add a test that checks HTTP auth is isolated by first party domain.
Review of attachment 8797996 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good to me too. Thanks, Jonathan!
Attachment #8797996 -
Flags: review?(arthuredelstein) → review+
Assignee | ||
Comment 8•8 years ago
|
||
Honza and Arthur, thank you.
https://treeherder.mozilla.org/#/jobs?repo=try&revision=c4f3acbe15e4
Keywords: checkin-needed
Updated•8 years ago
|
Priority: P2 → P1
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/e7939844b393
Add a test that checks HTTP auth is isolated by first party domain. r=mayhemer, r=arthuredelstein
Keywords: checkin-needed
Comment 10•8 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox52:
--- → fixed
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
You need to log in
before you can comment on or make changes to this bug.
Description
•