|
1 <?xml version="1.0"?> |
|
2 <?xml-stylesheet type="text/css" href="chrome://global/skin"?> |
|
3 <?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" |
|
4 type="text/css"?> |
|
5 <!-- |
|
6 https://bugzilla.mozilla.org/show_bug.cgi?id=514660 |
|
7 --> |
|
8 <window title="Mozilla Bug 504311" |
|
9 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" |
|
10 onload="doTest()"> |
|
11 <script type="application/javascript" |
|
12 src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script> |
|
13 <body xmlns="http://www.w3.org/1999/xhtml"> |
|
14 <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=514660" |
|
15 target="_blank">Mozilla Bug 514660</a> |
|
16 <textarea></textarea> |
|
17 </body> |
|
18 <!-- test code goes here --> |
|
19 <script type="application/javascript"> |
|
20 <![CDATA[ |
|
21 SimpleTest.waitForExplicitFinish(); |
|
22 |
|
23 function doTest() |
|
24 { |
|
25 var viewer = window |
|
26 .QueryInterface(Components.interfaces.nsIInterfaceRequestor) |
|
27 .getInterface(Components.interfaces.nsIWebNavigation) |
|
28 .QueryInterface(Components.interfaces.nsIDocShell) |
|
29 .contentViewer |
|
30 .QueryInterface(Components.interfaces.nsIMarkupDocumentViewer); |
|
31 viewer.authorStyleDisabled = true; |
|
32 |
|
33 document.documentElement.getBoundingClientRect(); |
|
34 ok(true, "Didn't crash"); |
|
35 |
|
36 viewer.authorStyleDisabled = false; |
|
37 |
|
38 SimpleTest.finish(); |
|
39 } |
|
40 ]]></script> |
|
41 </window> |