Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[GTK] WebView not working #3571

Closed
usr4711 opened this issue Aug 15, 2018 · 8 comments
Closed

[GTK] WebView not working #3571

usr4711 opened this issue Aug 15, 2018 · 8 comments
Labels
a/webview help wanted We welcome community contributions to any issue, but these might be a good place to start! p/gtk up-for-grabs We welcome community contributions to any issue, but these might be a good place to start!

Comments

@usr4711
Copy link

usr4711 commented Aug 15, 2018

Description

The WebView on GTK isn't displayed.

Steps to Reproduce

  1. Install debian stretch and monodevelop
  2. Create a .NET standard project for the shared components, that contains a MainPage with a WebView
  3. Because libwebkit-dev isn't available anymore, as suggested on https://github.com/jsuarezruiz/forms-gtk-progress/blob/master/Faq.md, install libwebkitgtk-dev
  4. Create a GTK project, that references and initializes the shared project

Expected Behavior

The URL in the WebView should be visible. It's working on Windows.

Actual Behavior

Gray area/ now WebView is rendered.

Basic Information

  • Version with issue: 3.1.0.697729
  • Last known good version: -
  • IDE: MonoDevelop
@Simon-Thompson
Copy link

Any update on this? I'm experiencing the same issue. Only error thrown by the app is:
Gtk-CRITICAL **: 16:12:14.372: IA__gtk_container_add: assertion 'GTK_IS_WIDGET (widget)' failed

Works fine on Windows, but fails on Linux. Version of Xamarin.Forms is 4.0.30319, testing platform is Ubuntu 18.04

@samhouts samhouts added inactive Issue is older than 6 months and needs to be retested help wanted We welcome community contributions to any issue, but these might be a good place to start! up-for-grabs We welcome community contributions to any issue, but these might be a good place to start! labels Dec 13, 2019
@chris208
Copy link

Any update on this? I got same issue.
This is the error message: Gtk-CRITICAL **: 09:09:10.922: IA__gtk_container_add: assertion 'GTK_IS_WIDGET (widget)' failed

@Simon-Thompson
Copy link

@chris208, haven't heard from the Xamarin folks about this since posting last year =[
I think @jsuarezruiz was working on this branch, but hasn't updated the project in a while.

@samhouts samhouts removed the inactive Issue is older than 6 months and needs to be retested label Feb 6, 2020
@martinstoeckli
Copy link

Any update on this? I got same issue.
This is the error message: Gtk-CRITICAL **: 09:09:10.922: IA__gtk_container_add: assertion 'GTK_IS_WIDGET (widget)' failed

@chris208 - This error I get when compiling on Windows and running on Linux. If the code is compiled on Linux with MonoDevelop there is no such error message, but the WebView isn't shown anyway. The WebView is visible only on the Windows platform, other controls are shown on both Windows and Linux.

@thongnm
Copy link

thongnm commented Oct 30, 2020

@martinstoeckli Did you have a solution for this issue? I am struggling with it on Mac OS too. Actually, I was creating an extension for Visual Studio For Mac. It only contains a simple dialog with a Webview control. However, the Webview control is failed to render. Other controls (label, button, etc) work fine.

@martinstoeckli
Copy link

@thongnm - I didn't try since, waiting for DotNet5 to come out before I make another attempt.

@jasells
Copy link

jasells commented Jul 11, 2022

Has there been any progress on this issue? I am looking to host a WebGL page in a XForms app on Linux... This doesn't even seem to be an option on GTK# for Windows, since the browser engine is I.E. at least when the GTK-app is .Net Framework 4.8.

@jfversluis
Copy link
Member

Taking into consideration the remaining lifetime of Xamarin.Forms, the platform this is about, the age of this issue and the traction this issue has seen I think it's unlikely that this will get fixed. If it is something that you still would like to have, please consider opening a PR. Thanks!

@jfversluis jfversluis closed this as not planned Won't fix, can't repro, duplicate, stale Nov 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a/webview help wanted We welcome community contributions to any issue, but these might be a good place to start! p/gtk up-for-grabs We welcome community contributions to any issue, but these might be a good place to start!
Projects
None yet
Development

No branches or pull requests

8 participants