Bug 4753
| Summary: | Javascript window.open does not allow title change | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Kevin Gale <keving> |
| Component: | JavaScriptCore | Assignee: | Maciej Stachowiak <mjs> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | Keywords: | HasReduction |
| Priority: | P2 | ||
| Version: | 312.x | ||
| Hardware: | Mac | ||
| OS: | OS X 10.3 | ||
Kevin Gale
The following Javascript creates a new window and writes HTML into it to set the title:
msgWindow=window.open("","","menubar=yes,scrollbars=no,status=yes,width=300,height=300");
msgWindow.document.write("<html><head><title>Message window<\/title><\/head><\/html>");
msgWindow.document.close();
Unfortunately, under Safari the title never changes (IE / FireFox under Mac & Windows works okay).
Executing the following Javascript after creating the window to try and change the window title also
fails:
msgWindow.document.title = "123";
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Mark Rowe (bdash)
Confirmed with ToT WebKit. The title of the newly created window is not set.
Alexey Proskuryakov
Inability to set the title is actually a bug in Safari, not WebKit. Bug 3524 is kept open to track other closely related issues, though.
*** This bug has been marked as a duplicate of 3524 ***