<?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>305150</bug_id>
          
          <creation_ts>2026-01-08 14:30:00 -0800</creation_ts>
          <short_desc>REGRESSION(302499@main): Hitting asserts in http/tests/security/contentSecurityPolicy* on WebKitLegacy</short_desc>
          <delta_ts>2026-01-08 17:25: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>New Bugs</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>
          
          <blocked>301793</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Jonathan Bedard">jbedard</reporter>
          <assigned_to name="Jonathan Bedard">jbedard</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2170428</commentid>
    <comment_count>0</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2026-01-08 14:30:00 -0800</bug_when>
    <thetext>We&apos;re hitting asserts on the following tests in WebKitLegacy:
    http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-toggled.py
    http/tests/security/contentSecurityPolicy/report-same-origin-no-cookies-when-private-browsing-toggled.py
    http/tests/security/private-browsing-http-auth.html

History:
https://results.webkit.org/?suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;test=http%2Ftests%2Fsecurity%2FcontentSecurityPolicy%2Freport-cross-origin-no-cookies-when-private-browsing-toggled.py&amp;test=http%2Ftests%2Fsecurity%2FcontentSecurityPolicy%2Freport-same-origin-no-cookies-when-private-browsing-toggled.py&amp;test=http%2Ftests%2Fsecurity%2Fprivate-browsing-http-auth.html

CI build:
https://build.webkit.org/#/builders/1694/builds/750

Log:
1   0x17ab96dae WTF::RefPtr&lt;WebCore::SQLTransaction, WTF::RawPtrTraits&lt;WebCore::SQLTransaction&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::SQLTransaction&gt;&gt;::releaseNonNull()
2   0x17ab92bd9 WebCore::SQLTransactionBackend::frontend()
3   0x17ab92aef WebCore::SQLTransactionBackend::~SQLTransactionBackend()
4   0x17ab8db05 WebCore::SQLTransactionBackend::~SQLTransactionBackend()
5   0x17ab8da3e WebCore::SQLTransaction::~SQLTransaction()
6   0x17ab8dbf5 WebCore::SQLTransaction::~SQLTransaction()
7   0x17ab8dc19 WebCore::SQLTransaction::~SQLTransaction()
8   0x178d5fabf void WTF::ThreadSafeWeakPtrControlBlock::strongDeref&lt;WebCore::SQLTransaction, (WTF::DestructionThread)0&gt;() const::&apos;lambda&apos;()::operator()() const
9   0x178d5f980 void WTF::ThreadSafeWeakPtrControlBlock::strongDeref&lt;WebCore::SQLTransaction, (WTF::DestructionThread)0&gt;() const
10  0x178d5f7d6 WTF::ThreadSafeRefCountedAndCanMakeThreadSafeWeakPtr&lt;WebCore::SQLTransaction, (WTF::DestructionThread)0&gt;::deref() const
11  0x178d5f6a0 WTF::DefaultRefDerefTraits&lt;WebCore::SQLTransaction&gt;::derefIfNotNull(WebCore::SQLTransaction*)
12  0x178d5f645 WTF::Ref&lt;WebCore::SQLTransaction, WTF::RawPtrTraits&lt;WebCore::SQLTransaction&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::SQLTransaction&gt;&gt;::~Ref()
13  0x178ca9515 WTF::Ref&lt;WebCore::SQLTransaction, WTF::RawPtrTraits&lt;WebCore::SQLTransaction&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::SQLTransaction&gt;&gt;::~Ref()
14  0x17ab404ca WebCore::Database::performClose()
15  0x17ab4b53d WebCore::DatabaseThread::databaseThread()
16  0x17ab70059 WebCore::DatabaseThread::start()::$_0::operator()() const
17  0x17ab6fe69 WTF::Detail::CallableWrapper&lt;WebCore::DatabaseThread::start()::$_0, void&gt;::call()
18  0x125d5091a WTF::Function&lt;void ()&gt;::operator()() const
19  0x125fb6146 WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*)
20  0x125fc3fc5 WTF::wtfThreadEntryPoint(void*)
21  0x7ff804760e4d _pthread_start
22  0x7ff80475c857 thread_start

Reproduction:
run-webkit-tests --no-build --no-retry --no-show-results --exit-after-n-failures=1 --expect-pass --iterations=30 --force -1 --debug http/tests/security/private-browsing-http-auth.html

Bisected to 302499@main, it is certainly the caused-by.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2170429</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-01-08 14:30:13 -0800</bug_when>
    <thetext>&lt;rdar://problem/167797804&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2170431</commentid>
    <comment_count>2</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2026-01-08 14:37:48 -0800</bug_when>
    <thetext>The assertion is catching a legitimate memory safety issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2170432</commentid>
    <comment_count>3</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2026-01-08 14:46:54 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/56287</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2170438</commentid>
    <comment_count>4</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2026-01-08 15:16:12 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/56290</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2170491</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-01-08 17:25:08 -0800</bug_when>
    <thetext>Committed 305322@main (682d2e4ee552): &lt;https://commits.webkit.org/305322@main&gt;

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

    </bug>

</bugzilla>