Bug 17436 - (Needs test) window.location should be about:blank while page is loading
Summary: (Needs test) window.location should be about:blank while page is loading
Status: UNCONFIRMED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore JavaScript (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-19 14:17 PST by Tony Chang
Modified: 2010-09-15 16:01 PDT (History)
2 users (show)

See Also:


Attachments
layout test (531 bytes, text/html)
2008-02-19 14:22 PST, Tony Chang
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tony Chang 2008-02-19 14:17:56 PST
According to the HTML5 spec, while resolving a window.open, the new window location should be about:blank.
http://www.whatwg.org/specs/web-apps/current-work/#open2
http://www.whatwg.org/specs/web-apps/current-work/#browsing0

In ToT WebKit, the location is /.  This appears to be in WebCore/bindings/js/JSLocation.cpp which returns prettyURL() + "/", but sometimes the KURL is invalid so prettyURL() returns "".
Comment 1 Tony Chang 2008-02-19 14:22:04 PST
Created attachment 19215 [details]
layout test

Here's a layout test that output the value of window.location during a window.open.  This test would go in LayoutTests/fast/dom/Window/.
Comment 2 Tarun Nainani 2010-09-15 12:34:51 PDT
This bug no longer exist. Please close this bug.
Comment 3 Tony Chang 2010-09-15 14:45:15 PDT
I can't seem to repro either.
Comment 4 Alexey Proskuryakov 2010-09-15 16:01:31 PDT
We even have a test attached, should we land it?