-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1949901 - Hide selection changes from web apps which are caused b…
…y the hacks of `HTMLEditor` r=m_kato The hacks are only for specific web apps. Therefore, unless they require to know the selection changes, we don't need to expose that. Differential Revision: https://phabricator.services.mozilla.com/D239835
- Loading branch information
1 parent
f087b2a
commit 8caf547
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
...g/web-platform/tests/editing/crashtests/selectall-and-move-editable-br-onselectstart.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<script> | ||
"use strict"; | ||
|
||
addEventListener("DOMContentLoaded", () => { | ||
document.addEventListener("selectstart", () => { | ||
window.find("A"); | ||
document.body.prepend(document.getElementById("br")); | ||
}); | ||
document.querySelector("picture").addEventListener("focusin", () => { | ||
document.body.prepend(document.getElementById("br")); | ||
}); | ||
document.execCommand("selectAll"); | ||
}, {once: true}); | ||
</script> | ||
</head> | ||
<body> | ||
A | ||
<picture> | ||
<keygen tabindex="-1" autofocus> | ||
<q contenteditable> | ||
A | ||
<br id="br"> | ||
<table></table> | ||
</q> | ||
</picture> | ||
</body> | ||
</html> |