[Webkit-unassigned] [Bug 26064] Typing 'window.location.href = "#content"' in the Console loads the Inspector in the inspected page

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Aug 21 23:42:41 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=26064


Joseph Pecoraro <joepeck at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |joepeck at webkit.org




--- Comment #3 from Joseph Pecoraro <joepeck at webkit.org>  2009-08-21 23:42:41 PDT ---
Update.  This now shows:

> window.location.href
https://bugs.webkit.org/show_bug.cgi?id=26064

> window.location.href = '#content'

Not allowed to load local resource:
file:///Applications/WebKit.app/Contents/Frameworks/10.5/WebCore.framework/Resources/inspector/inspector.html#content

This begs the question, why does window.location properly show the inspected
window's value, but on setting it seems to use the wrong environment.  I did a
quick test with iframes and was able to emulate the same weird (or at least
unexpected) behavior with an inner iframe and window.top.location:
http://bogojoker.com/x/location_test/

JavaScript on an iframe's page shows the outer page's url when it does
window.top.location.href, but seems to use its own url when assigning to
window.top.location.href.  Its too late for me to look at any specifications! 
Thoughts?

-- 
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