flutter_widget_from_html icon indicating copy to clipboard operation
flutter_widget_from_html copied to clipboard

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

Open 1301604100 opened this issue 1 year ago • 4 comments

HTML ```html ```
`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 avatar Nov 07 '24 07:11 1301604100

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

daohoangson avatar Nov 13 '24 01:11 daohoangson

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

1301604100 avatar Nov 13 '24 03:11 1301604100

@1301604100 Could you please provide any updates on this matter? I am experiencing the same issue, and I would appreciate it if you had found a solution.

dhiaCodes avatar Sep 28 '25 11:09 dhiaCodes

Any update in this issue @daohoangson

dhiaCodes avatar Sep 28 '25 18:09 dhiaCodes