Closed Bug 1238134 Opened 8 years ago Closed 8 years ago

provide [ChromeOnly] getter for unfiltered Response object

Categories

(Core :: DOM: Core & HTML, defect)

32 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla46
Tracking Status
firefox46 --- fixed

People

(Reporter: bkelly, Assigned: bkelly)

References

Details

Attachments

(2 files)

In order to support better devtools we need to let chrome code inspect the contents of an opaque response.  Lets expose a [ChromeOnly] getter for the unfiltered inner response object.
Does this work for the Cache API storage inspector code?  I still need to write a test.
Attachment #8705826 - Flags: feedback?(poirot.alex)
Comment on attachment 8705826 [details] [diff] [review]
P1 Provide a Response.cloneUnfiltered() method for chrome code to access internal Response state. r=ehsan

Works perfectly for storage inspector needs!
Attachment #8705826 - Flags: feedback?(poirot.alex) → feedback+
Attachment #8705826 - Flags: review?(ehsan)
Comment on attachment 8705826 [details] [diff] [review]
P1 Provide a Response.cloneUnfiltered() method for chrome code to access internal Response state. r=ehsan

Review of attachment 8705826 [details] [diff] [review]:
-----------------------------------------------------------------

::: dom/webidl/Response.webidl
@@ +24,5 @@
>  
>    [Throws,
>     NewObject] Response clone();
> +
> +  [ChromeOnly, Throws] Response cloneUnfiltered();

Nit: please add NewObject too.
Attachment #8705826 - Flags: review?(ehsan) → review+
Attachment #8706594 - Flags: review?(ehsan) → review+
https://hg.mozilla.org/mozilla-central/rev/d0b39a33e042
https://hg.mozilla.org/mozilla-central/rev/b12cc3b2697b
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla46
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: