gecko-dev/editor/libeditor/crashtests/1441619.html
Makoto Kato 1c2f8f57a2 Bug 1441619 - Add crashtest. r=masayuki
Summary:
The latest version of Gecko doesn't crash by this HTML, but I would like to add
this for the future.

Bug #: 1441619

Differential Revision: https://phabricator.services.mozilla.com/D14846

--HG--
extra : rebase_source : 5633e508d1c1f405465857a71f7c544fbb3782e8
2018-12-18 15:09:52 +09:00

13 lines
430 B
HTML

<html>
<head>
<script>
try { o1 = window.getSelection() } catch (e) {}
try { o2 = document.createRange() } catch (e) {}
try { document.head.replaceWith('', document.documentElement) } catch (e) {}
try { o1.addRange(o2) } catch (e) {}
try { document.designMode = 'on' } catch (e) {}
try { o1.focusNode.execCommand('justifyleft', false, null) } catch (e) {}
</script>
</head>
</html>