Make WordPress Core

Opened 2 years ago

Last modified 2 years ago

#55742 new defect (bug)

In Safari Browser, when we click on preview in new tab then it opens a page/post in same tab

Reported by: kmadhak's profile kmadhak Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.9.3
Component: Administration Keywords:
Focuses: administration Cc:


When we create a page/post and after updating its content we can preview a page/post in new tab then in chrome it always open in new tab but in safari the preview in new tab works only once and from the second time it always open in same tab, for more detail please find the attachment and let me know if there is anything.

Attachments (1)

Recording #37.mp4 (6.8 MB) - added by kmadhak 2 years ago.
For better understanding I have attached a video

Change History (3)

2 years ago

For better understanding I have attached a video

#1 @sabernhardt
2 years ago

Technically it is not always a new tab, but it opens a named preview frame for that post (for example, target="wp-preview-70"). If you have unsaved changes in one tab, you would not want to make other changes in another tab and lose the earlier changes. However, Chrome and Edge seem to ignore that in the editor, opening the preview in a new tab anyway.

The same target value has been used for the Classic Editor preview link—and in the admin toolbar—before using it in the block editor. To avoid confusion, the block editor link text might be revised to "open in a preview tab" or something similar. I also question whether the Edit Post link belongs in the toolbar when previewing a post.

Related: #20233

#2 @kmadhak
2 years ago

Hello @sabernhardt ,

Greeting of the day!!!

As we know the text "Preview in new tab" of link so it should open in new tab, so I think we should change the text of the link which you have mentioned above or similar to that.

Thank you.

Note: See TracTickets for help on using tickets.