Open oleteacher opened 3 days ago
I noticed the issue with dialogs, however devtools worked for me fine. I recall I changed runtime style from chrome
to alloy
later and I think this may have broken devtools.
popups.php works ok for me.
Commit https://github.com/cztomczak/phpdesktop/commit/8ceda28bc3464b0a13df69bb2356ad4b449ee7f7 adds runtime_style
setting configurable through settings.json
.
runtime_style
This option is supported only on some platforms.
Default value: "alloy"
Alternative value is "chrome" which can provide more features and looks similar to native Chrome.
With chrome runtime style dialogs do work ok. Popups look like native Chromium browser with a tab.
I am mostly testing alloy style which hides Chromium styles.
Developer Tools fixed in commit https://github.com/cztomczak/phpdesktop/commit/0a04732e9dd141d9054ad05077dd77f5cf279bca.
Thank you for looking into!
Dialogs don't work due to bug in upstream CEF: https://github.com/chromiumembedded/cef/issues/3818 https://magpcss.org/ceforum/viewtopic.php?f=6&t=20041
New release 130.1 is ready: https://github.com/cztomczak/phpdesktop/releases/tag/chrome-v130.1
That is great Czarek. Thank you. Will close this now.
No popup dialogs shown. Thought you may find this helpful:
- 11:50:15.672 DEBUG: JS dialog: Test alert
- 11:50:17.672 DEBUG: JS dialog: Test confirm
- 11:50:17.672 INFO: JS Console: [Warning] A window.confirm() dialog generated by this page was suppressed because this page is not the active tab of the front window. Please make sure your dialogs are triggered by user interactions to avoid this situation. https://www.chromestatus.com/feature/5140698722467840(http://127.0.0.1:50988/dialogs.php:0)
- 11:50:18.859 DEBUG: JS dialog: Test
- 11:50:18.859 INFO: JS Console: [Warning] A window.prompt() dialog generated by this page was suppressed because this page is not the active tab of the front window. Please make sure your dialogs are triggered by user interactions to avoid this situation. https://www.chromestatus.com/feature/5637107137642496(http://127.0.0.1:50988/dialogs.php:0)
JS dialogs are still unfixed, so you may re-open this. Dialogs will be fixed when it's fixed in upstream and phpdesktop updates Chromium version to sync with upstream.
Thanks for releasing Windows Chrome 130.
I do not think it is my end, have tried on my desktop and laptop.
Cannot get any of the JavaScript alerts to work in dialogs.php
Cannot get the dev tools to show using either f12 or Show Dev Tools (right click). Using right click, there is no log shown, using f12 there is log entry shown.
Maybe this will help:
Default dialogs.php debug.log:
Testing a custom dialogs.php debug.log: