Skip to content

Switch back to dart:html for postMessage - #7476

Closed
DanTup wants to merge 2 commits into
flutter:masterfrom
DanTup:fix-post-message
Closed

DanTup wants to merge 2 commits into
flutter:masterfrom
DanTup:fix-post-message

Conversation

@DanTup

@DanTup DanTup commented Mar 27, 2024

Copy link
Copy Markdown
Contributor

This is a workaround for dart-lang/sdk#54938 because the package:web version of postMessage causes security exceptions.

Fixes Dart-Code/Dart-Code#5049

@kenzieschmoll @jacob314 I verified running DevTools from source had the issue shown in the bug above, and with this change it can communicate with VS Code correctly:

image

I don't know if a release has been made for the next beta already, but if so this might need to be included (I'm assuming dart-lang/sdk#54938 won't be fixed before then.. if it is, we can ofcourse drop this).

I don't know if there are other implications of using dart:html here (since work had been done to remove it).

(This also reinforces that we need a better way to test all of this end-to-end against bleeding-edge code!).

This is a workaround for dart-lang/sdk#54938 because the package:web version of postMessage causes security exceptions.

Fixes Dart-Code/Dart-Code#5049
@DanTup
DanTup requested a review from a team as a code owner March 27, 2024 18:55
@DanTup
DanTup requested review from bkonyi and removed request for a team March 27, 2024 18:55
@kevmoo

kevmoo commented Mar 27, 2024

Copy link
Copy Markdown
Contributor

@srujzs – anything we could do instead? Maybe inline stuff?

@srujzs

srujzs commented Mar 27, 2024

Copy link
Copy Markdown
Contributor

We may have a couple options here to avoid this that I want to try so we don't have to do this. Centralizing the discussion in Dart-Code/Dart-Code#5049.

@DanTup

DanTup commented Mar 28, 2024

Copy link
Copy Markdown
Contributor Author

This was better fixed by #7485.

@DanTup DanTup closed this Mar 28, 2024
@DanTup
DanTup deleted the fix-post-message branch March 28, 2024 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sidebar does not load on current Flutter master

3 participants