91e2ddbda9
Expose DEV-mode warnings in devtools UI ( #20463 )
...
Co-authored-by: Brian Vaughn <[email protected] >
2020-12-22 11:09:29 -05:00
Saikat Guha and GitHub
098d4ecc68
DevTools: Handle restricted browser pages properly like new tab page, extensions page etc(only chrome and edge for now) ( #20023 )
2020-10-14 13:59:05 -04:00
Saikat Guha and GitHub
10d7a4905d
DevTools: Remove ReactJS.org version check "cheat" ( #19939 )
...
Remove dead code as facebook.github.io/react always redirects to reactjs.org, which has prod version of react. so removing the "cheat" (#19939 )
2020-10-01 10:16:50 -04:00
Brian Vaughn and GitHub
7b32e7cdfc
Fix emoji character displayed in Chrome extension ( #19603 )
2020-08-13 11:16:35 -04:00
Pascal Fong Kye and GitHub
8fa4975389
DevTools bug fix: Proxied methods should be safely dehydrated for display
2020-08-12 12:15:53 -04:00
Ricky and GitHub
7c9c5ff51c
Fix spelling errors and typos ( #19138 )
2020-06-15 19:59:44 -04:00
Brian Vaughn and GitHub
9b33a52ace
DevTools: Add break-on-warn feature ( #19048 )
...
This commit adds a new tab to the Settings modal: Debugging
This new tab has the append component stacks feature and a new one: break on warn
This new feature adds a debugger statement into the console override
2020-05-29 14:34:43 -07:00
Brian Vaughn and GitHub
dbe7c18b21
Updated DevTools unstable_ API references ( #18847 )
2020-05-06 11:14:30 -07:00
Sebastian Markbåge and GitHub
b4dbce0e7f
Enable prefer-const lint rules ( #18451 )
...
* Enable prefer-const rule
Stylistically I don't like this but Closure Compiler takes advantage of
this information.
* Auto-fix lints
* Manually fix the remaining callsites
2020-04-01 12:35:52 -07:00
Mark Huang and GitHub
1addaf599e
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 and GitHub
b1f09393de
Remove root.unmount() callback from DevTools code ( #17939 )
2020-01-30 09:36:43 -08:00
Brian Vaughn and GitHub
017245247c
Re-enabled DevTools context menu option in Firefox to inspect function prop source ( #17838 )
2020-01-14 14:00:28 -08:00
Brian Vaughn and GitHub
39dc5ee573
Renamed "backend.js" to "react_devtools_backend.js" ( #17790 )
2020-01-06 09:29:20 -08:00
Brian Vaughn and GitHub
cfbc83cf06
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 and GitHub
3bca7c17af
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
Brian Vaughn and GitHub
330bd02c7c
Disable "copy to clipboard" and "go to definition" context menu options for Firefox addon ( #17668 )
2019-12-20 08:31:38 -08:00
Brian Vaughn and GitHub
8f25f2637f
DevTools context menu ( #17608 )
...
* Added rudimentary context menu hook and menu UI
* Added backend support for copying a value at a specific path for the inspected element
* Added backend support for storing a value (at a specified path) as a global variable
* Added special casing to enable copying undefined/unserializable values to the clipboard
* Added copy and store-as-global context menu options to selected element props panel
* Store global variables separately, with auto-incremented name (like browsers do)
* Added tests for new copy and store-as-global backend functions
* Fixed some ownerDocument/contentWindow edge cases
* Refactored context menu to support dynamic options
Used this mechanism to add a conditional menu option for inspecting the current value (if it's a function)
* Renamed "safeSerialize" to "serializeToString" and added inline comment
2019-12-18 12:12:34 -08:00
Sebastian Markbåge and GitHub
d3710442de
Remove unstable_ prefix in various internal uses ( #17146 )
...
* Rename unstable_createRoot in DevTools
* Rename createSyncRoot in warning
2019-10-18 17:18:10 -07:00
Brian Vaughn and GitHub
f4b1b9616a
Added trace updates feature (DOM only) ( #16989 )
...
* Added trace updates feature (DOM only)
* Updated DevTools CHANGELOG
2019-10-03 11:07:18 -07:00
David Huang and Brian Vaughn
374cd7c643
[DevTools] postMessage target origin needs to be '*' for local files ( #16953 )
2019-09-30 08:29:18 -07:00
Brian Vaughn and GitHub
df2e7d2219
DevTools shows unsupported renderer version dialog ( #16897 )
...
* DevTools shows unsupported renderer version dialog
* Optimistic CHANGELOG udpate
2019-09-26 08:41:46 -07:00
David Huang and Dan Abramov
37c82431dc
Moving backend injection to the content script ( #16900 )
2019-09-26 14:03:07 +01:00
Brian Vaughn and GitHub
06bda9938e
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
Dan Abramov and Brian Vaughn
cff975b2c9
[DevTools] Remove Welcome dialog ( #16834 )
2019-09-19 08:41:18 -07:00
Anton Korzunov and Brian Vaughn
3c397e6334
fix: inspect ClassComponent.render instead of constructor, fixes #16749 ( #16759 )
2019-09-12 08:32:42 -07:00
Brian Vaughn
4ac14823b1
Removed DT inject() script since it's no longer being used
2019-09-11 09:51:24 -07:00
Brian Vaughn and GitHub
25865dac09
Moved inline comment.
2019-09-11 09:30:57 -07:00
Stephanie Ding
942ff0efeb
Lint fixes
2019-09-11 08:11:14 -07:00
Stephanie Ding
7b90dcccd1
Removed done(), added some comments explaining the change
2019-09-11 08:05:27 -07:00
Stephanie Ding
343d0f111c
remove ability to inject arbitrary scripts
2019-09-10 18:06:23 -07:00
Stephanie Ding
fe484d055c
Formatting changes
2019-09-10 17:46:29 -07:00
Stephanie Ding
28817d9244
Moved injection logic to content script
2019-09-10 17:45:27 -07:00
Stephanie Ding
bf1892acc0
Moved backend injection logic to content script
2019-09-10 17:34:12 -07:00
Stephanie Ding
8eaa761b45
Moved backend injection logic to content script
2019-09-10 17:22:04 -07:00
Brian Vaughn
7abec59c5b
Merged changes from 4.0.5 -> 4.0.6 from DevTools fork
2019-08-26 10:12:18 -07:00
Brian Vaughn
d96b8a5606
Merged changes from 4.0.0 -> 4.0.5 from DevTools fork
2019-08-20 11:34:51 -07:00
Brian Vaughn
510cad1460
Fixed web extensions
2019-08-14 10:33:33 -07:00
Brian Vaughn
0fdcfc98b1
Fixed a bunch of Lint issues
2019-08-13 21:59:07 -07:00