<?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>240472</bug_id>
          
          <creation_ts>2022-05-16 12:00:46 -0700</creation_ts>
          <short_desc>[WPE][GTK] Add more padding to WebKitWebView vtable</short_desc>
          <delta_ts>2023-01-26 08:31:10 -0800</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>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>210100</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Catanzaro">mcatanzaro</reporter>
          <assigned_to name="Michael Catanzaro">mcatanzaro</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>1869355</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2022-05-16 12:00:46 -0700</bug_when>
    <thetext>We&apos;re running out of room in the WebKitWebView vtable. Let&apos;s add more padding here than we&apos;re likely to need (when building with newer API versions).

And let&apos;s also review other vtables and add more padding where it looks useful.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1927928</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-01-24 13:55:29 -0800</bug_when>
    <thetext>Actually most vtables will no longer be public after bug #243663, except notably WebKitWebView. This object should receive a _very_ healthy amount of padding IMO.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1928228</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-01-25 12:16:03 -0800</bug_when>
    <thetext>So currently the vtable is 29 bytes for GTK, with zero bytes of padding remaining. WPE uses a little bit less and has 5 bytes of padding remaining.

Let&apos;s go crazy and add 30 bytes. I think we can afford to splurge here because web views are relatively rare.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1928231</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-01-25 12:19:24 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/9139</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1928282</commentid>
    <comment_count>4</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2023-01-25 14:53:34 -0800</bug_when>
    <thetext>(In reply to Michael Catanzaro from comment #2)
&gt; So currently the vtable is 29 bytes for GTK, with zero bytes of padding
&gt; remaining. WPE uses a little bit less and has 5 bytes of padding remaining.
&gt; 
&gt; Let&apos;s go crazy and add 30 bytes. I think we can afford to splurge here
&gt; because web views are relatively rare.

Nitpick: 30 *pointer* entries (plus 29 existing). That makes for 236 bytes
on 32-bit platforms, and 472 bytes on 64-bit ones. Still reasonable to add
that many, I think.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1928313</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-01-25 15:57:01 -0800</bug_when>
    <thetext>Oh yeah... because pointers require more than one byte. You&apos;ll never hear me claim to be competent.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1928611</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-01-26 08:31:06 -0800</bug_when>
    <thetext>Committed 259425@main (5737721c0eb3): &lt;https://commits.webkit.org/259425@main&gt;

Reviewed commits have been landed. Closing PR #9139 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>