Commit 3bae0982 authored by yoli@rim.com's avatar yoli@rim.com
Browse files

[BlackBerry] Prevent window.close() from closing pages that are not opened by JS

https://bugs.webkit.org/show_bug.cgi?id=98190

Reviewed by Antonio Gomes.

RIM PR# 217812.
Only pages opened by JS can be closed by JS.

* WebCoreSupport/ChromeClientBlackBerry.cpp:
(WebCore::ChromeClientBlackBerry::closeWindowSoon):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130204 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent cd4b4d8e
2012-10-02 Yong Li <yoli@rim.com>
[BlackBerry] Prevent window.close() from closing pages that are not opened by JS
https://bugs.webkit.org/show_bug.cgi?id=98190
Reviewed by Antonio Gomes.
RIM PR# 217812.
Only pages opened by JS can be closed by JS.
* WebCoreSupport/ChromeClientBlackBerry.cpp:
(WebCore::ChromeClientBlackBerry::closeWindowSoon):
2012-10-01 Brady Eidson <beidson@apple.com>
Remove the Safari 2 -> Safari 3 icon database import code.
......
......@@ -392,7 +392,8 @@ bool ChromeClientBlackBerry::runBeforeUnloadConfirmPanel(const String& message,
void ChromeClientBlackBerry::closeWindowSoon()
{
m_webPagePrivate->m_client->scheduleCloseWindow();
if (m_webPagePrivate->m_page->openedByDOM())
m_webPagePrivate->m_client->scheduleCloseWindow();
}
void ChromeClientBlackBerry::setStatusbarText(const String& status)
......
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