Bug 21747

Summary: (Needs test) Changing the document.body to overflow hidden and back to
Product: WebKit Reporter: Uili <uili>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: UNCONFIRMED    
Severity: Normal CC: ap, matiasnu, mitz, paul.n
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: OS X 10.5   
Attachments:
Description Flags
Shows the bug in a simple html + javascript file
none
Shows the bug in a simple html + javascript file none

Uili
Reported 2008-10-20 00:34:56 PDT
Changing the document.body to overflow hidden and back to overflow auto (default state) via javascript the scroll bars do not reappear on pages that expand the size of the browser viewport. Error also occurs in 525.x (Safari 3.1) Mac and Windows.
Attachments
Shows the bug in a simple html + javascript file (3.53 KB, text/html)
2008-10-20 00:36 PDT, Uili
no flags
Shows the bug in a simple html + javascript file (3.53 KB, text/html)
2008-10-20 00:37 PDT, Uili
no flags
Uili
Comment 1 2008-10-20 00:36:23 PDT
Created attachment 24518 [details] Shows the bug in a simple html + javascript file
Uili
Comment 2 2008-10-20 00:37:18 PDT
Created attachment 24519 [details] Shows the bug in a simple html + javascript file
Paul Nicholls
Comment 3 2009-04-26 19:05:24 PDT
I also see this both in an older version of Safari running on OSX and on Safari 4 beta on Windows Vista. It also happens in Google Chrome. The page does become scrollable again - the scrollbars just don't reappear. If you scroll manually with scroll wheel / two-finger scrolling / cursor keys etc, the scrollbars reappear. As a workaround for this issue, I've had to make the page auto-scroll 1px down and 1px back up (in case it's scrolled hard to the top or hard to the bottom): window.scrollBy(0,1); window.scrollBy(0,-1); It does result in a minor visible scroll, but since it's 1px at most, and it happens in conjunction with the scrollbar reappearing, it's not a huge deal. Would be nice to see this issue fixed in Webkit, though.
Matias
Comment 4 2009-11-26 07:59:29 PST
Confirmed in: OS X Webkit Nightly 4.0.4 (6531.21.10, r51397) Chrome 4.0.249.12 Win 7 Chrome 3.0.195.33
Alexey Proskuryakov
Comment 5 2010-05-18 13:36:27 PDT
Duplicate of bug 19852?
Matias
Comment 6 2011-01-20 05:29:20 PST
Seems to work now, checked the following browsers; Safari Mac 5.0.3 (6533.19.4) Safari Win 5.0 (7533.16) Chrome Win 8.0.552.237 Chromium Mac 10.0.639.0 (71420)
Uili
Comment 7 2011-01-20 06:02:35 PST
Agreed it appears to have been fixed.
Alexey Proskuryakov
Comment 8 2011-01-20 08:29:08 PST
I doubt that it was fixed intentionally, so it's best to land a regression test to prevent future breakage.
Note You need to log in before you can comment on or make changes to this bug.