Closed Bug 270748 Opened 20 years ago Closed 8 years ago

Permission denied to call XMLHttpRequest.open for data URL

Categories

(Core :: Security, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: BijuMailList, Assigned: dveditz)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

Why "Permission denied to call method XMLHttpRequest.open" for data URL?

the web page calling XMLHttpRequest.open is supplying data for the dataURL so
why should it be blocked.


Reproducible: Always
Steps to Reproduce:
Open attached dataurl.htm and otherurl.htm

Actual Results:  
dataurl.htm - Permission denied 
otherurl.htm - Works fine

Expected Results:  
dataurl.htm - No need for Permission denied
The problem is that XMLHttpRequest is only allowed to "the same server" and the
data: URI has a different server (no server, in fact)....

See also bug 174388
Depends on: 174388
This is an automated message, with ID "auto-resolve01".

This bug has had no comments for a long time. Statistically, we have found that
bug reports that have not been confirmed by a second user after three months are
highly unlikely to be the source of a fix to the code.

While your input is very important to us, our resources are limited and so we
are asking for your help in focussing our efforts. If you can still reproduce
this problem in the latest version of the product (see below for how to obtain a
copy) or, for feature requests, if it's not present in the latest version and
you still believe we should implement it, please visit the URL of this bug
(given at the top of this mail) and add a comment to that effect, giving more
reproduction information if you have it.

If it is not a problem any longer, you need take no action. If this bug is not
changed in any way in the next two weeks, it will be automatically resolved.
Thank you for your help in this matter.

The latest beta releases can be obtained from:
Firefox:     http://www.mozilla.org/projects/firefox/
Thunderbird: http://www.mozilla.org/products/thunderbird/releases/1.5beta1.html
Seamonkey:   http://www.mozilla.org/projects/seamonkey/
confirming
Status: UNCONFIRMED → NEW
Ever confirmed: true
Peter, Jonas, how do we want to handle this sort of thing?
Blocks: 201903
I can't think of a reason to explicitly allow data urls here. We could even allow javascript url IMHO.
Depends on: 434522
QA Contact: toolkit
This bug no longer reproduces. The data URL test-case works rather than throwing a "permission denied" error (although the "otherurl" test-case doesn't work anymore because the XHR is redirected to another domain and is blocked by CORS).
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: