[Webkit-unassigned] [Bug 12753] Incorrect values for window.screenTop and window.screenLeft
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jul 18 03:34:31 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=12753
Dimitri Allegoet <dallegoet at prestaconcept.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dallegoet at prestaconcept.net
--- Comment #4 from Dimitri Allegoet <dallegoet at prestaconcept.net> 2012-07-18 03:34:30 PST ---
Greetings everyone,
The malfunctioning of screenLeft and screenTop has another dramatic effect.
When in an Iframe, these coordinates are completely off, especially with scrolling.
I believe the expected behavior in this case is to return the screen coordinates of the top-left pixel of the current document, i.e. the iframe one.
In the kjs_window.cpp file, isn’t the fix as simple as:
case ScreenTop:
if (!isSafeScript(exec))
return jsUndefined();
return jsNumber(m_frame->view()->windowRect().y());
This works perfectly well under IE and Firefox (Firefox has its own set of property names; I can retrieve them if you like).
It would be great if this can be fixed as it prevents our client’s widgets to work correctly under Chrome/Safari :(
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list