From 49fb3ecd4e06f4af166ad8a6476e0ef7ed111fc9 Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Wed, 2 Dec 2015 13:52:59 -0500 Subject: [PATCH] Bug 1228702. Don't expose the 'location' property of Exception/DOMException on workers. r=bholley --- dom/webidl/DOMException.webidl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dom/webidl/DOMException.webidl b/dom/webidl/DOMException.webidl index 7ab85a2690fe..9e3e5bc74762 100644 --- a/dom/webidl/DOMException.webidl +++ b/dom/webidl/DOMException.webidl @@ -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;