Fixed PopupBrowser demo

Fixed the Chromium1BeforePopup event in PopupBrowser
Fixed the PopupBrowser.html file to use a different window name for the new popup windows.
This commit is contained in:
Salvador Díaz Fau 2021-04-22 10:01:13 +02:00
parent 8641a64b65
commit 46f8fde8f9
3 changed files with 3 additions and 2 deletions

View File

@ -12,7 +12,7 @@
<script language="javascript" type="text/javascript">
<!--
function popitup(url) {
newwindow=window.open(url,'name','height=500,width=700');
newwindow=window.open(url,'name' + Math.floor(Date.now() / 1000),'height=500,width=700');
if (window.focus) {newwindow.focus()}
return false;
}

View File

@ -45,6 +45,7 @@ object ChildForm: TChildForm
OnTitleChange = Chromium1TitleChange
OnTooltip = Chromium1Tooltip
OnCursorChange = Chromium1CursorChange
OnBeforePopup = Chromium1BeforePopup
OnBeforeClose = Chromium1BeforeClose
OnGetViewRect = Chromium1GetViewRect
OnGetScreenPoint = Chromium1GetScreenPoint

View File

@ -2,7 +2,7 @@
"UpdateLazPackages" : [
{
"ForceNotify" : true,
"InternalVersion" : 280,
"InternalVersion" : 281,
"Name" : "cef4delphi_lazarus.lpk",
"Version" : "90.5.5.0"
}