[DevTools Bug]: sayHelloToBackendManager
continuously and pointlessly polls on every page
#27992
Labels
Component: Developer Tools
Status: Unconfirmed
A potential issue that we haven't yet confirmed as a bug
Type: Bug
Website or app
(all sites)
Repro steps
From any page:
Since there isn't a place to actually describe the bug, i'll put it here:
sayHelloToBackendManager
is set to poll here untilbackendInitialized
istrue
:react/packages/react-devtools-extensions/src/contentScripts/proxy.js
Lines 17 to 23 in b300304
The polling message has a source
react-devtools-content-script
:react/packages/react-devtools-extensions/src/contentScripts/proxy.js
Line 41 in b300304
The switch to set
backendInitialized = true
checks for the message sourcereact-devtools-bridge
:react/packages/react-devtools-extensions/src/contentScripts/proxy.js
Lines 65 to 66 in b300304
the
react-devtools-bridge
sourced message is sent from the backend by whatever invokes this:react/packages/react-devtools-extensions/src/contentScripts/backendManager.js
Line 127 in b300304
but the
handleMessageFromPage
function returns if theevent.source
isn't thewindow
object of the page. Presumably the backend does not have the same window object as the page, or else usingpostMessage()
would be pointless:react/packages/react-devtools-extensions/src/contentScripts/proxy.js
Line 59 in b300304
The
'react-devtools-bridge'
message never flipsbackendInitialized = true
, so the polling never terminates.This is causing the bitwarden ppl to get a decent amount of heat, and it's actually devtools causing the problem - bitwarden/clients#7575
How often does this bug happen?
Every time
DevTools package (automated)
No response
DevTools version (automated)
No response
Error message (automated)
No response
Error call stack (automated)
No response
Error component stack (automated)
No response
GitHub query string (automated)
No response
The text was updated successfully, but these errors were encountered: