Bug 1227206 - Location.assign and Location.replace should use USVStrings instead DOMStrings, r=bz
authorAndrea Marchesini <amarchesini@mozilla.com>
Mon, 23 Nov 2015 20:05:26 +0000
changeset 295314 adc09292d0240b3e5a39e633106545cd00364f4e
parent 295313 058e26487efa4bac4d6dd2b5d04e1168f14c735a
child 295315 50813b4c64c1355c895a78b372681c38a9391303
push id5513
push userraliiev@mozilla.com
push dateMon, 25 Jan 2016 13:55:34 +0000
treeherdermozilla-esr52@5ee97dd05b5c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs1227206
milestone45.0a1
Bug 1227206 - Location.assign and Location.replace should use USVStrings instead DOMStrings, r=bz
dom/webidl/Location.webidl
--- a/dom/webidl/Location.webidl
+++ b/dom/webidl/Location.webidl
@@ -35,19 +35,19 @@ interface Location {
   [Throws]
            attribute USVString pathname;
   [Throws]
            attribute USVString search;
   [Throws]
            attribute USVString hash;
 
   [Throws, UnsafeInPrerendering]
-  void assign(DOMString url);
+  void assign(USVString url);
 
   [Throws, CrossOriginCallable, UnsafeInPrerendering]
-  void replace(DOMString url);
+  void replace(USVString url);
 
   // XXXbz there is no forceget argument in the spec!  See bug 1037721.
   [Throws, UnsafeInPrerendering]
   void reload(optional boolean forceget = false);
 
   // Bug 1085214 [SameObject] readonly attribute USVString[] ancestorOrigins;
 };