<?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>237137</bug_id>
          
          <creation_ts>2022-02-24 07:44:54 -0800</creation_ts>
          <short_desc>Back navigation floods the server with duplicate GET requests</short_desc>
          <delta_ts>2022-05-17 08:07:08 -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>History</component>
          <version>Safari 15</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>235475</dup_id>
          
          <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="Steffen Weber">steffen.weber</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cdumez</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1845607</commentid>
    <comment_count>0</comment_count>
    <who name="Steffen Weber">steffen.weber</who>
    <bug_when>2022-02-24 07:44:54 -0800</bug_when>
    <thetext>How to reproduce:

1. Open Safari 15.3 on macOS or iOS
2. Go to https://www.computerbase.de/forum/threads/dan-c4-sfx.1923191/post-26644137
3. Confirm the consent dialog
4. Click on the orange link with title &quot;https://www.computerbase.de/forum/attachments/2-png.1190983/&quot;
5. Wait until the linked attachment/image loads
6. Click/tap Safari&apos;s back button

What should happen:

Safari should navigate back to the forum thread.

What actually happens:

Safari either just hangs or floods the server with duplicate HTTP GET requests (until our rate-limiting kicks in and respons with &quot;HTTP 429 Too Many Requests&quot;):

::ffff:1.2.3.4 [24/Feb/2022:16:28:26 +0100] 200 &quot;GET /forum/threads/dan-c4-sfx.1923191/page-37 HTTP/2.0&quot; &quot;-&quot; &quot;Mozilla/5.0 (iPad; CPU OS 15_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3 Mobile/15E148 Safari/604.1&quot;
::ffff:1.2.3.4 [24/Feb/2022:16:28:26 +0100] 200 &quot;GET /forum/threads/dan-c4-sfx.1923191/page-37 HTTP/2.0&quot; &quot;-&quot; &quot;Mozilla/5.0 (iPad; CPU OS 15_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3 Mobile/15E148 Safari/604.1&quot;
::ffff:1.2.3.4 [24/Feb/2022:16:28:26 +0100] 200 &quot;GET /forum/threads/dan-c4-sfx.1923191/page-37 HTTP/2.0&quot; &quot;-&quot; &quot;Mozilla/5.0 (iPad; CPU OS 15_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3 Mobile/15E148 Safari/604.1&quot;
::ffff:1.2.3.4 [24/Feb/2022:16:28:26 +0100] 200 &quot;GET /forum/threads/dan-c4-sfx.1923191/page-37 HTTP/2.0&quot; &quot;-&quot; &quot;Mozilla/5.0 (iPad; CPU OS 15_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3 Mobile/15E148 Safari/604.1&quot;
::ffff:1.2.3.4 [24/Feb/2022:16:28:26 +0100] 200 &quot;GET /forum/threads/dan-c4-sfx.1923191/page-37 HTTP/2.0&quot; &quot;-&quot; &quot;Mozilla/5.0 (iPad; CPU OS 15_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3 Mobile/15E148 Safari/604.1&quot;
::ffff:1.2.3.4 [24/Feb/2022:16:28:26 +0100] 200 &quot;GET /forum/threads/dan-c4-sfx.1923191/page-37 HTTP/2.0&quot; &quot;-&quot; &quot;Mozilla/5.0 (iPad; CPU OS 15_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3 Mobile/15E148 Safari/604.1&quot;
::ffff:1.2.3.4 [24/Feb/2022:16:28:26 +0100] 200 &quot;GET /forum/threads/dan-c4-sfx.1923191/page-37 HTTP/2.0&quot; &quot;-&quot; &quot;Mozilla/5.0 (iPad; CPU OS 15_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3 Mobile/15E148 Safari/604.1&quot;
::ffff:1.2.3.4 [24/Feb/2022:16:28:26 +0100] 200 &quot;GET /forum/threads/dan-c4-sfx.1923191/page-37 HTTP/2.0&quot; &quot;-&quot; &quot;Mozilla/5.0 (iPad; CPU OS 15_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3 Mobile/15E148 Safari/604.1&quot;
::ffff:1.2.3.4 [24/Feb/2022:16:28:26 +0100] 200 &quot;GET /forum/threads/dan-c4-sfx.1923191/page-37 HTTP/2.0&quot; &quot;-&quot; &quot;Mozilla/5.0 (iPad; CPU OS 15_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3 Mobile/15E148 Safari/604.1&quot;
::ffff:1.2.3.4 [24/Feb/2022:16:28:26 +0100] 200 &quot;GET /forum/threads/dan-c4-sfx.1923191/page-37 HTTP/2.0&quot; &quot;-&quot; &quot;Mozilla/5.0 (iPad; CPU OS 15_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3 Mobile/15E148 Safari/604.1&quot;
::ffff:1.2.3.4 [24/Feb/2022:16:28:26 +0100] 200 &quot;GET /forum/threads/dan-c4-sfx.1923191/page-37 HTTP/2.0&quot; &quot;-&quot; &quot;Mozilla/5.0 (iPad; CPU OS 15_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3 Mobile/15E148 Safari/604.1&quot;
::ffff:1.2.3.4 [24/Feb/2022:16:28:27 +0100] 200 &quot;GET /forum/threads/dan-c4-sfx.1923191/page-37 HTTP/2.0&quot; &quot;-&quot; &quot;Mozilla/5.0 (iPad; CPU OS 15_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3 Mobile/15E148 Safari/604.1&quot;
::ffff:1.2.3.4 [24/Feb/2022:16:28:27 +0100] 200 &quot;GET /forum/threads/dan-c4-sfx.1923191/page-37 HTTP/2.0&quot; &quot;-&quot; &quot;Mozilla/5.0 (iPad; CPU OS 15_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3 Mobile/15E148 Safari/604.1&quot;
::ffff:1.2.3.4 [24/Feb/2022:16:28:27 +0100] 200 &quot;GET /forum/threads/dan-c4-sfx.1923191/page-37 HTTP/2.0&quot; &quot;-&quot; &quot;Mozilla/5.0 (iPad; CPU OS 15_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3 Mobile/15E148 Safari/604.1&quot;
::ffff:1.2.3.4 [24/Feb/2022:16:28:27 +0100] 200 &quot;GET /forum/threads/dan-c4-sfx.1923191/page-37 HTTP/2.0&quot; &quot;-&quot; &quot;Mozilla/5.0 (iPad; CPU OS 15_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3 Mobile/15E148 Safari/604.1&quot;
::ffff:1.2.3.4 [24/Feb/2022:16:28:27 +0100] 200 &quot;GET /forum/threads/dan-c4-sfx.1923191/page-37 HTTP/2.0&quot; &quot;-&quot; &quot;Mozilla/5.0 (iPad; CPU OS 15_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3 Mobile/15E148 Safari/604.1&quot;
::ffff:1.2.3.4 [24/Feb/2022:16:28:27 +0100] 200 &quot;GET /forum/threads/dan-c4-sfx.1923191/page-37 HTTP/2.0&quot; &quot;-&quot; &quot;Mozilla/5.0 (iPad; CPU OS 15_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3 Mobile/15E148 Safari/604.1&quot;
::ffff:1.2.3.4 [24/Feb/2022:16:28:27 +0100] 200 &quot;GET /forum/threads/dan-c4-sfx.1923191/page-37 HTTP/2.0&quot; &quot;-&quot; &quot;Mozilla/5.0 (iPad; CPU OS 15_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3 Mobile/15E148 Safari/604.1&quot;
::ffff:1.2.3.4 [24/Feb/2022:16:28:27 +0100] 200 &quot;GET /forum/threads/dan-c4-sfx.1923191/page-37 HTTP/2.0&quot; &quot;-&quot; &quot;Mozilla/5.0 (iPad; CPU OS 15_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3 Mobile/15E148 Safari/604.1&quot;
::ffff:1.2.3.4 [24/Feb/2022:16:28:27 +0100] 200 &quot;GET /forum/threads/dan-c4-sfx.1923191/page-37 HTTP/2.0&quot; &quot;-&quot; &quot;Mozilla/5.0 (iPad; CPU OS 15_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3 Mobile/15E148 Safari/604.1&quot;
::ffff:1.2.3.4 [24/Feb/2022:16:28:27 +0100] 200 &quot;GET /forum/threads/dan-c4-sfx.1923191/page-37 HTTP/2.0&quot; &quot;-&quot; &quot;Mozilla/5.0 (iPad; CPU OS 15_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3 Mobile/15E148 Safari/604.1&quot;
::ffff:1.2.3.4 [24/Feb/2022:16:28:27 +0100] 200 &quot;GET /forum/threads/dan-c4-sfx.1923191/page-37 HTTP/2.0&quot; &quot;-&quot; &quot;Mozilla/5.0 (iPad; CPU OS 15_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3 Mobile/15E148 Safari/604.1&quot;
::ffff:1.2.3.4 [24/Feb/2022:16:28:27 +0100] 200 &quot;GET /forum/threads/dan-c4-sfx.1923191/page-37 HTTP/2.0&quot; &quot;-&quot; &quot;Mozilla/5.0 (iPad; CPU OS 15_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3 Mobile/15E148 Safari/604.1&quot;
::ffff:1.2.3.4 [24/Feb/2022:16:28:28 +0100] 200 &quot;GET /forum/threads/dan-c4-sfx.1923191/page-37 HTTP/2.0&quot; &quot;-&quot; &quot;Mozilla/5.0 (iPad; CPU OS 15_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3 Mobile/15E148 Safari/604.1&quot;
::ffff:1.2.3.4 [24/Feb/2022:16:28:28 +0100] 200 &quot;GET /forum/threads/dan-c4-sfx.1923191/page-37 HTTP/2.0&quot; &quot;-&quot; &quot;Mozilla/5.0 (iPad; CPU OS 15_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3 Mobile/15E148 Safari/604.1&quot;
::ffff:1.2.3.4 [24/Feb/2022:16:28:28 +0100] 429 &quot;GET /forum/threads/dan-c4-sfx.1923191/page-37 HTTP/2.0&quot; &quot;-&quot; &quot;Mozilla/5.0 (iPad; CPU OS 15_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3 Mobile/15E148 Safari/604.1&quot;

I&apos;ve made video demo: https://www.youtube.com/watch?v=FNwTbiydb5o

Originally reported here by our users: https://www.computerbase.de/forum/threads/safari-problem-auf-computerbase-http-error-429-too-many-requests.2073015/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1846064</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-02-25 09:56:58 -0800</bug_when>
    <thetext>&lt;rdar://problem/89479503&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1846594</commentid>
    <comment_count>2</comment_count>
    <who name="Steffen Weber">steffen.weber</who>
    <bug_when>2022-02-28 03:50:04 -0800</bug_when>
    <thetext>I&apos;ve discovered a workaround: Just add the HTTP header &quot;Cross-Origin-Opener-Policy: same-origin&quot; to the attachment (was already there for normal page / HTML requests). I&apos;ve just applied this change to our website (which means that the reproduction steps above don&apos;t work anymore but I hope that the hint regarding the &quot;Cross-Origin-Opener-Policy&quot; will help fix this issue).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1869243</commentid>
    <comment_count>3</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2022-05-16 08:55:12 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 235475 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1869601</commentid>
    <comment_count>4</comment_count>
    <who name="Steffen Weber">steffen.weber</who>
    <bug_when>2022-05-17 00:15:53 -0700</bug_when>
    <thetext>Which Safari version contains the fix? 15.4?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1869684</commentid>
    <comment_count>5</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2022-05-17 08:07:08 -0700</bug_when>
    <thetext>(In reply to Steffen Weber from comment #4)
&gt; Which Safari version contains the fix? 15.4?

iOS 15.4 / macOS 12.3 should have the fix (not sure what that translates to in Safari versions).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>