<commit_before><BODY></BODY>
<SCRIPT>
if (window.testRunner)
  testRunner.dumpAsText();
document.execCommand("Outdent", false, 262140);
document.designMode = "on";
document.execCommand("SelectAll", false, "https://www.example.com");
document.execCommand("insertimage", false, "data:image/png;base64,iVBORw0KGrkJggg==");
document.execCommand("selectall", false, NaN);
document.execCommand("strikethrough", false, "gopher://www.example.com");
document.execCommand("MoveWordForward", false, 4100);
document.execCommand("justifyfull", false, 4092);
document.execCommand("OverWrite", false, 4);
document.designMode = "off";
document.execCommand("outdent", false, 16391);
document.execCommand("paste", false, Infinity);
document.execCommand("decreasefontsize", false, 268435456);
document.execCommand("Undo", false, "data:text/html;charset=utf-8,%3C!DOCTYPE%20HTML%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20HTML%tle%3E%3C%2Fhead%3E%0D%0A%3Cbody%3E%3Ch1%3E42%3C%2Fh1%3E%3C%2Fbody%3E%0D%0A%3C%2Fhtml%3E%0D%0A");
document.designMode = "on";
document.execCommand("PasteAndMatchStyle", false, "<input type=subm\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\xa7\xa7\xa7\xa7,\' dialogHeight=`ssssssss\x06\x06\x06\x06\x06\x06\x06\x06\x06\x06\xba\xba` counterIncremen");
document.execCommand("InsertText", false, "ftp://www.example.com");
document.body.innerHTML='PASS';
</SCRIPT>
<commit_msg>This patch fixes flaky test editing/undo/orphaned-selection-crash-bug32823-2.html which does pasting from uninitialized clipboard, by populating clipboard in test script.<commit_after><BODY></BODY>
<SCRIPT>
if (window.testRunner)
  testRunner.dumpAsText();

// Initialize clipboard
document.body.innerHTML = '<input value=1>';
document.querySelector('input').focus();
document.execCommand('Copy');
document.body.innerHTML = '';

document.execCommand("Outdent", false, 262140);
document.designMode = "on";
document.execCommand("SelectAll", false, "https://www.example.com");
document.execCommand("insertimage", false, "data:image/png;base64,iVBORw0KGrkJggg==");
document.execCommand("selectall", false, NaN);
document.execCommand("strikethrough", false, "gopher://www.example.com");
document.execCommand("MoveWordForward", false, 4100);
document.execCommand("justifyfull", false, 4092);
document.execCommand("OverWrite", false, 4);
document.designMode = "off";
document.execCommand("outdent", false, 16391);
document.execCommand("paste", false, Infinity);
document.execCommand("decreasefontsize", false, 268435456);
document.execCommand("Undo", false, "data:text/html;charset=utf-8,%3C!DOCTYPE%20HTML%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20HTML%tle%3E%3C%2Fhead%3E%0D%0A%3Cbody%3E%3Ch1%3E42%3C%2Fh1%3E%3C%2Fbody%3E%0D%0A%3C%2Fhtml%3E%0D%0A");
document.designMode = "on";
document.execCommand("PasteAndMatchStyle", false, "<input type=subm\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\xa7\xa7\xa7\xa7,\' dialogHeight=`ssssssss\x06\x06\x06\x06\x06\x06\x06\x06\x06\x06\xba\xba` counterIncremen");
document.execCommand("InsertText", false, "ftp://www.example.com");
document.body.innerHTML='PASS';
</SCRIPT>

{'fraction_non_alphanumeric': 0.18584356819650938, 'fraction_numerical': 0.06690368455074337, 'mean_word_length': 7.364864864864865, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 12, 'https://': 2, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3955927', 'n_tokens_mistral': 1287, 'n_tokens_neox': 1213, 'n_words': 141}