mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium revision d483fb77 (#474934)
- CefLifeSpanHandler::OnBeforePopup is now called on the UI thread. - Remove CefBrowserSettings.javascript_open_windows which is no longer supported.
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
// can be found in the LICENSE file.
|
||||
|
||||
#include "include/base/cef_bind.h"
|
||||
#include "include/test/cef_test_helpers.h"
|
||||
#include "include/wrapper/cef_closure_task.h"
|
||||
#include "tests/ceftests/test_handler.h"
|
||||
#include "tests/gtest/include/gtest/gtest.h"
|
||||
@@ -86,6 +87,10 @@ class JSDialogTestHandler : public TestHandler {
|
||||
|
||||
DestroyTest();
|
||||
} else if (type_ == TYPE_ONBEFOREUNLOAD) {
|
||||
// Send the page a user gesture to enable firing of the onbefureunload
|
||||
// handler. See https://crbug.com/707007.
|
||||
CefExecuteJavaScriptWithUserGestureForTests(frame, CefString());
|
||||
|
||||
// Trigger the onunload handler.
|
||||
frame->LoadURL(kEndUrl);
|
||||
}
|
||||
|
Reference in New Issue
Block a user