Open Bug 395625 Opened 17 years ago Updated 2 years ago

Too many error messages for local file XHR reading directory listing

Categories

(Core :: Security, defect)

x86
Windows XP
defect

Tracking

()

People

(Reporter: BijuMailList, Assigned: dveditz)

References

Details

Attachments

(2 files)

Attached image too_many_error.png
after fix of Bug 209234, Bug 230606 
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a8pre) 
Gecko/2007090905 Minefield/3.0a8pre

See attachment: too_many_error.png

It is the out put of executing "securitytest.html" 
(ie attachment 205693 [details], with little modification )

as well as following javascript

  var url = "file:///D:/work/eval_file";
  var a = new XMLHttpRequest();
  a.open("GET", url, false);
  a.send("");
  a.responseText



Issue I
=======
Why there is 3 times (that too warning)
  Security Error: Content at file:///D:/work/eval.html may not load data from file:///D:/work/eval_file.


Issue II
========
Why there is 
  
  Error: syntax error
  Source File: file:///D:/work/eval_file
  Line: 1, Column: 1
  Source Code:
  300: file:///D:/work/eval_file/


Issue III
=========
Why there is also an ugly

message = Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIXMLHttpRequest.send]
result = 2147500037
name = NS_ERROR_FAILURE
filename = file:///D:/work/eval.html
lineNumber = 78
columnNumber = 0

PS: please reclassify if needed...
I bet a lot of the extra error messages are due to the "cross-site XMLHttpRequest" feature.  Bug 394390 also mentions security errors being repeated 3 times.
Summary: To many error msg for local file XHR reading directory listing → Too many error messages for local file XHR reading directory listing
Attached image no_line_number.png
error console for "readother.html" (attachment 125538 [details])

also for DOM read there is no line number listed in ERROR MESSAGE
Severity: minor → S4
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: