Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Inline Popup LOV not working on second modal dialog open - Permissions policy violation: unload

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

Comments
Post Details
Added 5 days ago
1 comment
77 views