<?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>224791</bug_id>
          
          <creation_ts>2021-04-19 17:22:10 -0700</creation_ts>
          <short_desc>[GLIB] REGRESSION(r276246): fast/cookies/cookie-averse-document.html and fast/cookies/local-file-can-set-cookies.html are crashing</short_desc>
          <delta_ts>2021-05-08 23:30:17 -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>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=192883</see_also>
          <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="Diego Pino">dpino</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>cgarcia</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1752061</commentid>
    <comment_count>0</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2021-04-19 17:22:10 -0700</bug_when>
    <thetext>Two tests are crashing after r276246:

  fast/cookies/cookie-averse-document.html [ Crash ]
  fast/cookies/local-file-can-set-cookies.html [ Crash ]

fast/cookies/local-file-can-set-cookies.html is actually a flaky crash, but it crashes most of the times.

https://build.webkit.org/results/GTK-Linux-64-bit-Release-Tests/r276264%20%281267%29/fast/cookies/local-file-can-set-cookies-crash-log.txt

STDERR: (process:52022): libsoup-CRITICAL **: 12:13:45.535: parse_one_cookie: assertion &apos;origin == NULL || SOUP_URI_IS_VALID (origin)&apos; failed

Thread 1 (Thread 0x7fcdf1a35e80 (LWP 52022)):
#0  g_logv (log_domain=0x7fcdf2e0795b &quot;libsoup&quot;, log_level=G_LOG_LEVEL_CRITICAL, format=&lt;optimized out&gt;, args=&lt;optimized out&gt;) at ../glib/gmessages.c:1413
#1  0x00007fcdf411e973 in g_log (log_domain=log_domain@entry=0x7fcdf2e0795b &quot;libsoup&quot;, log_level=log_level@entry=G_LOG_LEVEL_CRITICAL, format=format@entry=0x7fcdf4176ad0 &quot;%s: assertion &apos;%s&apos; failed&quot;) at ../glib/gmessages.c:1451
#2  0x00007fcdf411f19d in g_return_if_fail_warning (log_domain=log_domain@entry=0x7fcdf2e0795b &quot;libsoup&quot;, pretty_function=pretty_function@entry=0x7fcdf2e09b70 &lt;__func__.6&gt; &quot;parse_one_cookie&quot;, expression=expression@entry=0x7fcdf2e09a88 &quot;origin == NULL || SOUP_URI_IS_VALID (origin)&quot;) at ../glib/gmessages.c:2883
#3  0x00007fcdf2dd30b4 in parse_one_cookie (header=0x7fcdf11fd1f0 &quot;ppkcookie1=testcookie&quot;, origin=0x5583703bc310) at ../libsoup/cookies/soup-cookie.c:180
#4  0x00007fcdfb923f1a in WebCore::NetworkStorageSession::setCookiesFromDOM(WTF::URL const&amp;, WebCore::SameSiteInfo const&amp;, WTF::URL const&amp;, WTF::Optional&lt;WTF::ObjectIdentifier&lt;WebCore::FrameIdentifierType&gt; &gt;, WTF::Optional&lt;WTF::ObjectIdentifier&lt;WebCore::PageIdentifierType&gt; &gt;, WebCore::ShouldAskITP, WTF::String const&amp;, WebCore::ShouldRelaxThirdPartyCookieBlocking) const () at /app/webkit/WebKitBuild/Release/lib/libwebkit2gtk-4.1.so.0
#5  0x00007fcdf97b842e in WebKit::NetworkConnectionToWebProcess::setCookiesFromDOM(WTF::URL const&amp;, WebCore::SameSiteInfo const&amp;, WTF::URL const&amp;, WTF::ObjectIdentifier&lt;WebCore::FrameIdentifierType&gt;, WTF::ObjectIdentifier&lt;WebCore::PageIdentifierType&gt;, WebCore::ShouldAskITP, WTF::String const&amp;, WebCore::ShouldRelaxThirdPartyCookieBlocking) () at /app/webkit/WebKitBuild/Release/lib/libwebkit2gtk-4.1.so.0
#6  0x00007fcdf960b345 in void IPC::handleMessage&lt;Messages::NetworkConnectionToWebProcess::SetCookiesFromDOM, WebKit::NetworkConnectionToWebProcess, void (WebKit::NetworkConnectionToWebProcess::*)(WTF::URL const&amp;, WebCore::SameSiteInfo const&amp;, WTF::URL const&amp;, WTF::ObjectIdentifier&lt;WebCore::FrameIdentifierType&gt;, WTF::ObjectIdentifier&lt;WebCore::PageIdentifierType&gt;, WebCore::ShouldAskITP, WTF::String const&amp;, WebCore::ShouldRelaxThirdPartyCookieBlocking)&gt;(IPC::Decoder&amp;, WebKit::NetworkConnectionToWebProcess*, void (WebKit::NetworkConnectionToWebProcess::*)(WTF::URL const&amp;, WebCore::SameSiteInfo const&amp;, WTF::URL const&amp;, WTF::ObjectIdentifier&lt;WebCore::FrameIdentifierType&gt;, WTF::ObjectIdentifier&lt;WebCore::PageIdentifierType&gt;, WebCore::ShouldAskITP, WTF::String const&amp;, WebCore::ShouldRelaxThirdPartyCookieBlocking)) () at /app/webkit/WebKitBuild/Release/lib/libwebkit2gtk-4.1.so.0
#7  0x00007fcdf95f37ec in WebKit::NetworkConnectionToWebProcess::didReceiveNetworkConnectionToWebProcessMessage(IPC::Connection&amp;, IPC::Decoder&amp;) () at /app/webkit/WebKitBuild/Release/lib/libwebkit2gtk-4.1.so.0
#8  0x00007fcdf990725d in IPC::Connection::dispatchMessage(std::unique_ptr&lt;IPC::Decoder, std::default_delete&lt;IPC::Decoder&gt; &gt;) () at /app/webkit/WebKitBuild/Release/lib/libwebkit2gtk-4.1.so.0
#9  0x00007fcdf9908bf1 in IPC::Connection::dispatchOneIncomingMessage() () at /app/webkit/WebKitBuild/Release/lib/libwebkit2gtk-4.1.so.0
#10 0x00007fcdf78609db in WTF::RunLoop::performWork() () at /app/webkit/WebKitBuild/Release/lib/libjavascriptcoregtk-4.1.so.0
#11 0x00007fcdf78d54a9 in WTF::RunLoop::RunLoop()::{lambda(void*)#1}::_FUN(void*) () at /app/webkit/WebKitBuild/Release/lib/libjavascriptcoregtk-4.1.so.0
#12 0x00007fcdf78d5f8f in WTF::RunLoop::{lambda(_GSource*, int (*)(void*), void*)#1}::_FUN(_GSource*, int (*)(void*), void*) () at /app/webkit/WebKitBuild/Release/lib/libjavascriptcoregtk-4.1.so.0
#13 0x00007fcdf4116dbf in g_main_dispatch (context=0x558370357170) at ../glib/gmain.c:3337
#14 g_main_context_dispatch (context=0x558370357170) at ../glib/gmain.c:4055
#15 0x00007fcdf4117168 in g_main_context_iterate (context=0x558370357170, block=block@entry=1, dispatch=dispatch@entry=1, self=&lt;optimized out&gt;) at ../glib/gmain.c:4131
#16 0x00007fcdf4117483 in g_main_loop_run (loop=0x558370358200) at ../glib/gmain.c:4329
#17 0x00007fcdf78d60d8 in WTF::RunLoop::run() () at /app/webkit/WebKitBuild/Release/lib/libjavascriptcoregtk-4.1.so.0
#18 0x00007fcdf98f343a in WebKit::NetworkProcessMain(int, char**) () at /app/webkit/WebKitBuild/Release/lib/libwebkit2gtk-4.1.so.0
#19 0x00007fcdf3ab9062 in __libc_start_main (main=0x55837028c850 &lt;main&gt;, argc=3, argv=0x7ffcd95548d8, init=&lt;optimized out&gt;, fini=&lt;optimized out&gt;, rtld_fini=&lt;optimized out&gt;, stack_end=0x7ffcd95548c8) at ../csu/libc-start.c:308
#20 0x000055837028c88e in _start () at ../sysdeps/x86_64/start.S:120

https://build.webkit.org/results/GTK-Linux-64-bit-Release-Tests/r276264%20%281267%29/fast/cookies/cookie-averse-document-crash-log.txt

STDERR: (process:2240): libsoup-CRITICAL **: 12:13:34.768: parse_one_cookie: assertion &apos;origin == NULL || SOUP_URI_IS_VALID (origin)&apos; failed

Thread 1 (Thread 0x7f63d8719e80 (LWP 2240)):
#0  g_logv (log_domain=0x7f63d9aeb95b &quot;libsoup&quot;, log_level=G_LOG_LEVEL_CRITICAL, format=&lt;optimized out&gt;, args=&lt;optimized out&gt;) at ../glib/gmessages.c:1413
#1  0x00007f63dae02973 in g_log (log_domain=log_domain@entry=0x7f63d9aeb95b &quot;libsoup&quot;, log_level=log_level@entry=G_LOG_LEVEL_CRITICAL, format=format@entry=0x7f63dae5aad0 &quot;%s: assertion &apos;%s&apos; failed&quot;) at ../glib/gmessages.c:1451
#2  0x00007f63dae0319d in g_return_if_fail_warning (log_domain=log_domain@entry=0x7f63d9aeb95b &quot;libsoup&quot;, pretty_function=pretty_function@entry=0x7f63d9aedb70 &lt;__func__.6&gt; &quot;parse_one_cookie&quot;, expression=expression@entry=0x7f63d9aeda88 &quot;origin == NULL || SOUP_URI_IS_VALID (origin)&quot;) at ../glib/gmessages.c:2883
#3  0x00007f63d9ab70b4 in parse_one_cookie (header=0x7f63d7e76b50 &quot;ppkcookie1=testcookie&quot;, origin=0x555b87530190) at ../libsoup/cookies/soup-cookie.c:180
#4  0x00007f63e2607f1a in WebCore::NetworkStorageSession::setCookiesFromDOM(WTF::URL const&amp;, WebCore::SameSiteInfo const&amp;, WTF::URL const&amp;, WTF::Optional&lt;WTF::ObjectIdentifier&lt;WebCore::FrameIdentifierType&gt; &gt;, WTF::Optional&lt;WTF::ObjectIdentifier&lt;WebCore::PageIdentifierType&gt; &gt;, WebCore::ShouldAskITP, WTF::String const&amp;, WebCore::ShouldRelaxThirdPartyCookieBlocking) const () at /app/webkit/WebKitBuild/Release/lib/libwebkit2gtk-4.1.so.0
#5  0x00007f63e049c42e in WebKit::NetworkConnectionToWebProcess::setCookiesFromDOM(WTF::URL const&amp;, WebCore::SameSiteInfo const&amp;, WTF::URL const&amp;, WTF::ObjectIdentifier&lt;WebCore::FrameIdentifierType&gt;, WTF::ObjectIdentifier&lt;WebCore::PageIdentifierType&gt;, WebCore::ShouldAskITP, WTF::String const&amp;, WebCore::ShouldRelaxThirdPartyCookieBlocking) () at /app/webkit/WebKitBuild/Release/lib/libwebkit2gtk-4.1.so.0
#6  0x00007f63e02ef345 in void IPC::handleMessage&lt;Messages::NetworkConnectionToWebProcess::SetCookiesFromDOM, WebKit::NetworkConnectionToWebProcess, void (WebKit::NetworkConnectionToWebProcess::*)(WTF::URL const&amp;, WebCore::SameSiteInfo const&amp;, WTF::URL const&amp;, WTF::ObjectIdentifier&lt;WebCore::FrameIdentifierType&gt;, WTF::ObjectIdentifier&lt;WebCore::PageIdentifierType&gt;, WebCore::ShouldAskITP, WTF::String const&amp;, WebCore::ShouldRelaxThirdPartyCookieBlocking)&gt;(IPC::Decoder&amp;, WebKit::NetworkConnectionToWebProcess*, void (WebKit::NetworkConnectionToWebProcess::*)(WTF::URL const&amp;, WebCore::SameSiteInfo const&amp;, WTF::URL const&amp;, WTF::ObjectIdentifier&lt;WebCore::FrameIdentifierType&gt;, WTF::ObjectIdentifier&lt;WebCore::PageIdentifierType&gt;, WebCore::ShouldAskITP, WTF::String const&amp;, WebCore::ShouldRelaxThirdPartyCookieBlocking)) () at /app/webkit/WebKitBuild/Release/lib/libwebkit2gtk-4.1.so.0
#7  0x00007f63e02d77ec in WebKit::NetworkConnectionToWebProcess::didReceiveNetworkConnectionToWebProcessMessage(IPC::Connection&amp;, IPC::Decoder&amp;) () at /app/webkit/WebKitBuild/Release/lib/libwebkit2gtk-4.1.so.0
#8  0x00007f63e05eb25d in IPC::Connection::dispatchMessage(std::unique_ptr&lt;IPC::Decoder, std::default_delete&lt;IPC::Decoder&gt; &gt;) () at /app/webkit/WebKitBuild/Release/lib/libwebkit2gtk-4.1.so.0
#9  0x00007f63e05ecbf1 in IPC::Connection::dispatchOneIncomingMessage() () at /app/webkit/WebKitBuild/Release/lib/libwebkit2gtk-4.1.so.0
#10 0x00007f63de5449db in WTF::RunLoop::performWork() () at /app/webkit/WebKitBuild/Release/lib/libjavascriptcoregtk-4.1.so.0
#11 0x00007f63de5b94a9 in WTF::RunLoop::RunLoop()::{lambda(void*)#1}::_FUN(void*) () at /app/webkit/WebKitBuild/Release/lib/libjavascriptcoregtk-4.1.so.0
#12 0x00007f63de5b9f8f in WTF::RunLoop::{lambda(_GSource*, int (*)(void*), void*)#1}::_FUN(_GSource*, int (*)(void*), void*) () at /app/webkit/WebKitBuild/Release/lib/libjavascriptcoregtk-4.1.so.0
#13 0x00007f63dadfadbf in g_main_dispatch (context=0x555b874c2170) at ../glib/gmain.c:3337
#14 g_main_context_dispatch (context=0x555b874c2170) at ../glib/gmain.c:4055
#15 0x00007f63dadfb168 in g_main_context_iterate (context=0x555b874c2170, block=block@entry=1, dispatch=dispatch@entry=1, self=&lt;optimized out&gt;) at ../glib/gmain.c:4131
#16 0x00007f63dadfb483 in g_main_loop_run (loop=0x555b874c3200) at ../glib/gmain.c:4329
#17 0x00007f63de5ba0d8 in WTF::RunLoop::run() () at /app/webkit/WebKitBuild/Release/lib/libjavascriptcoregtk-4.1.so.0
#18 0x00007f63e05d743a in WebKit::NetworkProcessMain(int, char**) () at /app/webkit/WebKitBuild/Release/lib/libwebkit2gtk-4.1.so.0
#19 0x00007f63da79d062 in __libc_start_main (main=0x555b872cf850 &lt;main&gt;, argc=3, argv=0x7ffe19ccc818, init=&lt;optimized out&gt;, fini=&lt;optimized out&gt;, rtld_fini=&lt;optimized out&gt;, stack_end=0x7ffe19ccc808) at ../csu/libc-start.c:308
#20 0x0000555b872cf88e in _start () at ../sysdeps/x86_64/start.S:120</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1752076</commentid>
    <comment_count>1</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2021-04-19 17:53:55 -0700</bug_when>
    <thetext>These two tests are already marked as failure in webkit.org/b/192883. After the crash is solved, if the tests pass, webkit.org/b/192883 should be marked as closed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1752079</commentid>
    <comment_count>2</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2021-04-19 17:55:36 -0700</bug_when>
    <thetext>Updated test expectations in r276279.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1752112</commentid>
    <comment_count>3</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2021-04-19 20:13:58 -0700</bug_when>
    <thetext>imported/w3c/web-platform-tests/fetch/nosniff/parsing-nosniff.window.html is flaky since:

r276248                       NOERROR
[r276249-r276251]             UNKNOWN
[r276252-r276253]             TEXT PASS (Expected: PASS)

Very likely due to r276246.

Test dashboard:

https://results.webkit.org/?platform=GTK&amp;platform=WPE&amp;suite=layout-tests&amp;test=imported%2Fw3c%2Fweb-platform-tests%2Ffetch%2Fnosniff%2Fparsing-nosniff.window.html

I will mark it as flaky in TestExceptions and file it under this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1752114</commentid>
    <comment_count>4</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2021-04-19 20:14:50 -0700</bug_when>
    <thetext>I forgot to add a sample of the test error.

https://build.webkit.org/results/GTK-Linux-64-bit-Release-Tests/r276274%20%281271%29/imported/w3c/web-platform-tests/fetch/nosniff/parsing-nosniff.window-diff.txt

--- /home/buildbot/worker/gtk-linux-64-release-tests/build/layout-test-results/imported/w3c/web-platform-tests/fetch/nosniff/parsing-nosniff.window-expected.txt
+++ /home/buildbot/worker/gtk-linux-64-release-tests/build/layout-test-results/imported/w3c/web-platform-tests/fetch/nosniff/parsing-nosniff.window-actual.txt
@@ -5,13 +5,13 @@
 PASS X-Content-Type-Options%3A%20nosniff%2C%2C%40%23%24%23%25%25%26%5E%26%5E*()()11!
 PASS X-Content-Type-Options%3A%20%40%23%24%23%25%25%26%5E%26%5E*()()11!%2Cnosniff
 PASS X-Content-Type-Options%3A%20nosniff%0D%0AX-Content-Type-Options%3A%20no
-PASS X-Content-Type-Options%3A%20no%0D%0AX-Content-Type-Options%3A%20nosniff
+FAIL X-Content-Type-Options%3A%20no%0D%0AX-Content-Type-Options%3A%20nosniff assert_unreached: Script should have loaded Reached unreachable code
 PASS X-Content-Type-Options%3A%0D%0AX-Content-Type-Options%3A%20nosniff
 PASS X-Content-Type-Options%3A%20%2Cnosniff
 PASS X-Content-Type-Options%3A%20nosniff%0C
-PASS X-Content-Type-Options%3A%20nosniff%0B
+FAIL X-Content-Type-Options%3A%20nosniff%0B assert_unreached: Script should have loaded Reached unreachable code
 PASS X-Content-Type-Options%3A%20nosniff%0B%2Cnosniff
 PASS X-Content-Type-Options%3A%20&apos;NosniFF&apos;
 PASS X-Content-Type-Options%3A%20%22nosniFF%22
-PASS Content-Type-Options%3A%20nosniff
+FAIL Content-Type-Options%3A%20nosniff assert_unreached: Script should have loaded Reached unreachable code</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1752115</commentid>
    <comment_count>5</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2021-04-19 20:20:15 -0700</bug_when>
    <thetext>imported/w3c/web-platform-tests/mimesniff/mime-types/parsing.any.html is also flaky since r276246.

r276245                       NOERROR
r276246                       TIMEOUT PASS (Expected: PASS)
r276247                       UNKNOWN


https://results.webkit.org/?platform=GTK&amp;platform=WPE&amp;suite=layout-tests&amp;test=imported%2Fw3c%2Fweb-platform-tests%2Fmimesniff%2Fmime-types%2Fparsing.any.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1752159</commentid>
    <comment_count>6</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2021-04-20 00:24:56 -0700</bug_when>
    <thetext>This is fixed in libsoup master, the crashes will be fixed once we upgrade to libsoup 2.99.4, and the test failures too (bug #192883)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1754455</commentid>
    <comment_count>7</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-04-26 17:23:27 -0700</bug_when>
    <thetext>&lt;rdar://problem/77184196&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1758298</commentid>
    <comment_count>8</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2021-05-08 23:30:17 -0700</bug_when>
    <thetext>This was fixed by the libsoup version bump.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>