DevTools icon indicating copy to clipboard operation
DevTools copied to clipboard

JSON Viewer - window.getSelection() not returning full text selection for browser extension

Open netbroom opened this issue 9 months ago • 1 comments

For the JSON viewer, window.getSelection() only returns what is in the user's viewport if a whole JSON document is selected. This is causing problems for our browser extension.

I understand that browser extensions do not have access to the page's JS code so even if window.getSelection() were to be overridden, extensions would not have access.

Copy + paste still works fine if performed by the user, so I'm assuming there is already some interception/override of selection APIs.

AB#51282586

netbroom avatar May 20 '24 10:05 netbroom