Closed Bug 560488 Opened 15 years ago Closed 13 years ago

too strict security policy: reading web page from local JS file results with "access to restricted URI denied, code: 1012, nsresult: NS_ERROR_DOM_BAD_URI"

Categories

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

x86
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 465397

People

(Reporter: bluedzins, Unassigned)

Details

User-Agent: Opera/9.80 (Windows NT 6.1; U; en) Presto/2.5.22 Version/10.51 Build Identifier: I wrote a JS script which retrieves various web pages and show them in one page. It works OK in Konqueror for example, but in Firefox due to security policy I am getting the error as above. Such policy is needed when executing JS script fetched from local server, but in my case it is a local file opened directly by Firefox. So in such case I should be able to read anything I would like. The code is pretty straightforward: req.open("GET", web_page_address, false); req.send(""); req is XMLHttpRequest object. Reproducible: Always
This is a security decision by design. See http://ejohn.org/blog/tightened-local-file-security/ and bug 230606.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → INVALID
Thank you for the comment but what is the relevance of the linked materials and this case? Other report: local file -> another local file This report: local file -> external web server On one hand it is external web server job to protect its data, and on the other hand it is valid to get the available data.
Reopening then.
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago13 years ago
Component: Security → DOM: Mozilla Extensions
Product: Firefox → Core
QA Contact: firefox → general
Resolution: --- → DUPLICATE
Component: DOM: Mozilla Extensions → DOM
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.