Closed Bug 297865 Opened 17 years ago Closed 3 years ago

nsIURIChecker asyncCheck never returns with unexisting file:// URI

Categories

(Core :: Networking, defect, P3)

x86
Linux
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: marja, Unassigned)

References

Details

(Keywords: helpwanted, Whiteboard: [necko-backlog])

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050613

I call nsIURIChecker asyncCheck() from javascript to check the URI does not yet
exists

when the URI is http:// URI or an existing file:// URI it calls onStartRequest
but if URI is an unexisting file:// URI it never calls onStartRequest and never
returns

Reproducible: Always

Steps to Reproduce:
1. call asyncCheck with an unexisting file:// URI
2. see if onStartRequest is called
3.

Actual Results:  
onStartRequest does not get called

Expected Results:  
call onStartRequest
Hrm... when I tested this just now, I find that AsyncCheck throws an exception.
 I agree that it should call the API instead to report the non-existant file in
a consistent manner.  You should be able to hack around this problem until that
is fixed.

This is not a critical bug.
Severity: critical → minor
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: helpwanted
Target Milestone: --- → mozilla1.8beta3
(In reply to comment #1)
> This is not a critical bug.

I agree. It does throw an exception and I can use that now that I finally
understand what it is doing.

And yes I would still vote to change it to use the normal API. I was promised in
some documentation to be able to treat file:// http:// etc. URIs with the same
routines and let mozilla take care of the underlying protocol handling and I'm
trying to utilize it as much as I can :-).

*** Bug 297868 has been marked as a duplicate of this bug. ***
Target Milestone: mozilla1.8beta3 → mozilla1.9alpha
Assignee: darin → nobody
QA Contact: benc → networking
Target Milestone: mozilla1.9alpha → ---
Whiteboard: [necko-backlog]
Bulk change to priority: https://bugzilla.mozilla.org/show_bug.cgi?id=1399258
Priority: -- → P1
Bulk change to priority: https://bugzilla.mozilla.org/show_bug.cgi?id=1399258
Priority: P1 → P3

Code seems to have been removed.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.