Chrome Version: (copy from chrome://version)
OS: (e.g. Win7, OSX 10.9.5, etc...)
What steps will reproduce the problem?
(1) Open the following URL:
data:text/html,<script>getSelection().extend(document.currentScript, 0)</script>
(2) Open DevTools, and show Console
What is the expected result?
The console contains an exception message about an InvalidStateError
What happens instead?
Nothing.
Please use labels and text to provide additional information.
Firefox correctly throws an InvalidStateError.
https://www.w3.org/TR/selection-api/#dom-selection-extend
> If the context object is empty, throw an InvalidStateError exception and abort these steps.
For graphics-related bugs, please copy/paste the contents of the about:gpu
page at the end of this report.
Comment 1 by bugdroid1@chromium.org
, Feb 9 2017