[wp-trac] [WordPress Trac] #28924: Local autosave may throw error for suspend() and resume()
WordPress Trac
noreply at wordpress.org
Wed Jul 16 18:26:08 UTC 2014
#28924: Local autosave may throw error for suspend() and resume()
--------------------------+-----------------
Reporter: azaozz | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.0
Component: Autosave | Version: 3.9
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------
In (the rare) case when the browser doesn't support sessionStorage,
wp.autosave.local returns early and doesn't expose any methods. Plugins
that are trying to use any of them would trigger an error unless they
check specifically if the method exists.
Ideally it should always expose the methods and they should return early
when the browser doesn't support sessionStorage.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28924>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list