Opened 2 weeks ago
Last modified 2 weeks ago
#42450 new defect (bug)
Customize: Ensure customize_autosaved requests only use revision of logged-in user
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 4.9.1 | Priority: | normal |
| Severity: | normal | Version: | 4.9 |
| Component: | Customize | Keywords: | has-patch needs-unit-tests |
| Focuses: | Cc: |
Description (last modified by westonruter)
To reproduce:
- Make a change in the customizer to the site title.
- Save draft.
- Open the preview link in another tab, but then append with customize_autosaved=on to the URL.
- Make a second change to the site title, but do not Save Draft.
- Switch to other tab (and reload) and see your second change appearing in the tab even though you did't save draft.
- Now open the preview URL from that other tab in an incognito window, and you'll see the user's autosave revision also applying there unexpectedly.
Previously #42433.
The logic for adding the customize_autosaved param to the frontend preview URL (#39896) should get improved, in case a plugin does want to preview the autosaved state. In the mean time, the preview link feature is only intended for previewing the fully saved state, not autosaves. Nevertheless, the customize_autosaved=on preview URL may not ultimately have the changeset autosave revision fully populated yet since pending changes are sent in POST requests before being written into the changeset at the autosave interval.
Attachments (1)
Change History (5)
#1
@westonruter
2 weeks ago
- Description modified (diff)
#2
@westonruter
2 weeks ago
- Description modified (diff)
#3
@westonruter
2 weeks ago
@westonruter
2 weeks ago
#4
@westonruter
2 weeks ago
- Keywords has-patch needs-unit-tests added
Note: See
TracTickets for help on using
tickets.
In 42118: