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

iframe loses attributes such as allowfullscreen="true", resulting in "Permissions policy violation: fullscreen is not allowed in this document." #1354

Open
1301604100 opened this issue Nov 7, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@1301604100
Copy link

HTML ```html <iframe class="ql-video" frameborder="0" allowfullscreen="true" src="https://www.youtube.com/embed/izXRZkj92Nk?si=yB3tKtvvthhlSl7q"></iframe> ```
`HtmlWidget` configuration
HtmlWidget('<iframe class="ql-video" frameborder="0" allowfullscreen="true" src="https://www.youtube.com/embed/izXRZkj92Nk?si=yB3tKtvvthhlSl7q"></iframe>')
Tesing environment
[√] Flutter (Channel stable, 3.19.0, on Microsoft Windows [版本
    10.0.19044.1379], locale zh-CN)
    • Flutter version 3.19.0 on channel stable at
      C:\Users\Administrator\fvm\versions\3.19.0
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision bae5e49bc2 (9 months ago), 2024-02-13 17:46:18     
      -0800
    • Engine revision 04817c99c9
    • Dart version 3.3.0
    • DevTools version 2.31.1

[√] Windows Version (Installed version of Windows is version 10 or higher)  

[√] Android toolchain - develop for Android devices (Android SDK version    
    34.0.0)
    • Android SDK at C:\Users\Administrator\AppData\Local\Android\sdk       
    • Platform android-34, build-tools 34.0.0
    • Java binary at: E:\Program Files\Android\Android
      Studio2024.1.2.12\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.11+0--11852314)  
       https://plugins.jetbrains.com/plugin/6351-dart
    X Unable to determine bundled Java version.
    • Try updating or re-installing Android Studio.

[√] Android Studio (version 2024.1)
    • Android Studio at E:\Program Files\Android\Android Studio2024.1.2.12  
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.11+0--11852314)  

[√] VS Code (version unknown)
    • VS Code at C:\Users\Administrator\AppData\Local\Programs\Microsoft VS 
      Code
    • Flutter extension version 3.100.0
    X Unable to determine VS Code version.

[√] VS Code, 64-bit edition (version 1.91.0)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Flutter extension version 3.100.0

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [版本
      10.0.19044.1379]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome
      130.0.6723.92
    • Edge (web)        • edge    • web-javascript • Microsoft Edge
      130.0.2849.68

Expected results

Play the video in full screen when you click the Full screen button

Actual results

Error message: 'Permissions policy violation: fullscreen is not allowed in this document.'

@1301604100 1301604100 added the bug Something isn't working label Nov 7, 2024
@daohoangson
Copy link
Owner

Did you run into this error in Chrome? Since you are using pretty old Flutter version, I'm assuming no wasm build?

@daohoangson daohoangson self-assigned this Nov 13, 2024
@1301604100
Copy link
Author

Did you run into this error in Chrome? Since you are using pretty old Flutter version, I'm assuming no wasm build?

Yes, I encountered this error in chrome, the web-renderer I use is html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants