Bug 1228702. Don't expose the 'location' property of Exception/DOMException on workers. r=bholley
authorBoris Zbarsky <bzbarsky@mit.edu>
Wed, 02 Dec 2015 13:52:59 -0500
changeset 275320 87d9fe68abf24bd062bc8ef140c3fed161ec6182
parent 275319 269290441727275e48387abe813e473a25dd4d87
child 275321 932fcd51eacef36cc2b568d719f830f3f7b5b2c7
push id29752
push usercbook@mozilla.com
push dateThu, 03 Dec 2015 11:03:31 +0000
treeherdermozilla-central@85cf2e720a84 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbholley
bugs1228702
milestone45.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1228702. Don't expose the 'location' property of Exception/DOMException on workers. r=bholley
dom/webidl/DOMException.webidl
--- a/dom/webidl/DOMException.webidl
+++ b/dom/webidl/DOMException.webidl
@@ -45,30 +45,31 @@ interface ExceptionMembers
   // Valid line numbers begin at '1'. '0' indicates unknown.
   readonly attribute unsigned long           lineNumber;
   // Valid column numbers begin at 0. 
   // We don't have an unambiguous indicator for unknown.
   readonly attribute unsigned long           columnNumber;
 
   // 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
   [Throws, Replaceable]
   readonly attribute DOMString               stack;
 };
 
-[NoInterfaceObject]
+[NoInterfaceObject, Exposed=(Window,Worker)]
 interface Exception {
   // A generic formatter - make it suitable to print, etc.
   stringifier;
 };
 
 Exception implements ExceptionMembers;
 
 // XXXkhuey this is an 'exception', not an interface, but we don't have any