Bug 1382717 - Convert test test_ncr_fallback.html to comply with new data: URI inheritance model. r=smaug
authorChristoph Kerschbaumer <ckerschb@christophkerschbaumer.com>
Thu, 20 Jul 2017 18:41:32 +0200
changeset 418706 6005f81525769a952b8005d5494e619d2d69efb4
parent 418705 f4378a5e6c7ff9e7b00c755c3018f4d5bb844e94
child 418707 fef3121e0dd2874b6dec7e7073ceabef634ead23
push id7566
push usermtabara@mozilla.com
push dateWed, 02 Aug 2017 08:25:16 +0000
treeherdermozilla-beta@86913f512c3c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1382717
milestone56.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 1382717 - Convert test test_ncr_fallback.html to comply with new data: URI inheritance model. r=smaug
intl/uconv/tests/test_ncr_fallback.html
--- a/intl/uconv/tests/test_ncr_fallback.html
+++ b/intl/uconv/tests/test_ncr_fallback.html
@@ -33,29 +33,29 @@ var expectations = [
   "%1B%24B%22%29%1B%28B%26%23128169%3B",
 ];
 
 var i = 0;
 
 function step() {
   var f = document.getElementsByTagName("iframe")[i];
   f.onload = function() {
-    var href = f.contentWindow.location.href;
+    var href = SpecialPowers.wrap(f).contentWindow.location.href;
     var index = href.indexOf("?foo=");
     var actual = href.substring(index + 5);
     var expected = expectations[i];
     is(actual, expected, "Should have gotten the expected encode.");
     i++
     if (i == document.getElementsByTagName("iframe").length) {
       SimpleTest.finish();
     } else {
       step();
     }    
   }
-  f.contentDocument.forms[0].submit();
+  SpecialPowers.wrap(f).contentDocument.forms[0].submit();
 }
 </script>
 </pre>
 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1202366">Mozilla Bug 1202366</a>
 <p id="display"></p>
 <div id="content" style="display: none">
 <iframe src="data:text/html;charset=big5,<script>document.write('<form><input name=foo value=\uD83D></form>');</script>"></iframe>
 <iframe src="data:text/html;charset=big5,<script>document.write('<form><input name=foo value=a\uD83D></form>');</script>"></iframe>