Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@mdebbar
Copy link
Contributor

@mdebbar mdebbar commented Jan 12, 2024

  • Extracted ResourceManager out of FlutterViewEmbedder.
  • Extracted GlobalHtmlAttributes out of FlutterViewEmbedder.
  • Removed usages of:
    • FlutterViewEmbedder.reset().
    • flutterViewEmbedder.
    • ensureFlutterViewEmbedderInitialized.
  • Deleted FlutterViewEmbedder.

Fixes flutter/flutter#134443

@mdebbar mdebbar requested a review from ditman January 12, 2024 19:06
@github-actions github-actions bot added the platform-web Code specifically for the web engine label Jan 12, 2024
Copy link
Member

@ditman ditman left a comment

Choose a reason for hiding this comment

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

Thanks for the cleanup @mdebbar!

I think my only "somewhat blocking" comment would be to not make the resources field a first-class citizen of the view if it's only needed by the HTML Renderer, and keep those resources as an implementation detail of the HTML renderer.

Everything else is mostly LGTM and "woah, nice!" type of comments :P

@mdebbar mdebbar requested a review from ditman January 30, 2024 21:36
Copy link
Member

@ditman ditman left a comment

Choose a reason for hiding this comment

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

LGTM!

(Odd test failures, though? Did we break some pointer binding initialization?)

00:10 +237 ~2 -1: pointer_binding_test.dart: ClickDebouncer Dedupes click if pointer down/up flushed recently [E]                                                                                      
  Expected: [
              PointerChange:PointerChange.add,
              PointerChange:PointerChange.down,
              PointerChange:PointerChange.up
            ]
    Actual: []
     Which: at location [0] is [] which shorter than expected
  Queued up events should be flushed to the framework because the time expired before the click event arrived.

@mdebbar
Copy link
Contributor Author

mdebbar commented Jan 31, 2024

@ditman I couldn't repro that failure locally. Rebased the PR and everything seems to be passing..

@mdebbar mdebbar added the autosubmit Merge PR when tree becomes green via auto submit App label Jan 31, 2024
@auto-submit auto-submit bot merged commit 94a27b3 into flutter:main Jan 31, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jan 31, 2024
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Jan 31, 2024
…142628)

flutter/engine@9ccd81d...20e5361

2024-01-31 [email protected] Roll Dart SDK from fbf1d8ebceb4 to 1f136c7b962d (1 revision) (flutter/engine#50203)
2024-01-31 [email protected] Log FlutterJSONMessageCodec decode errors before asserting (flutter/engine#50163)
2024-01-31 [email protected] [web] Final nail in FlutterViewEmbedder's coffin (flutter/engine#49769)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
@mdebbar mdebbar deleted the delete_embedder branch February 1, 2024 19:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

autosubmit Merge PR when tree becomes green via auto submit App platform-web Code specifically for the web engine

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[web] Remove FlutterViewEmbedder

2 participants