[wp-trac] [WordPress Trac] #39619: Firefox 50 is showing old "View autosave" dialog

WordPress Trac noreply at wordpress.org
Mon Oct 1 21:17:03 UTC 2018


#39619: Firefox 50 is showing old "View autosave" dialog
--------------------------+------------------------------
 Reporter:  mar1in        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Autosave      |     Version:  4.6.1
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  ui, javascript
--------------------------+------------------------------
Changes (by ramonopoly):

 * focuses:  ui => ui, javascript


Comment:

 I can replicate this issue in Firefox 62 on WordPress
 v5.0-alpha-20181001.162241

 Adding a path to `wpCookies.remove` does remove the cookie and allows
 subsequent checks for post data in localstorage, for example:
 {{{
 wpCookies.remove( 'wp-saving-post', '/wp-admin' );
 }}}
 at
 https://core.trac.wordpress.org/browser/trunk/src/js/_enqueues/wp/autosave.js#L458

 We'd probably want to provide a path when
 [https://core.trac.wordpress.org/browser/trunk/src/js/_enqueues/wp/autosave.js#L419
 setting the cookie], for example `userSettings.url`, so we can use that
 same path when removing.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/39619#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list