Skip to content

Commit 517f0aa

Browse files
committed
Added v8_context_snapshot.bin to output and updated cef_handler def for issue #72
1 parent 20008c2 commit 517f0aa

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

src/build.go

+2
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,7 @@ func copyResourcesLinux(qmakePath string, target string) error {
493493
"libcef.so",
494494
"natives_blob.bin",
495495
"snapshot_blob.bin",
496+
"v8_context_snapshot.bin",
496497
)
497498
if err != nil {
498499
return err
@@ -577,6 +578,7 @@ func copyResourcesWindows(qmakePath string, target string) error {
577578
"chrome_elf.dll",
578579
"natives_blob.bin",
579580
"snapshot_blob.bin",
581+
"v8_context_snapshot.bin",
580582
"d3dcompiler_43.dll",
581583
"d3dcompiler_47.dll",
582584
"libEGL.dll",

src/cef/cef_handler.cc

+2-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,8 @@ CefRequestHandler::ReturnValue CefHandler::OnBeforeResourceLoad(
221221
bool CefHandler::OnBeforeBrowse(CefRefPtr<CefBrowser> /*browser*/,
222222
CefRefPtr<CefFrame> /*frame*/,
223223
CefRefPtr<CefRequest> /*request*/,
224-
bool) {
224+
bool /*user_gesture*/,
225+
bool /*is_redirect*/) {
225226
return false;
226227
}
227228

src/cef/cef_handler.h

+1
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ class CefHandler :
223223
bool OnBeforeBrowse(CefRefPtr<CefBrowser> browser,
224224
CefRefPtr<CefFrame> frame,
225225
CefRefPtr<CefRequest> request,
226+
bool user_gesture,
226227
bool is_redirect) override;
227228
bool OnCertificateError(CefRefPtr<CefBrowser> browser,
228229
cef_errorcode_t cert_error,

0 commit comments

Comments
 (0)