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

Switch back to dart:html for postMessage #7476

Closed
wants to merge 2 commits into from

Conversation

DanTup
Copy link
Contributor

@DanTup DanTup commented Mar 27, 2024

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
Copy link
Contributor

kevmoo commented Mar 27, 2024

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

@srujzs
Copy link
Contributor

srujzs commented Mar 27, 2024

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
Copy link
Contributor Author

DanTup commented Mar 28, 2024

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