diff --git a/src/js/_enqueues/wp/customize/controls.js b/src/js/_enqueues/wp/customize/controls.js
index ed75ba3df1..fc0dbf398e 100644
|
a
|
b
|
|
| 6285 | 6285 | name: 'customize-' + previewFrame.channel() |
| 6286 | 6286 | } ); |
| 6287 | 6287 | previewFrame.iframe.attr( 'onmousewheel', '' ); // Workaround for Safari bug. See WP Trac #38149. |
| | 6288 | previewFrame.iframe.attr( 'sandbox', 'allow-forms allow-modals allow-orientation-lock allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-presentations allow-same-origin allow-scripts allow-top-navigation-by-user-activation' ); |
| 6288 | 6289 | |
| 6289 | 6290 | if ( ! hasPendingChangesetUpdate ) { |
| 6290 | 6291 | previewFrame.iframe.attr( 'src', urlParser.href ); |
diff --git a/src/js/_enqueues/wp/customize/preview.js b/src/js/_enqueues/wp/customize/preview.js
index 684837576f..1e75a20ba7 100644
|
a
|
b
|
|
| 377 | 377 | queryParams.customize_messenger_channel = api.settings.channel; |
| 378 | 378 | } |
| 379 | 379 | element.search = $.param( queryParams ); |
| 380 | | |
| 381 | | // Prevent links from breaking out of preview iframe. |
| 382 | | if ( api.settings.channel ) { |
| 383 | | element.target = '_self'; |
| 384 | | } |
| 385 | 380 | }; |
| 386 | 381 | |
| 387 | 382 | /** |