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
This commit is contained in:
Makoto Kato 2018-12-18 15:09:52 +09:00
parent 1052d6ee13
commit 1c2f8f57a2
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,12 @@
<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>

View File

@ -101,6 +101,7 @@ load 1423767.html
needs-focus load 1423776.html
needs-focus load 1424450.html
load 1425091.html
load 1441619.html
load 1443664.html
skip-if(Android) needs-focus load 1444630.html
load 1446451.html