Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | <!DOCTYPE HTML> |
michael@0 | 2 | <html> |
michael@0 | 3 | <!-- |
michael@0 | 4 | https://bugzilla.mozilla.org/show_bug.cgi?id=466409 |
michael@0 | 5 | --> |
michael@0 | 6 | <head> |
michael@0 | 7 | <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
michael@0 | 8 | <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> |
michael@0 | 9 | </head> |
michael@0 | 10 | <body> |
michael@0 | 11 | <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=466409">Mozilla Bug 466409</a> |
michael@0 | 12 | <p id="display"></p> |
michael@0 | 13 | <div id="content" style="display: none"> |
michael@0 | 14 | <iframe id="testframe"></iframe> |
michael@0 | 15 | </div> |
michael@0 | 16 | <pre id="test"> |
michael@0 | 17 | <script class="testbody" type="text/javascript"> |
michael@0 | 18 | |
michael@0 | 19 | /** Test for Bug 466409 **/ |
michael@0 | 20 | |
michael@0 | 21 | |
michael@0 | 22 | function setUniversalDetector(detector) |
michael@0 | 23 | { |
michael@0 | 24 | var olddetector = SpecialPowers.getCharPref("intl.charset.detector"); |
michael@0 | 25 | SpecialPowers.setCharPref("intl.charset.detector", detector); |
michael@0 | 26 | return olddetector; |
michael@0 | 27 | } |
michael@0 | 28 | |
michael@0 | 29 | SimpleTest.waitForExplicitFinish(); |
michael@0 | 30 | var testframe = document.getElementById('testframe'); |
michael@0 | 31 | |
michael@0 | 32 | testframe.onload = function () |
michael@0 | 33 | { |
michael@0 | 34 | setUniversalDetector(olddetector); |
michael@0 | 35 | ok(true, "page loaded successfully"); |
michael@0 | 36 | SimpleTest.finish(); |
michael@0 | 37 | }; |
michael@0 | 38 | |
michael@0 | 39 | var olddetector = setUniversalDetector("universal_charset_detector"); |
michael@0 | 40 | testframe.src = "bug466409-page.html"; |
michael@0 | 41 | |
michael@0 | 42 | </script> |
michael@0 | 43 | </pre> |
michael@0 | 44 | </body> |
michael@0 | 45 | </html> |