Commit 77648a3d authored by sfalken's avatar sfalken
Browse files

Initialize WindowFeatures struct before using it.

        
        Reviewed by Oliver.

        * page/ContextMenuController.cpp:
        (WebCore::openNewWindow):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27641 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 879b0435
2007-11-09 Steve Falkenburg <sfalken@apple.com>
Initialize WindowFeatures struct before using it.
Reviewed by Oliver.
* page/ContextMenuController.cpp:
(WebCore::openNewWindow):
2007-11-08 Timothy Hatcher <timothy@apple.com>
Reviewed by Sam Weinig.
......
......@@ -110,6 +110,7 @@ static void openNewWindow(const KURL& urlToLoad, Frame* frame)
{
if (Page* oldPage = frame->page()) {
WindowFeatures features;
memset(&features, 0, sizeof(WindowFeatures));
if (Page* newPage = oldPage->chrome()->createWindow(frame,
FrameLoadRequest(ResourceRequest(urlToLoad, frame->loader()->outgoingReferrer())), features))
newPage->chrome()->show();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment