Bug 1012944 - Hide window.home/back/forward from web pages, since those are non-standard and cause pages to not set up their own thins with the same names. r=peterv, a=sledru
authorBoris Zbarsky <bzbarsky@mit.edu>
Tue, 20 May 2014 16:07:17 -0400
changeset 192809 efe8c330b742bac340a078bca288f6b0b7b893df
parent 192808 8d43d8f1a99eda652f113f6aa7b043922acecb42
child 192810 6c7ac16fbaaaf3f6302b92fc69aef1bb1cdaeabb
push id5915
push userryanvm@gmail.com
push dateWed, 21 May 2014 13:17:38 +0000
treeherdermozilla-aurora@6c7ac16fbaaa [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspeterv, sledru
bugs1012944
milestone31.0a2
Bug 1012944 - Hide window.home/back/forward from web pages, since those are non-standard and cause pages to not set up their own thins with the same names. r=peterv, a=sledru
dom/webidl/Window.webidl
--- a/dom/webidl/Window.webidl
+++ b/dom/webidl/Window.webidl
@@ -278,19 +278,19 @@ partial interface Window {
 
   /* The maximum offset that the window can be scrolled to
      (i.e., the document width/height minus the scrollport width/height) */
   [Replaceable, Throws] readonly attribute long   scrollMaxX;
   [Replaceable, Throws] readonly attribute long   scrollMaxY;
 
   [Throws] attribute boolean                            fullScreen;
 
-  [Throws] void             back();
-  [Throws] void             forward();
-  [Throws] void             home();
+  [Throws, ChromeOnly] void             back();
+  [Throws, ChromeOnly] void             forward();
+  [Throws, ChromeOnly] void             home();
 
   // XXX Should this be in nsIDOMChromeWindow?
   void                      updateCommands(DOMString action);
 
   /* Find in page.
    * @param str: the search pattern
    * @param caseSensitive: is the search caseSensitive
    * @param backwards: should we search backwards