summaryrefslogtreecommitdiffstats
path: root/dom/xbl/crashtests/397596-1.xhtml
diff options
context:
space:
mode:
Diffstat (limited to 'dom/xbl/crashtests/397596-1.xhtml')
-rw-r--r--dom/xbl/crashtests/397596-1.xhtml29
1 files changed, 29 insertions, 0 deletions
diff --git a/dom/xbl/crashtests/397596-1.xhtml b/dom/xbl/crashtests/397596-1.xhtml
new file mode 100644
index 000000000..c7b562b52
--- /dev/null
+++ b/dom/xbl/crashtests/397596-1.xhtml
@@ -0,0 +1,29 @@
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>Testcase bug - 100% cpu usage with binding setting position: fixed in constructor</title>
+
+<bindings xmlns="http://www.mozilla.org/xbl">
+<binding id="b" inheritstyle="false">
+<content>
+<div xmlns="http://www.w3.org/1999/xhtml" style=" -moz-binding: url(#a);"/>
+<children/>
+</content>
+</binding>
+
+<binding id="a">
+<implementation>
+<constructor>
+ this.style.position='fixed';
+</constructor>
+</implementation>
+<content>
+<children xmlns="http://www.mozilla.org/xbl"/>
+</content>
+</binding>
+</bindings>
+
+</head>
+<body>
+<span style="-moz-binding:url();"></span>
+</body>
+</html> \ No newline at end of file