My favorites | Sign in
Project Home Wiki Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 1084: The Net tab or the Console does not show request when using file:// uri
14 people starred this issue and may be notified of changes. Back to list
Status:  Triaged
Owner:  ----
Cc:  odva...@gmail.com, sebastia...@gmail.com
net
1.2


Sign in to add a comment
 
Reported by les.szkl...@gmail.com, Aug 19, 2008
What steps will reproduce the problem?
1. Copy the attached files into C:\download\test
2. Enter file:///C:/download/test/Tree.html in Firefox

What is the expected output? What do you see instead?

The alert displays the json from the file countries.json, but the FB
Console or the Net tab does not show the request.

What version of the product are you using? On what operating system?
FF3, FB 1.2b13, Win XP Pro

Please provide any additional information below.

 
countries.json
2.4 KB   View   Download
Tree.html
434 bytes   View   Download
Aug 19, 2008
Project Member #1 johnjbar...@johnjbarton.com
(No comment was entered for this change.)
Cc: ho...@allpeers.com
Labels: net 1.2
Aug 20, 2008
Project Member #2 odva...@gmail.com
The problem is that in case of the local XHR the http-on-modify-request event isn't
fired. The net panels implementation is based on this (and http-on-examine-response)
event. 

Notice that the request isn't displayed in LiveHTTPHeader & TamperData either.

I don't know if this is a FF bug or if there is a reason for it. 

I am asking here:
http://groups.google.ca/group/mozilla.dev.extensions/browse_thread/thread/bc47fcdb4482b920?hl=en#

Honza
Oct 15, 2008
Project Member #3 johnjbar...@johnjbarton.com
Does the new nsiTraceableChannel impact this problem?  Maybe not since its http only...
Cc: johnjbar...@johnjbarton.com
Oct 22, 2009
Project Member #4 sabine.m...@gmail.com
The reply to Honza's question:

there is a reason the topic is named *http*-on-modify-request and not
*allprotocols*-on-modify-request, so this is not a bug from what I see. ;)
You should have the same issue with ftp ;)

I don't know if there is actually a way to get file: (or any other
protocol)... But I guess there is not.
nsIChannelEventSink only receives redirects IIRC.

However some very hackery way may be to override (parts of) IOService or
FileChannel (AsyncOpen comes to mind as a way to wrapping the indented
StreamListener with your own which will then process OnStartRequest or
whatever).

Cheers
Nils 
Oct 23, 2009
Project Member #5 odva...@gmail.com
(No comment was entered for this change.)
Cc: -ho...@allpeers.com odvarko
Jul 2, 2011
#6 sebastia...@gmx.de
I remember there was already a discussion about renaming the Net panel in  issue 1208  to something more general, because by now it's not just showing normal HTTP requests anymore, but also cache reads, which don't produce HTTP requests.
And I believe there were already several requests related to also showing local file system requests inside the requests list.
Of course this would mean some bigger changes to the "Net" panel, because local requests are handled totally different to network requests and don't provide all the information we get from HTTP requests.
Status: Triaged
Cc: sebastia...@gmx.de
Labels: Test-case-available
Mar 23, 2013
Project Member #7 sebastia...@gmail.com
(No comment was entered for this change.)
Cc: -johnjbar...@johnjbarton.com
Mar 23, 2013
Project Member #8 sebastia...@gmail.com
(No comment was entered for this change.)
Cc: sebastia...@gmail.com
Apr 3, 2013
Project Member #9 sebastia...@gmail.com
(No comment was entered for this change.)
Cc: -sebastia...@gmx.de
Apr 17, 2013
#10 feti...@gmail.com
plz fix this, guys. local debugging sooo hard sometimes
Apr 17, 2013
Project Member #11 sebastia...@gmail.com
Well, the easy workaround is to use a local webserver.
But I agree, this should be implemented. As I mentioned before the hard part is the UI, since it's not the same as when making a network request. You won't have any status code, no domain, no IPs, no timeline, no headers, etc.

Sebastian
Sign in to add a comment

Powered by Google Project Hosting