Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[tool][web] Makes flutter.js more G3 friendly. #120504

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

Merged
merged 5 commits into from
Feb 21, 2023

Conversation

ditman
Copy link
Member

@ditman ditman commented Feb 11, 2023

Description

This PR makes the flutter.js loading process slightly more friendly with google's internal configuration by:

  • Relaxing the trusted types validation of the flutter loader, so files with different naming conventions can be used (both for the main.dart.js and flutter_service_worker.js files)
  • Nagging users less about the serviceWorker configuration being null.
    • Only prints a warning if serviceWorker is not available, and points users to Secure Context documentation if needed.
    • (Null configuration is still output as a low level debug.info message, which is often filtered out by browsers)

(FYI: @jacobsimionato)

Related issues

Fixes #120483
Fixes #116153

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@ditman ditman requested a review from mdebbar February 11, 2023 00:46
@flutter-dashboard flutter-dashboard bot added the tool Affects the "flutter" command-line tool. See also t: labels. label Feb 11, 2023
Copy link
Contributor

@mdebbar mdebbar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ditman
Copy link
Member Author

ditman commented Feb 11, 2023

LGTM!

Thanks for the super fast review @mdebbar, I'll autosubmit this on monday though :P

@ditman ditman added the e: flutter.js Issues with Flutter web custom initialization through JS APIs label Feb 11, 2023
@ditman ditman self-assigned this Feb 13, 2023
@ditman ditman force-pushed the make-flutterjs-more-g3-friendly branch from 75b0772 to b36832a Compare February 14, 2023 01:17
@ditman
Copy link
Member Author

ditman commented Feb 14, 2023

It seems that the Google Testing check on this PR is failing because @mdebbar's reland PR hasn't relanded into G3 yet (cl/508823833?) Trying to rebase, see if the tests refresh, otherwise I might have to wait a few days until the Google roller catches up :/

@mdebbar
Copy link
Contributor

mdebbar commented Feb 17, 2023

@ditman my PR should've landed into g3 today. Please try again and see if it works now.

@ditman ditman force-pushed the make-flutterjs-more-g3-friendly branch from b36832a to caffbfe Compare February 18, 2023 02:28
@ditman
Copy link
Member Author

ditman commented Feb 18, 2023

(Rebased with the latest master)

@ditman
Copy link
Member Author

ditman commented Feb 18, 2023

The internal CL still has the wrong description, but the affected files now exactly match this PR, so I think the Google Testing step is going to work. Thanks @mdebbar!

@ditman ditman added the autosubmit Merge PR when tree becomes green via auto submit App label Feb 18, 2023
@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Feb 18, 2023
@auto-submit
Copy link
Contributor

auto-submit bot commented Feb 18, 2023

auto label is removed for flutter/flutter, pr: 120504, due to - The status or check suite Mac plugin_dependencies_test has failed. Please fix the issues identified (or deflake) before re-applying this label.

@ditman ditman added the autosubmit Merge PR when tree becomes green via auto submit App label Feb 21, 2023
@ditman
Copy link
Member Author

ditman commented Feb 21, 2023

Please, try again my dear bot.

engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 22, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 23, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 23, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 23, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 24, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 24, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 24, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 24, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 24, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 24, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 25, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 25, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 26, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 26, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 26, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 27, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 27, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 27, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 27, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 27, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 27, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 27, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 10, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App e: flutter.js Issues with Flutter web custom initialization through JS APIs tool Affects the "flutter" command-line tool. See also t: labels.
Projects
None yet
2 participants