mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Make |origin_url| parameter to CefJSDialogHandler::OnJsDialog optional since it may be empty for non-standard schemes (issue #1106).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1621 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@ -32,10 +32,6 @@ int CEF_CALLBACK jsdialog_handler_on_jsdialog(
|
||||
DCHECK(browser);
|
||||
if (!browser)
|
||||
return 0;
|
||||
// Verify param: origin_url; type: string_byref_const
|
||||
DCHECK(origin_url);
|
||||
if (!origin_url)
|
||||
return 0;
|
||||
// Verify param: callback; type: refptr_diff
|
||||
DCHECK(callback);
|
||||
if (!callback)
|
||||
@ -44,7 +40,8 @@ int CEF_CALLBACK jsdialog_handler_on_jsdialog(
|
||||
DCHECK(suppress_message);
|
||||
if (!suppress_message)
|
||||
return 0;
|
||||
// Unverified params: accept_lang, message_text, default_prompt_text
|
||||
// Unverified params: origin_url, accept_lang, message_text,
|
||||
default_prompt_text
|
||||
|
||||
// Translate param: suppress_message; type: bool_byref
|
||||
bool suppress_messageBool = (
|
||||
|
Reference in New Issue
Block a user