[Webkit-unassigned] [Bug 23813] New: window.open followed by document.write results in unsavable pages
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Feb 6 20:01:00 PST 2009
https://bugs.webkit.org/show_bug.cgi?id=23813
Summary: window.open followed by document.write results in
unsavable pages
Product: WebKit
Version: 528+ (Nightly build)
Platform: Macintosh
URL: http://james.wheare.org/stuff/bugs/safari/overwritingpop
ups
OS/Version: Mac OS X 10.5
Status: UNCONFIRMED
Severity: Minor
Priority: P2
Component: WebKit Misc.
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: james at wheare.org
If a window opened with javascript window.open has all its contents overwritten
with document.write() by the opening script, the page contents can't be saved,
and the View Source option is greyed out and disabled.
The save dialog's "Export As:" field defaults to "DownloadedFile.html" and on
confirm, the following error alert is shown:
The document "DownloadedFile" could not be exported as "DownloadedFile.html".
This bug does NOT affect windows opened with an empty URL (about:blank). These
windows are successfully saved as "unknown.webarchive" by default and the View
Source option is not greyed out.
---
This technique is employed by some banks to provide popups for printing and
saving.
This issue previously affected Version 3.0.4 (5523.10.6) with the additional
issues of not being able to view the DOM in the web inspector, or print the
rendered page. These issues have been resolved as of the latest nightly
---
Test cases at URL
---
Source:
function doPopup(url) {
var win = window.open(url);
win.document.write("<html><body><h1>This is overwritten
content</h1></body></html>");
}
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list