Skip to content

[webview_flutter_web] Unable to render a webview on webΒ #118573

@mbtodorov

Description

@mbtodorov

Steps to Reproduce

  1. Execute flutter run on the code sample provided in the webview_flutter_web package https://github.com/flutter/plugins/tree/main/packages/webview_flutter/webview_flutter_web/example

Expected results:
flutter.dev webpage gets loaded

Actual results:
flutter.dev webpage does not load

Code sample https://github.com/flutter/plugins/tree/main/packages/webview_flutter/webview_flutter_web/example
Logs
[   +2 ms] Debug service listening on ws://127.0.0.1:53672/nfboH9dHnbM=/ws
[        ] πŸ’ͺ Running with sound null safety πŸ’ͺ
[   +1 ms] πŸ”₯  To hot restart changes while running, press "r" or "R".
[        ] For a more detailed help message, press "h". To quit, press "q".
[        ] An Observatory debugger and profiler on Chrome is available at: http://127.0.0.1:53672/nfboH9dHnbM=
[   +8 ms] Flutter Web Bootstrap: Auto
[ +627 ms] Height of Platform View type: [webView0] may not be set. Defaulting to `height: 100%`.
                    Set `style.height` to any appropriate value to stop this message.
[        ] Width of Platform View type: [webView0] may not be set. Defaulting to `width: 100%`.
           Set `style.width` to any appropriate value to stop this message.
[ +622 ms] Error: [object ProgressEvent]
                    dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 299:10  createErrorWithStack
                    dart-sdk/lib/_internal/js_dev_runtime/patch/core_patch.dart 341:28            _throw
                    dart-sdk/lib/core/errors.dart 116:5                                           throwWithStackTrace
                    dart-sdk/lib/async/zone.dart 1378:11                                          callback
                    dart-sdk/lib/async/schedule_microtask.dart 40:11                              _microtaskLoop
                    dart-sdk/lib/async/schedule_microtask.dart 49:5                               _startMicrotaskLoop
                    dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 166:15           <fn>
[        ] The Flutter DevTools debugger and profiler on Chrome is available at: http://127.0.0.1:9101?uri=http://127.0.0.1:53672/nfboH9dHnbM=
[βœ“] Flutter (Channel stable, 3.3.7, on macOS 13.0.1 22A400 darwin-arm, locale en-GB)
    β€’ Flutter version 3.3.7 on channel stable at /Users/martin/dev/tools/flutter
    β€’ Upstream repository https://github.com/flutter/flutter.git
    β€’ Framework revision e99c9c7cd9 (3 months ago), 2022-11-01 16:59:00 -0700
    β€’ Engine revision 857bd6b74c
    β€’ Dart version 2.18.4
    β€’ DevTools version 2.15.0

[βœ“] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
    β€’ Android SDK at /Users/martin/Library/Android/sdk
    β€’ Platform android-33, build-tools 32.1.0-rc1
    β€’ ANDROID_SDK_ROOT = /Users/martin/Library/Android/sdk
    β€’ Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    β€’ Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    β€’ All Android licenses accepted.

[βœ“] Xcode - develop for iOS and macOS (Xcode 14.2)
    β€’ Xcode at /Applications/Xcode.app/Contents/Developer
    β€’ Build 14C18
    β€’ CocoaPods version 1.11.3

[βœ“] Chrome - develop for the web
    β€’ Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[βœ“] Android Studio (version 2021.2)
    β€’ Android Studio at /Applications/Android Studio.app/Contents
    β€’ 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 11.0.12+0-b1504.28-7817840)

[βœ“] VS Code (version 1.74.3)
    β€’ VS Code at /Applications/Visual Studio Code.app/Contents
    β€’ Flutter extension version 3.56.0

[βœ“] Connected device (2 available)
    β€’ macOS (desktop) β€’ macos  β€’ darwin-arm64   β€’ macOS 13.0.1 22A400 darwin-arm
    β€’ Chrome (web)    β€’ chrome β€’ web-javascript β€’ Google Chrome 109.0.5414.87

[βœ“] HTTP Host Availability
    β€’ All required HTTP hosts are available

β€’ No issues found!

image

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listassigned for triageissue is assigned to a domain expert for further triagefound in release: 3.3Found to occur in 3.3found in release: 3.7Found to occur in 3.7has reproducible stepsThe issue has been confirmed reproducible and is ready to work onp: webviewThe WebView pluginpackageflutter/packages repository. See also p: labels.platform-webWeb applications specificallyr: fixedIssue is closed as already fixed in a newer version

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions