Bug 1448398 followup to fix Windows-only test. r=kmag pending
authorBoris Zbarsky <bzbarsky@mit.edu>
Mon, 26 Mar 2018 16:42:01 -0400
changeset 410065 282b7f33195ef741c016362c1b73e6b4674c4c3a
parent 410064 1023e033bfa69b242b61ab0fb865df85f679d07f
child 410066 463447801c4cede4d4210458fffd2e9f7de83b24
push id33717
push userbtara@mozilla.com
push dateTue, 27 Mar 2018 09:13:26 +0000
treeherdermozilla-central@40ef480efa7a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskmag
bugs1448398
milestone61.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 1448398 followup to fix Windows-only test. r=kmag pending This is a chrome test, so it doesn't need to play SpecialPowers games. MozReview-Commit-ID: 8DG4lZ5OfbE
widget/tests/test_bug565392.html
--- a/widget/tests/test_bug565392.html
+++ b/widget/tests/test_bug565392.html
@@ -14,26 +14,24 @@ https://bugzilla.mozilla.org/show_bug.cg
 <div id="content" style="display: none">
   
 </div>
 <pre id="test">
 <script type="application/javascript">
 
 /** Test for Bug 565392 **/
 
-  const Cc = SpecialPowers.Cc;
-  const Ci = SpecialPowers.Ci;
   var ds = Cc["@mozilla.org/file/directory_service;1"]
              .getService(Ci.nsIProperties);
   var dir1 = ds.get("ProfD", Ci.nsIFile);
   var clipboard = Cc["@mozilla.org/widget/clipboard;1"]
                     .getService(Ci.nsIClipboard);
   
   function getLoadContext() {
-    return SpecialPowers.wrap(window).QueryInterface(Ci.nsIInterfaceRequestor)
+    return window.QueryInterface(Ci.nsIInterfaceRequestor)
                  .getInterface(Ci.nsIWebNavigation)
                  .QueryInterface(Ci.nsILoadContext);
   }
 
   function getTransferableFile(file) {
     var transferable = Cc['@mozilla.org/widget/transferable;1']
                          .createInstance(Ci.nsITransferable);
     transferable.init(getLoadContext());