WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
UNCONFIRMED
74544
Google Translate changes scroll position when pound sign present in URL
https://bugs.webkit.org/show_bug.cgi?id=74544
Summary
Google Translate changes scroll position when pound sign present in URL
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
Add attachment
proposed patch, testcase, etc.
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.
Top of Page
Format For Printing
XML
Clone This Bug