WordPress/wp-admin/js/widgets
Weston Ruter 2869e3a186 Administration: Remove deprecated unload event handlers and use pagehide (and pageshow) when appropriate.
Use `pagehide` event instead of `unload` in the following cases:

* For classic editor to release the post lock.
* In Text widget to rebuild editor after dragging widget to new location in classic widgets interface.
* To clear out the `window.name` when navigating away from a post preview.
* To suspend heartbeat, while also using `pageshow` event to resume as if it had been a focused tab in case page restored from bfcache. 

Also:

* Remove obsolete mobile cleanup code in `js/_enqueues/lib/gallery.js` (introduced in [9894]). Do same for `src/js/_enqueues/wp/media/models.js` (introduced in [22872]). See #22552.
* Remove obsolete Firefox-specific workaround in `js/_enqueues/wp/mce-view.js` from [39282]. See #38511.

Fixes #55491.
Props spenserhale, westonruter, adamsilverstein, azaozz, shawfactor, peterwilsoncc, swissspidy.
Built from https://develop.svn.wordpress.org/trunk@56809


git-svn-id: http://core.svn.wordpress.org/trunk@56321 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-10-09 21:31:27 +00:00
..
custom-html-widgets.js Widgets: Show title and media select fields in Accessibility Mode. 2021-08-31 13:51:00 +00:00
custom-html-widgets.min.js Build/Test Tools: Update npm dependencies. 2023-02-02 16:36:32 +00:00
media-audio-widget.js Docs: Replace @returns tags in JS docs with @return. 2019-11-29 18:01:03 +00:00
media-audio-widget.min.js Build/Test Tools: Update some NPM dependencies to the latest versions. 2022-04-08 20:07:18 +00:00
media-gallery-widget.js Docs: Replace @returns tags in JS docs with @return. 2019-11-29 18:01:03 +00:00
media-gallery-widget.min.js Build/Test Tools: Update some NPM dependencies to the latest versions. 2022-04-08 20:07:18 +00:00
media-image-widget.js Docs: Replace @returns tags in JS docs with @return. 2019-11-29 18:01:03 +00:00
media-image-widget.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
media-video-widget.js Docs: Replace @returns tags in JS docs with @return. 2019-11-29 18:01:03 +00:00
media-video-widget.min.js Build/Test Tools: Update npm dependencies. 2023-02-02 16:36:32 +00:00
media-widgets.js Widgets: Show title and media select fields in Accessibility Mode. 2021-08-31 13:51:00 +00:00
media-widgets.min.js Build/Test Tools: Update npm dependencies. 2023-02-02 16:36:32 +00:00
text-widgets.js Administration: Remove deprecated unload event handlers and use pagehide (and pageshow) when appropriate. 2023-10-09 21:31:27 +00:00
text-widgets.min.js Administration: Remove deprecated unload event handlers and use pagehide (and pageshow) when appropriate. 2023-10-09 21:31:27 +00:00