editor/libeditor/crashtests/1393171.html
author Tim Huang <tihuang@mozilla.com>
Tue, 16 Aug 2022 12:40:10 +0000
changeset 627317 90f3275f3489033a72d69c9fbc89961c22ea0ad5
parent 385832 1d25638f204d30d3e1d23f93cfea93c65fc5e70f
permissions -rw-r--r--
Bug 1746349 - Add a test to verify that the window.name won't reset if document.domain was set. r=smaug This patch adds a test in the web-platform test clear-window-name.https.html. The test will load the sub domain and set the document.domain to the parent domain. And verify that the window.name won't be reset after navigating to the sub domain. Depends on D143994 Differential Revision: https://phabricator.services.mozilla.com/D154786

<script>
window.onload=function(){
  window.getSelection().addRange(document.createRange());
  document.getElementById('a').appendChild(document.createElement('option'));
  window.getSelection().modify('extend','backward','lineboundary');
}
</script>
<div></div>
<textarea autofocus='true'></textarea>
<del id='a'>