DevTools
DevTools copied to clipboard
JSON Viewer - window.getSelection() not returning full text selection for browser extension
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