<?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>282347</bug_id>
          
          <creation_ts>2024-10-30 12:36:23 -0700</creation_ts>
          <short_desc>Setting overflow:hidden on &lt;body&gt; (when body is the scrolling element) will only work if Safari address bar is visible</short_desc>
          <delta_ts>2024-10-30 16:34:52 -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>Scrolling</component>
          <version>Safari 17</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>240859</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Zouhir">zouhir</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2071683</commentid>
    <comment_count>0</comment_count>
    <who name="Zouhir">zouhir</who>
    <bug_when>2024-10-30 12:36:23 -0700</bug_when>
    <thetext>## Repro steps

- Open https://demo-webkit-scroll-lock.glitch.me in Safari Browser

### Case a

- a.1 Make sure Safari Address Bar is **visible**

- a.2 Click lock scrolling button, this will add `overflow: hidden` to the body element

- a.3 Try to scroll up and down


### Case b

- a.1 Make sure Safari Address Bar is **HIDDEN**

- a.2 Click lock scrolling button, this will add `overflow: hidden` to the body element

- a.3 Try to scroll up and down

## Expected

- Case a: locks scrolling / document does not scroll

- Case b: locks scrolling / document does not scroll


## Actual

- Case a: successful, locks scrolling / document does not scroll

- Case b: fails


## Conclusion

The visibility of the address bar seems to interfere with scrolling and Safari&apos;s ability to apply consistent overflow rules on the scrolling element when it&apos;s both hidden and visible.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2071757</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2024-10-30 16:34:52 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 240859 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>