Open Bug 799198 Opened 12 years ago Updated 2 years ago

Need a way to fetch file:// and http:// resources from the server

Categories

(DevTools :: about:debugging, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: msucan, Unassigned)

References

Details

(Whiteboard: [b2g])

Currently the Web Console actor only gives URIs to the client. The responsibility of fetching a resource pointed at by the given URI falls on the client. This can work in the current local-only setup, but when you do remote debugging you need the server to send you the resource pointed at by the page error, console API, network request, etc.

We need support for this capability not just for the http-based resources. We need this for chrome:// and file:// URIs as well - think B2G debugging.
I know there's a way to fetch script sources, but isn't this specialized for scripts? Can we make it more generic, for stylesheets, images and other network requests/file loads? I haven't looked much into this part of the code...

I would imagine a ResourceActor that I could create an instance of, and give it a URI that I want to send to the client, an nsIURI, or even an nsIFile - just like we have object actors.
I think you need to base your ResourceActor on SourceActor in dbg-script-actors.js. I know that Nick and Dave have been changing this code in the source maps work, but this might not concern you much.

Since you don't use debugger actors in the web console actors yet, you can just go ahead and copy most of the functionality, but when we get to bug 783499 we can think about how to best integrate the two.
this will likely depend on the bulk data bug, says mihai.
Priority: -- → P2
Whiteboard: [b2g]
We need that to transfer images and other binary file types. Otherwise we need to work around with LongStringActor and base64, which are not ideal for the given purpose.
Blocks: 800811
Depends on: 797639
Filter on BLACKEAGLE2.
Assignee: nobody → past
Who am I kidding? I'm not going to work on this any time soon.
Assignee: past → nobody
Priority: P2 → P3
Summary: Provide a way to retrieve file:// and http:// resources from the server → Need a way to fetch file:// and http:// resources from the server
Product: Firefox → DevTools
Type: defect → enhancement
Component: Debugger → about:debugging
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.