mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
- Change the way that application shutdown works in order to support JavaScript 'onbeforeunload' handling (issue #853). See comments in cef_life_span_handler.h for a detailed description of the new shutdown process.
- Fix a crash on Linux during window destruction (issue #681). git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1149 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -1018,7 +1018,7 @@ class OrderNavTestHandler : public TestHandler {
|
||||
"window.open('" + std::string(KONav2) + "');", CefString(), 0);
|
||||
} else {
|
||||
// Close the popup window.
|
||||
browser_popup_->GetHost()->CloseBrowser();
|
||||
browser_popup_->GetHost()->CloseBrowser(false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1502,7 +1502,7 @@ class PopupNavTestHandler : public TestHandler {
|
||||
} else if (url == kPopupNavPopupUrl) {
|
||||
if (allow_) {
|
||||
got_popup_load_end_.yes();
|
||||
browser->GetHost()->CloseBrowser();
|
||||
browser->GetHost()->CloseBrowser(false);
|
||||
DestroyTest();
|
||||
} else {
|
||||
EXPECT_FALSE(true); // Not reached.
|
||||
@@ -1513,7 +1513,7 @@ class PopupNavTestHandler : public TestHandler {
|
||||
}
|
||||
|
||||
private:
|
||||
virtual void DestroyTest() {
|
||||
virtual void DestroyTest() OVERRIDE {
|
||||
EXPECT_TRUE(got_on_before_popup_);
|
||||
if (allow_)
|
||||
EXPECT_TRUE(got_popup_load_end_);
|
||||
|
Reference in New Issue
Block a user