close

Filter

loading table of contents...

Release Notes / Version 12.2406.4

Table Of Contents

CoreMedia Studio Client

Studio No Longer Uses the Deprecated "unload" Event

Chrome's deprecation of the unload event broke window and service handling in Studio. Loading Studio logged several violations of the form Permissions policy violation: unload is not allowed in this document., and window management could fail afterwards — for example, re-opening the content app from the burger menu after it had been closed ended up on an about:blank page.

All remaining unload listeners have been removed from the Studio client:

  • @coremedia/service-agent has been updated to 2.1.3, which uses pagehide/pageshow instead of unload.

  • The connected-window observer no longer registers an unload listener. Its subscription lives as long as the document and is discarded together with the window.

  • IFrameComponent now observes the teardown of the framed document with a pagehide listener on the framed window, because no unload-like event is ever dispatched at the iframe element. PreviewIFrameBase is notified explicitly when Studio itself navigates the preview, as the framed preview document is not same-origin and therefore cannot be observed.

  • A new Ext JS override, com.coremedia.ui.overrides.ElementSuppressUnloadListenerOverride, prevents the Ext JS DOM event publishers and the drag-and-drop manager from registering unload listeners on the window. Their cleanup was only ever required for Internet Explorer 6 to 8; modern browsers release that per-document state on their own.

As a side effect, Studio documents are eligible for the browser's back/forward cache again, which a single unload listener would have prevented.

If your own Studio customizations or plugins register unload listeners, replace them with pagehide — and with pageshow where you need to react to a document being restored from the back/forward cache.

(CMS-31780)

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.