<?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>267421</bug_id>
          
          <creation_ts>2024-01-11 10:27:48 -0800</creation_ts>
          <short_desc>iOS 17: Back / forward navigation doesn&apos;t properly restore scroll position if app banner is present</short_desc>
          <delta_ts>2024-01-12 00:51:35 -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>Scrolling</component>
          <version>Safari 17</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 17</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=231563</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="Mads Erik Forberg">mads</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2004487</commentid>
    <comment_count>0</comment_count>
    <who name="Mads Erik Forberg">mads</who>
    <bug_when>2024-01-11 10:27:48 -0800</bug_when>
    <thetext>Steps to reproduce:
1. Install app related to www.vg.no: https://apps.apple.com/us/app/vg/id381071021
2. After app is installed, go to https://www.vg.no/?ios-bug=true (query parameter is there to avoid JavaScript workaround)
3. Click a link with https://www.vg.no origin (to get the app banner) on the front page.
4. Swipe back to the front page and the scroll will not be restored.

Screen recording of the issue: https://drive.google.com/file/d/17c5NL52DZ4El60k3TiCZL6pyNqK8_vxm/view?usp=sharing


Tested on: iOS 17.3 beta (21D5044a) - iPhone 14 Pro</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2004488</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-01-11 10:30:56 -0800</bug_when>
    <thetext>&lt;rdar://problem/120853821&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2004497</commentid>
    <comment_count>2</comment_count>
    <who name="Mads Erik Forberg">mads</who>
    <bug_when>2024-01-11 10:40:36 -0800</bug_when>
    <thetext>I log out `window.scrollY` + `window.history.scrollRestoration` to the JS console on the when using the `?ios-bug=true` param:
https://i.imgur.com/N5qlccp.png</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2004631</commentid>
    <comment_count>3</comment_count>
    <who name="Mads Erik Forberg">mads</who>
    <bug_when>2024-01-12 00:51:35 -0800</bug_when>
    <thetext>A theory is that it happens if the next page has app-banner but the first page doesn&apos;t.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>