Closed
Bug 1351146
Opened 8 years ago
Closed 8 years ago
Store referrer, remote address and url to redirect chain in LoadInfo
Categories
(Core :: DOM: Security, enhancement, P2)
Core
DOM: Security
Tracking
()
RESOLVED
FIXED
mozilla55
Tracking | Status | |
---|---|---|
firefox55 | --- | fixed |
People
(Reporter: tnguyen, Assigned: tnguyen)
References
(Blocks 1 open bug)
Details
(Whiteboard: [domsecurity-active])
Attachments
(2 files, 5 obsolete files)
20.64 KB,
patch
|
tnguyen
:
review+
|
Details | Diff | Splinter Review |
30.82 KB,
patch
|
tnguyen
:
review+
|
Details | Diff | Splinter Review |
Comment hidden (typo) |
Assignee | ||
Comment 1•8 years ago
|
||
Follow bug 1331138, if an unsafe Url has encountered, we should provide a context of how the client arrived at the unsafe entry, particularly in redirect case.
The following info should be added to Loadinfo when a channel is redirected
- Remote ip
- Url
- referrer
Assignee | ||
Comment 2•8 years ago
|
||
MozReview-Commit-ID: 3pv1Z59DgXi
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → tnguyen
Assignee | ||
Updated•8 years ago
|
Attachment #8853335 -
Attachment description: Add more information to redirect chains → WIP - Add more information to redirect chains
Updated•8 years ago
|
Status: NEW → ASSIGNED
Priority: -- → P2
Whiteboard: [domsecurity-active]
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Comment 5•8 years ago
|
||
Patrick, could you please take a look? Or do you know who would help to look at this?
Thanks
Updated•8 years ago
|
Attachment #8860833 -
Flags: review?(mcmanus) → review?(dd.mozilla)
Updated•8 years ago
|
Attachment #8860834 -
Flags: review?(mcmanus) → review?(dd.mozilla)
Comment 6•8 years ago
|
||
mozreview-review |
Comment on attachment 8860833 [details]
Bug 1351146 - P1 - Add more information to redirect chains
https://reviewboard.mozilla.org/r/126634/#review137948
Attachment #8860833 -
Flags: review?(dd.mozilla) → review+
Comment 7•8 years ago
|
||
mozreview-review |
Comment on attachment 8860834 [details]
Bug 1351146 - P2 - Update test case and usage of nsIRedirectHistoryEntry interface
https://reviewboard.mozilla.org/r/126636/#review137950
::: netwerk/test/mochitests/test_loadinfo_redirectchain.html:85
(Diff revision 1)
> "http://mochi.test:8888/tests/netwerk/test/mochitests/file_loadinfo_redirectchain.sjs?redir-2",
> "http://mochi.test:8888/tests/netwerk/test/mochitests/file_loadinfo_redirectchain.sjs?redir-1"
> ];
>
> + // TODO we currently will not change referrer and referrer policy of XHR
> + // redirect. Any specs to do that?
Please figure out the answer to this question.
Attachment #8860834 -
Flags: review?(dd.mozilla)
Assignee | ||
Updated•8 years ago
|
Attachment #8853335 -
Attachment is obsolete: true
Assignee | ||
Comment 8•8 years ago
|
||
mozreview-review |
Comment on attachment 8860834 [details]
Bug 1351146 - P2 - Update test case and usage of nsIRedirectHistoryEntry interface
https://reviewboard.mozilla.org/r/126636/#review138274
::: netwerk/test/mochitests/test_loadinfo_redirectchain.html:85
(Diff revision 1)
> "http://mochi.test:8888/tests/netwerk/test/mochitests/file_loadinfo_redirectchain.sjs?redir-2",
> "http://mochi.test:8888/tests/netwerk/test/mochitests/file_loadinfo_redirectchain.sjs?redir-1"
> ];
>
> + // TODO we currently will not change referrer and referrer policy of XHR
> + // redirect. Any specs to do that?
Thanks you,
I discussed with Francois about that. Generally, that's ok if all elements in chain have the same referrer.
I just would like to remove this TODO and add a comment :)
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Updated•8 years ago
|
Attachment #8860833 -
Flags: review?(mcmanus)
Attachment #8860834 -
Flags: review?(mcmanus)
Assignee | ||
Comment 11•8 years ago
|
||
Plz ignore the rebased commit :)
Comment hidden (mozreview-request) |
Comment 13•8 years ago
|
||
mozreview-review |
Comment on attachment 8860834 [details]
Bug 1351146 - P2 - Update test case and usage of nsIRedirectHistoryEntry interface
https://reviewboard.mozilla.org/r/126636/#review139112
Attachment #8860834 -
Flags: review?(dd.mozilla) → review+
Assignee | ||
Comment 14•8 years ago
|
||
Thanks Dragana
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Comment 17•8 years ago
|
||
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Comment 21•8 years ago
|
||
Assignee | ||
Comment 22•8 years ago
|
||
Fixed test failure in Android (remote host should be 10.0.2.2, not 127.0.0.1)
Try looks good
https://treeherder.mozilla.org/#/jobs?repo=try&revision=a9a918a82bc4d243adc9191c66e07a9ecc3f2964&selectedJob=97274978
Assignee | ||
Updated•8 years ago
|
Keywords: checkin-needed
Comment 23•8 years ago
|
||
Autoland can't push this until it has review in MozReview from someone with Level 3 commit access.
Keywords: checkin-needed
Assignee | ||
Comment 24•8 years ago
|
||
Ah, I see, thanks Ryan
Assignee | ||
Comment 25•8 years ago
|
||
Patrick, could you please take a look?
Assignee | ||
Updated•8 years ago
|
Attachment #8860833 -
Flags: review?(mcmanus)
Attachment #8860834 -
Flags: review?(mcmanus)
Updated•8 years ago
|
Attachment #8860833 -
Flags: review?(mcmanus)
Attachment #8860834 -
Flags: review?(mcmanus)
Comment 26•8 years ago
|
||
(In reply to Ryan VanderMeulen [:RyanVM] from comment #23)
> Autoland can't push this until it has review in MozReview from someone with
> Level 3 commit access.
dragana has level 3 access: https://bugzilla.mozilla.org/show_bug.cgi?id=1286152
Flags: needinfo?(ryanvm)
Comment 27•8 years ago
|
||
MozReview says it doesn't have sufficient reviews to land. You'll need to ask the people who maintain it then.
Flags: needinfo?(ryanvm)
Comment 29•8 years ago
|
||
Since the identity systems of Bugzilla/MozReview and LDAP aren't federated, you need to associate your LDAP account with Bugzilla/MozReview by following the instructions at https://mozilla-version-control-tools.readthedocs.io/en/latest/mozreview/install.html#manually-associating-your-ldap-account-with-mozreview
Flags: needinfo?(gps)
Comment hidden (obsolete) |
Comment hidden (obsolete) |
Assignee | ||
Comment 33•8 years ago
|
||
Assignee | ||
Updated•8 years ago
|
Attachment #8860833 -
Attachment is obsolete: true
Assignee | ||
Updated•8 years ago
|
Attachment #8860834 -
Attachment is obsolete: true
Assignee | ||
Comment 34•8 years ago
|
||
Changed to raw file, carry r+ and I am running try to see if it breaks any tests.
Flags: needinfo?(dd.mozilla)
Assignee | ||
Updated•8 years ago
|
Attachment #8871560 -
Flags: review+
Assignee | ||
Comment 35•8 years ago
|
||
MozReview-Commit-ID: s61VV5CLx8
Assignee | ||
Comment 36•8 years ago
|
||
In order to provide more details context of how client arrived at the unsafe
page, particularly in redirect case, we may have to add more information to
redirect chains including:
- referrer (if any)
- remote address.
- URL
We may want to use an idl interface instead of nsIPrincipal to store these
information
MozReview-Commit-ID: 3Uh4r06w60C
Assignee | ||
Updated•8 years ago
|
Attachment #8871560 -
Attachment is obsolete: true
Assignee | ||
Updated•8 years ago
|
Attachment #8871561 -
Attachment is obsolete: true
Assignee | ||
Updated•8 years ago
|
Attachment #8871564 -
Flags: review+
Assignee | ||
Updated•8 years ago
|
Attachment #8871565 -
Flags: review+
Assignee | ||
Updated•8 years ago
|
Keywords: checkin-needed
Comment 37•8 years ago
|
||
Pushed by cbook@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/9db4c2096741
P1 - Add more information to redirect chains. r=dragana
https://hg.mozilla.org/integration/mozilla-inbound/rev/a0eddece0662
P2 - Update test case and usage of nsIRedirectHistoryEntry interface. r=dragana
Keywords: checkin-needed
Comment 38•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/9db4c2096741
https://hg.mozilla.org/mozilla-central/rev/a0eddece0662
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox55:
--- → fixed
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
You need to log in
before you can comment on or make changes to this bug.