Bug 1228702. Don't expose the 'location' property of Exception/DOMException on workers. r=bholley

This commit is contained in:
Boris Zbarsky 2015-12-02 13:52:59 -05:00
parent cd5ac03ace
commit 49fb3ecd4e

View File

@ -50,12 +50,13 @@ interface ExceptionMembers
// A stack trace, if available. nsIStackFrame does not have classinfo so
// this was only ever usefully available to chrome JS.
[ChromeOnly]
[ChromeOnly, Exposed=Window]
readonly attribute StackFrame? location;
// An inner exception that triggered this, if available.
readonly attribute nsISupports? inner;
// Arbitary data for the implementation.
[Exposed=Window]
readonly attribute nsISupports? data;
// Formatted exception stack
@ -63,7 +64,7 @@ interface ExceptionMembers
readonly attribute DOMString stack;
};
[NoInterfaceObject]
[NoInterfaceObject, Exposed=(Window,Worker)]
interface Exception {
// A generic formatter - make it suitable to print, etc.
stringifier;