Bug 219221

Summary: [GTK][GTK4] Building with GObject-Introspection support does not work
Product: WebKit Reporter: Adrian Perez <aperez>
Component: WebKitGTKAssignee: Lauro Moura <lmoura>
Status: RESOLVED FIXED    
Severity: Normal CC: annulen, bugs-noreply, cgarcia, ews-watchlist, gyuyoung.kim, lmoura, ryuan.choi, sergio
Priority: P2    
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 210100    
Attachments:
Description Flags
Patch none

Description Adrian Perez 2020-11-20 13:39:40 PST
Currently we are unconditionally disabling introspection support
if USE_GTK4 is enabled. Removing that restriction from CMake and
configuring with USE_GTK4=ON and ENABLE_INTROSPECTION=ON results
in the following build error:

  (process:18103): GLib-GObject-WARNING **: 19:42:24.462: specified class size for type 'WebKitWebViewBase' is smaller than the parent type's 'GtkWidget' class size
 
  (process:18103): GLib-CRITICAL **: 19:42:24.463: g_once_init_leave: assertion 'result != 0' failed
  Invalid GType function: 'webkit_web_view_base_get_type'
  Function 'webkit_web_view_base_get_type' returned G_TYPE_INVALID
  UIProcess/API/glib/WebKitWebView.cpp:2193: Warning: WebKit2: multiple comment blocks documenting 'WebKitWebView::show-option-menu:' identifier (already seen at WebKitWebView.cpp:2157).
  Command '['/run/build/webkit-gtk4/Source/WebKit/tmp-introspectvo_b70is/WebKit2-5.0', '--introspect-dump=/run/build/webkit-gtk4/Source/WebKit/tmp-introspectvo_b70is/functions.txt,/run/build/webkit-gtk4/Source/WebKit/tmp-introspectvo_b70is/dump.xml']' returned non-zero exit status 1.
Comment 1 Lauro Moura 2020-11-24 12:30:30 PST
Created attachment 414847 [details]
Patch
Comment 2 EWS 2020-11-26 20:22:17 PST
Committed r270178: <https://trac.webkit.org/changeset/270178>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 414847 [details].