Changeset 40371 in webkit


Ignore:
Timestamp:
Jan 29, 2009, 1:37:18 PM (16 years ago)
Author:
beidson@apple.com
Message:

WebCore:

2009-01-29 Brady Eidson <beidson@apple.com>

Reviewed by Oliver Hunt

<rdar://problem/6337157> hyundaiusa.com closes window or tab during load

Test: fast/loader/subframe-self-close.html

  • page/DOMWindow.cpp: (WebCore::DOMWindow::close): Only allow mainframes to close the window.

LayoutTests:

2009-01-29 Brady Eidson <beidson@apple.com>

Reviewed by Oliver Hunt

<rdar://problem/6337157> hyundaiusa.com closes window or tab during load

  • fast/loader/resources/subframe-self-close.html: Added.
  • fast/loader/subframe-self-close-expected.txt: Added.
  • fast/loader/subframe-self-close.html: Added.
Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r40368 r40371  
     12009-01-29  Brady Eidson  <beidson@apple.com>
     2
     3        Reviewed by Oliver Hunt
     4
     5        <rdar://problem/6337157> hyundaiusa.com closes window or tab during load
     6
     7        * fast/loader/resources/subframe-self-close.html: Added.
     8        * fast/loader/subframe-self-close-expected.txt: Added.
     9        * fast/loader/subframe-self-close.html: Added.
     10
    1112009-01-29  Alexey Proskuryakov  <ap@webkit.org>
    212
  • trunk/WebCore/ChangeLog

    r40370 r40371  
     12009-01-29  Brady Eidson  <beidson@apple.com>
     2
     3        Reviewed by Oliver Hunt
     4
     5        <rdar://problem/6337157> hyundaiusa.com closes window or tab during load
     6
     7        Test: fast/loader/subframe-self-close.html
     8
     9        * page/DOMWindow.cpp:
     10        (WebCore::DOMWindow::close): Only allow mainframes to close the window.
     11
    1122009-01-29  Nikolas Zimmermann  <nikolas.zimmermann@torchmobile.com>
    213
  • trunk/WebCore/page/DOMWindow.cpp

    r40315 r40371  
    450450        return;
    451451
     452    Page* page = m_frame->page();
     453    if (!page)
     454        return;
     455
     456    if (m_frame != page->mainFrame())
     457        return;
     458
    452459    Settings* settings = m_frame->settings();
    453460    bool allowScriptsToCloseWindows =
Note: See TracChangeset for help on using the changeset viewer.