Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure sync-xhr is allowed before reload and profile #20879

Merged
merged 13 commits into from Mar 11, 2021

Conversation

@ChrisDobby
Copy link
Contributor

@ChrisDobby ChrisDobby commented Feb 25, 2021

Summary

Fixes #20806
If document.featurePolicy.allowsFeature('sync-xhr') returns false a message is displayed when the user first clicks the 'reload and profile' button and the button is then disabled.

Test Plan

Screen.Recording.2021-02-25.at.10.09.59.mp4
@sizebot
Copy link

@sizebot sizebot commented Feb 25, 2021

Comparing: 9209c30...2310a7d

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.min.js = 122.55 kB 122.55 kB = 39.48 kB 39.48 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 129.13 kB 129.13 kB = 41.53 kB 41.53 kB
facebook-www/ReactDOM-prod.classic.js = 405.91 kB 405.91 kB = 75.35 kB 75.35 kB
facebook-www/ReactDOM-prod.modern.js = 394.26 kB 394.26 kB = 73.45 kB 73.45 kB
facebook-www/ReactDOMForked-prod.classic.js = 405.92 kB 405.92 kB = 75.36 kB 75.36 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against 2310a7d

ChrisDobby added 2 commits Feb 25, 2021
@bvaughn bvaughn self-assigned this Feb 25, 2021
ChrisDobby and others added 2 commits Mar 9, 2021
bvaughn added 5 commits Mar 11, 2021
…Supported
@bvaughn
Copy link
Contributor

@bvaughn bvaughn commented Mar 11, 2021

Hm. Why is Flow upset...

Edit Weird. I'm using GitHub's inline editor to make changes and it looks like it screwed up a change to agent somehow.

bvaughn added 2 commits Mar 11, 2021
GitHub's inline editor seems to have messed up the previous inline edit.
We're no longer emitting an event for that.
Copy link
Contributor

@bvaughn bvaughn left a comment

Sorry for the noise. I should have just made my edits locally instead of using GH for it. Seemed easier at first but ended up being more work.

Thanks for doing this!

@bvaughn bvaughn changed the title ensure sync-xhr is allowed before reload and profile Ensure sync-xhr is allowed before reload and profile Mar 11, 2021
@bvaughn bvaughn merged commit bd245c1 into facebook:master Mar 11, 2021
35 checks passed
35 checks passed
Facebook CLA Check Contributor License Agreement is valid!
Details
ci/circleci: RELEASE_CHANNEL_stable_yarn_build Your tests passed on CircleCI!
Details
ci/circleci: RELEASE_CHANNEL_stable_yarn_lint_build Your tests passed on CircleCI!
Details
ci/circleci: RELEASE_CHANNEL_stable_yarn_test_dom_fixtures Your tests passed on CircleCI!
Details
ci/circleci: build_devtools_and_process_artifacts Your tests passed on CircleCI!
Details
ci/circleci: build_devtools_scheduling_profiler Your tests passed on CircleCI!
Details
ci/circleci: get_base_build Your tests passed on CircleCI!
Details
ci/circleci: process_artifacts_combined Your tests passed on CircleCI!
Details
ci/circleci: setup Your tests passed on CircleCI!
Details
ci/circleci: sizebot Your tests passed on CircleCI!
Details
ci/circleci: sync_reconciler_forks Your tests passed on CircleCI!
Details
ci/circleci: yarn_build Your tests passed on CircleCI!
Details
ci/circleci: yarn_build_combined Your tests passed on CircleCI!
Details
ci/circleci: yarn_flow Your tests passed on CircleCI!
Details
ci/circleci: yarn_lint Your tests passed on CircleCI!
Details
ci/circleci: yarn_lint_build Your tests passed on CircleCI!
Details
ci/circleci: yarn_test--r=experimental --env=development Your tests passed on CircleCI!
Details
ci/circleci: yarn_test--r=experimental --env=production Your tests passed on CircleCI!
Details
ci/circleci: yarn_test--r=stable --env=development Your tests passed on CircleCI!
Details
ci/circleci: yarn_test--r=stable --env=development --persistent Your tests passed on CircleCI!
Details
ci/circleci: yarn_test--r=stable --env=production Your tests passed on CircleCI!
Details
ci/circleci: yarn_test--r=www-classic --env=development Your tests passed on CircleCI!
Details
ci/circleci: yarn_test--r=www-classic --env=development --variant Your tests passed on CircleCI!
Details
ci/circleci: yarn_test--r=www-classic --env=production Your tests passed on CircleCI!
Details
ci/circleci: yarn_test--r=www-classic --env=production --variant Your tests passed on CircleCI!
Details
ci/circleci: yarn_test--r=www-modern --env=development Your tests passed on CircleCI!
Details
ci/circleci: yarn_test--r=www-modern --env=development --variant Your tests passed on CircleCI!
Details
ci/circleci: yarn_test--r=www-modern --env=production Your tests passed on CircleCI!
Details
ci/circleci: yarn_test--r=www-modern --env=production --variant Your tests passed on CircleCI!
Details
ci/circleci: yarn_test_build---project=devtools -r=experimental Your tests passed on CircleCI!
Details
ci/circleci: yarn_test_build--r=experimental --env=development Your tests passed on CircleCI!
Details
ci/circleci: yarn_test_build--r=experimental --env=production Your tests passed on CircleCI!
Details
ci/circleci: yarn_test_build--r=stable --env=development Your tests passed on CircleCI!
Details
ci/circleci: yarn_test_build--r=stable --env=production Your tests passed on CircleCI!
Details
ci/codesandbox Building packages succeeded.
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

4 participants