<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>253793</bug_id>
          
          <creation_ts>2023-03-12 07:05:56 -0700</creation_ts>
          <short_desc>[GTK] GTK4 doesn&apos;t render GitHub, stuck on clipboard error</short_desc>
          <delta_ts>2023-03-13 04:37:33 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>211979</dup_id>
          <see_also>https://github.com/webcompat/web-bugs/issues/119474</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Georges Basile Stavracas Neto">feaneron</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aperez</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1940702</commentid>
    <comment_count>0</comment_count>
    <who name="Georges Basile Stavracas Neto">feaneron</who>
    <bug_when>2023-03-12 07:05:56 -0700</bug_when>
    <thetext>Epiphany 44.rc-21-gc7d32ff37+ (GNOME Nightly Flatpak)
WebKitGTK 2.39.91
GStreamer 1.20.5


GitHub doesn&apos;t render. I can still interact with (invisible) elements in the page, but the page is simply empty. Opening the inspector makes the page render in a broken state, and shows me that GitHub is spamming with clipboard-related errors like this:

[Error] Unhandled Promise Rejection: TypeError: undefined is not an object (evaluating &apos;navigator.clipboard.read&apos;)
	K (vendors-node_modules_stacktrace-parser_dist_stack-trace-parser_esm_js-node_modules_github_bro-327bbf-0aaeb22dd2a5.js:1:8117)
	every
	(anonymous function) (environment-7dd847af758e.js:1:5328)
	y (environment-7dd847af758e.js:1:5532)
	h (environment-7dd847af758e.js:1:5291)
	(anonymous function) (environment-7dd847af758e.js:1:4196)

This happens with the MiniBrowser too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1940703</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-03-12 08:44:52 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 211979 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1940805</commentid>
    <comment_count>2</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2023-03-13 01:12:48 -0700</bug_when>
    <thetext>For the people arriving here searching, it is possible to workaround
things a bit to make GitHub at least usable. Place this line added in
the ~/.local/share/epiphany/user-javascript.js file and enable the
user JavaScript in GNOME Web&apos;s preferences:

   navigator.clipboard = {};

The above prevents the console log continuous spam, which was taking
so much time that WebKit didn&apos;t have the chance to show the rendered
pages.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1940826</commentid>
    <comment_count>3</comment_count>
    <who name="Georges Basile Stavracas Neto">feaneron</who>
    <bug_when>2023-03-13 04:37:33 -0700</bug_when>
    <thetext>Thanks Adrian. Can confirm it works. To anyone reading it: don&apos;t forget to enable user JavaScript in GNOME Web&apos;s preferences dialog after creating user-javascript.js!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>