-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[dart:html] document.onFullscreenChange no longer provides events from the DOM #49374
Comments
A minimal repro that reproduces with a DDC compile. There is no sign that the event is firing when going in and out of full screen. I tried on MacOS and Linux. import 'dart:html';
main() {
document.onFullscreenChange.listen((event) {
print('Fullscreen DOM event fired');
});
} |
I tried to track down where exactly the bug started happening and it turns out that somewhere between Dart 2.16.2 and Dart 2.17.0 the listener stopped working.
I did not get to do a Side note:
|
@nshahan with the recent work on |
It doesn't work as expected on See /lib/src/helpers/events/providers.dart ![]() |
cc @srujzs |
Filed dart-lang/web#168 to track that. Those providers are a relic of The workaround is simple of course: |
Steps to reproduce
flutter create myapp
fullscreen_service.dart
so that you haveflutter run -d chrome
(as this sample usesdart:html
)Cause of the problem: For some reason the handler for
document.onFullscreenChange
never fires.Code sample
main.dart
fullscreen_service.dart
Reproducible on:
Chrome version: 103.0.5060.53 (Official Build) (x86_64)
Firefox version 102.0 (64-bit)
Can't reproduce since fullscreen is unsupported
Safari version: 15.3 (17612.4.9.1.8)
The text was updated successfully, but these errors were encountered: