mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 22:55:23 +00:00
4cb8a540a7
This fixes an unresponsive script dialog error for Etherpad pages (possibly among other websites).
18 lines
390 B
HTML
18 lines
390 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<body>
|
|
<iframe></iframe>
|
|
</body>
|
|
<script>
|
|
onload = function() {
|
|
var i = document.querySelector("iframe");
|
|
var doc = i.contentDocument;
|
|
doc.body.appendChild(doc.createTextNode("foo"));
|
|
doc.designMode = "on";
|
|
while (doc.body.firstChild) {
|
|
doc.body.removeChild(doc.body.firstChild);
|
|
}
|
|
};
|
|
</script>
|
|
</html>
|