Mark Huang
08c1f79e1e
Fix Cannot read property 'sub' of undefined when navigating to plain-text pages ( #17848 )
...
Update various parts of DevTools to account for the fact that the global "hook" might be undefined if DevTools didn't inject it (due to the page's `contentType`) it (due to the page's `contentType`)
2020-02-02 12:04:48 -08:00
Brian Vaughn
1c63b2e416
Renamed "backend.js" to "react_devtools_backend.js" ( #17790 )
2020-01-06 09:29:20 -08:00
Brian Vaughn
22ef96ae63
Devtools renable copy attr context menu for firefox ( #17740 )
...
* Use exportFunction() to share clipboard copy with JS running in document/page context.
* Remove no-longer-used option to disable copy operation.
2019-12-29 13:27:44 -08:00
Brian Vaughn
2b903da355
Make DevTools check document.contentType before injecting ( #17739 )
...
It should only inject the global hook into HTML documents. This will avoid breaking syntax highlighting for e.g. XML documents.
2019-12-29 13:02:50 -08:00
David Huang
49b0cb6db8
Moving backend injection to the content script ( #16900 )
2019-09-26 14:03:07 +01:00
Brian Vaughn
bce2ac63a9
Revert change to backend injection method from PR #16752 ( #16864 )
...
PR #16752 changed how we were injecting the backend script to be done by the content script in order to work around Trusted Type limitations with our previous approach. This may have caused a regression (see #16840 ) so I'm backing it out to verify.
2019-09-23 12:56:36 -07:00
Brian Vaughn
f09854a9e8
Moved inline comment.
2019-09-11 09:30:57 -07:00
Stephanie Ding
776d1c69b9
Lint fixes
2019-09-11 08:11:14 -07:00
Stephanie Ding
2e75000f40
Removed done(), added some comments explaining the change
2019-09-11 08:05:27 -07:00
Stephanie Ding
8a6cd3cd12
remove ability to inject arbitrary scripts
2019-09-10 18:06:23 -07:00
Stephanie Ding
d51f062d03
Formatting changes
2019-09-10 17:46:29 -07:00
Stephanie Ding
85c7211014
Moved injection logic to content script
2019-09-10 17:45:27 -07:00
Stephanie Ding
788036c7ed
Moved backend injection logic to content script
2019-09-10 17:34:12 -07:00
Stephanie Ding
c93038fabe
Moved backend injection logic to content script
2019-09-10 17:22:04 -07:00
Brian Vaughn
ac2e861fbe
Fixed a bunch of Lint issues
2019-08-13 21:59:07 -07:00