Closed
Bug 635829
Opened 14 years ago
Closed 7 years ago
Fix callingScript -> filename in error messages and jsdIScript objects
Categories
(Core :: XPConnect, defect)
Tracking
()
RESOLVED
INACTIVE
People
(Reporter: johnjbarton, Unassigned)
Details
(Whiteboard: [firebug-p2])
If you get this in the error console you can't view source; if you get this from jsd you can't debug it:
Error: swarm.bootstrap startup
Source File: resource://gre/modules/XPIProvider.jsm -> file:///C:/Users/johnjbarton/firebug/fbug/fbug/extensions/swarm/branches/swarm1.7/bootstrap.js
Line: 1
> Is there someone we can convince to stop doing this?
Boris:
Maybe. The prefixing is a security fix, because some parts of the JS engine just looked at the beginning of the script's filename to determine some security properties.
It may be that we no longer need this in the new wrapper setup. Please file a bug on xpconnect and make sure Blake is cced?
-Boris
P.S. The code that does this is in mozJSSubScriptLoader::LoadSubScript; look for 'prepend the filename with the filename of the calling script, and " -> "'
I can make a test case by calling Cu.reportError() in bootstrap.js FF4.0.
| Reporter | ||
Updated•14 years ago
|
Whiteboard: [firebug-p2]
Comment 1•7 years ago
|
||
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INACTIVE
You need to log in
before you can comment on or make changes to this bug.
Description
•