[wp-trac] [WordPress Trac] #39097: Links in embeds can't be opened in a new tab

WordPress Trac noreply at wordpress.org
Thu Dec 8 20:26:09 UTC 2016


#39097: Links in embeds can't be opened in a new tab
---------------------------------------+------------------------------
 Reporter:  smerriman                  |       Owner:
     Type:  defect (bug)               |      Status:  reopened
 Priority:  normal                     |   Milestone:  Awaiting Review
Component:  Embeds                     |     Version:
 Severity:  normal                     |  Resolution:
 Keywords:  needs-patch needs-testing  |     Focuses:
---------------------------------------+------------------------------

Comment (by swissspidy):

 > I'm sure there were good reasons for hijacking the links in the way done
 currently, but most uses of iframes would never require this (think, say,
 Twitter embeds) - does the gain outweigh the cost?

 The problem is, when you embed tweets you know they come from a trusted
 source. With oEmbed discovery, you can basically embed ''any'' website,
 which makes it quite dangerous. Using JavaScript trickery, one could
 easily trick visitors into  visiting sites they didn't intend to visit.
 That's why currently you can only click on links leading to the same host.

 In #35239 I shared an idea on how to resolve this and enable opening links
 in a new tab by using cmd/ctrl click and why it's not possible right now.
 Hence my point that this ticket here is a duplicate.

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


More information about the wp-trac mailing list