Bug 74544

Summary: Google Translate changes scroll position when pound sign present in URL
Product: WebKit Reporter: David <david.huerta>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: UNCONFIRMED    
Severity: Normal CC: ap
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac (Intel)   
OS: OS X 10.6   
URL: http://davidhuerta.me/google_translate_test/#

David
Reported 2011-12-14 14:50:17 PST
I've discovered an oddity in the behavior of the Google Translate tool (Display mode: inline, Dropdown only) web widget in Webkit (r102809). I added the translate snippet to a site I'm working on, and now when I visit said page it scrolls itself down to near the bottom of the page if the URL I navigated to has a pound sign (#) at the end. I have no anchor links or anything near the bottom, and to demonstrate this oddity in action, I created a simple page with only some lorem ipsum text and the Google translate snippet. If you visit http://davidhuerta.me/google_translate_test/# (on a Webkit build), your scrollbar will be moved to near the bottom, despite it having no reason to. If you visit http://davidhuerta.me/google_translate_test/ the scroll position won't be affected. Non-Webkit browsers Opera and Firefox (I've only tested in OS X) are not affected, it seems.
Attachments
Alexey Proskuryakov
Comment 1 2011-12-14 17:19:47 PST
Also happens in Safari 5.1, so not a regression.
Note You need to log in before you can comment on or make changes to this bug.