Closed
Description
React version: all
Steps To Reproduce
- Visit a site that uses
Feature-Policy: sync-xhr 'none'
and has the profiling build of react enabled - Attempt to use the "reload and start profiling" feature of devtools
- The xhr request will fail on reload because it attempts to make a synchronous XHR call. The profiling tab will be stuck in "press record to stop recording" state. Devtools will now fail to load on all subsequent refreshes unless the developer clears session storage, because it keeps trying and failing to make that XHR request.
The current behavior
see 3.
above
The expected behavior
Ideally, this feature would not depend on synchronous XHR to function. Browsers are deprecating it and sites are blocking it via Feature-Policy
due to third-party javascript abusing it.
In its current state, the feature should fail more gracefully when the XHR is blocked due to feature policy or in the future when browsers start blocking it by default.