Closed
Bug 1113004
Opened 10 years ago
Closed 10 years ago
Add IsPrivateResponse to HttpChannel
Categories
(Core :: Networking, defect)
Core
Networking
Tracking
()
RESOLVED
FIXED
mozilla38
People
(Reporter: francois, Assigned: francois)
References
Details
Attachments
(1 file, 1 obsolete file)
11.63 KB,
patch
|
mayhemer
:
review+
|
Details | Diff | Splinter Review |
nsIHttpChannel already has an isNoStoreResponse method to check for "Cache-control: no-store":
http://dxr.mozilla.org/mozilla-central/source/netwerk/protocol/http/nsIHttpChannel.idl#289
Honza suggested (https://bugzilla.mozilla.org/show_bug.cgi?id=992096#c24) a new isPrivateResponse method to make it easier to check for publicly cachable resources in the sub-resource integrity code (bug 992096).
Assignee | ||
Comment 1•10 years ago
|
||
Honza, Is that what you had in mind for the nsIHttpChannel.IsPrivateResponse()?
I added a very basic test, but if there's a good place to test this properly, please let me know and I'll add it. I've tested it manually as part of my patch for bug 992096.
Comment 2•10 years ago
|
||
Comment on attachment 8538286 [details] [diff] [review]
Implementation with a very basic test
Review of attachment 8538286 [details] [diff] [review]:
-----------------------------------------------------------------
You also need to update netwerk\protocol\http\PHttpChannelParams.h to carry this new member via IPC.
::: netwerk/protocol/http/nsIHttpChannel.idl
@@ +305,5 @@
> + *
> + * @throws NS_ERROR_NOT_AVAILABLE if called before the response
> + * has been received (before onStartRequest).
> + */
> + boolean isPrivateResponse();
modify IID !
Attachment #8538286 -
Flags: review?(honzab.moz) → feedback+
Assignee | ||
Comment 3•10 years ago
|
||
This new patch fixes the issues highlighted in comment 2 (thanks Honza!).
Try run here: https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=463b98759baa
Attachment #8538286 -
Attachment is obsolete: true
Attachment #8546421 -
Flags: review?(honzab.moz)
Updated•10 years ago
|
Attachment #8546421 -
Flags: review?(honzab.moz) → review+
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Comment 4•10 years ago
|
||
Keywords: checkin-needed
Comment 5•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
You need to log in
before you can comment on or make changes to this bug.
Description
•