Windows: Fix plugin destruction#30760
Conversation
|
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat. If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
17a582f to
7fe82e4
Compare
7fe82e4 to
be83bde
Compare
stuartmorgan-g
left a comment
There was a problem hiding this comment.
LGTM with one question about the test. Thanks for cleaning this up!
@cbracken for second review.
| EngineModifier modifier(engine.get()); | ||
|
|
||
| MockEmbedderApiForKeyboard(modifier, | ||
| std::make_shared<MockKeyResponseController>()); |
There was a problem hiding this comment.
Why does this test need a mock keyboard handler?
There was a problem hiding this comment.
MockEmbedderApiForKeyboard mocks a couple of embedder API functions required by engine.RunWithEntrypoint. see
engine/shell/platform/windows/testing/test_keyboard.cc
Lines 100 to 192 in 8509510
Should I just mock the required functions explicitly?
cbracken
left a comment
There was a problem hiding this comment.
Thanks for cleaning this up!
Applies flutter#30760 to the Tizen embedder. This is an actual fix for flutter-tizen/flutter-tizen#90, which has been worked around by flutter-tizen/flutter-tizen#98. We can now support the old-fashioned "sharedLib" style plugins (each plugin is built into an individual shared object) based on this change.
Fixes flutter/flutter#93234
This small fix prevents plugin registrar destruction callbacks from overwriting each other.
Pre-launch Checklist
writing and running engine tests.
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.