Hi everyone,
I'm using Oracle APEX 23.2 and I'm experiencing an issue with an Inline Popup LOV inside a Modal Dialog page.
The problem:
- First time I open the modal dialog → the Popup LOV works correctly
- I close the modal and reopen it → the Popup LOV does not open anymore
What I see in the Chrome console when clicking the LOV button the second time:
[Violation] Permissions policy violation: unload is not allowed in this document. add @ desktop_all.min.js?v=23.2.2 e.openPopupLov @ desktop_all.min.js?v=23.2.2
Additional debugging I did:
- The click handler on the LOV button is present on both first and second open
apex.gPageContext$ points to the correct document on both opens
- When triggering
apexreadyend on second open I get: NotSupportedError: Failed to execute 'define' on 'CustomElementRegistry': the name "a-model-cursor" has already been used with this registry
- The issue only happens in production, not in development or test environments
- The issue is Chrome-specific — Firefox works correctly on all environments
What I already tried without success:
- Intercepting and blocking
unload/beforeunload events via EventTarget.prototype.addEventListener
- Intercepting jQuery
.on() for unload/beforeunload
- Adding
Permissions-Policy: unload=* header on Apache
- Destroying the modal DOM on
dialogclose
apex.page.init() on second open
Has anyone experienced this issue and found a working solution?
Thank you