<?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>301181</bug_id>
          
          <creation_ts>2025-10-21 02:22:18 -0700</creation_ts>
          <short_desc>Drop IsDeprecatedWeakRefSmartPointerException for LocalDOMWindowObserver</short_desc>
          <delta_ts>2025-10-23 22:02:56 -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>WebCore Misc.</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chris Dumez">cdumez</reporter>
          <assigned_to name="Diego Pino">dpino</assigned_to>
          <cc>dpino</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2152924</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2025-10-21 02:22:18 -0700</bug_when>
    <thetext>Drop IsDeprecatedWeakRefSmartPointerException for LocalDOMWindowObserver.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2152925</commentid>
    <comment_count>1</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2025-10-21 02:33:34 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/52726</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2152957</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-10-21 05:26:26 -0700</bug_when>
    <thetext>Committed 301873@main (ee9fa2e2e115): &lt;https://commits.webkit.org/301873@main&gt;

Reviewed commits have been landed. Closing PR #52726 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2152958</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-10-21 05:27:11 -0700</bug_when>
    <thetext>&lt;rdar://problem/163109752&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2153717</commentid>
    <comment_count>4</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2025-10-23 09:32:12 -0700</bug_when>
    <thetext>GTK3 build is failing after this patch with the following build error:

https://build.webkit.org/#/builders/1519/builds/8007

```
WTF/Headers/wtf/WeakPtr.h: In instantiation of ‘T* WTF::WeakPtr&lt; &lt;template-parameter-1-1&gt;, WeakPtrImpl, &lt;template-parameter-1-3&gt; &gt;::operator-&gt;() const [with T = WebKit::DOMObjectCacheFrameObserver; WeakPtrImpl = WTF::DefaultWeakPtrImpl; PtrTraits = WTF::RawPtrTraits&lt;WTF::DefaultWeakPtrImpl&gt;]’:
../../../Source/WebKit/WebProcess/InjectedBundle/API/glib/DOM/DOMObjectCache.cpp:144:32:   required from here
WTF/Headers/wtf/WeakPtr.h:122:90: error: static assertion failed: Classes that offer weak pointers should also offer RefPtr or CheckedPtr. Please do not add new exceptions.
  122 |             HasRefPtrMemberFunctions&lt;T&gt;::value || HasCheckedPtrMemberFunctions&lt;T&gt;::value || IsDeprecatedWeakRefSmartPointerException&lt;std::remove_cv_t&lt;T&gt;&gt;::value,
      |                                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```

Apparently the assertion is triggered due to this change: 
  - https://github.com/WebKit/WebKit/pull/52726/files#diff-12c652d46981748b460f0ec706a0bae28589040a9c3eb43f3a172d1b6c487cf3R148

The patch modified m_frameObserver from a reference to WeakPtr and there are all data members in DOMWindowObserver are also WeakPtr.

The only solution I found was to actually mark DOMObjectCacheFrameObserver as IsDeprecatedWeakRefSmartPointerException.

I have no clue why this build error is happening only in the GTK3 build.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2153719</commentid>
    <comment_count>5</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2025-10-23 09:36:22 -0700</bug_when>
    <thetext>Re-opening for pull request https://github.com/WebKit/WebKit/pull/52889</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2153924</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-10-23 22:02:53 -0700</bug_when>
    <thetext>Committed 302070@main (cf6d1777a861): &lt;https://commits.webkit.org/302070@main&gt;

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

    </bug>

</bugzilla>