Make WordPress Core

Ticket #42341: 42341.diff

File 42341.diff, 1.2 KB (added by valchovski, 8 years ago)
  • src/js/_enqueues/wp/customize/controls.js

    diff --git a/src/js/_enqueues/wp/customize/controls.js b/src/js/_enqueues/wp/customize/controls.js
    index ed75ba3df1..fc0dbf398e 100644
    a b  
    62856285                                name: 'customize-' + previewFrame.channel()
    62866286                        } );
    62876287                        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' );
    62886289
    62896290                        if ( ! hasPendingChangesetUpdate ) {
    62906291                                previewFrame.iframe.attr( 'src', urlParser.href );
  • src/js/_enqueues/wp/customize/preview.js

    diff --git a/src/js/_enqueues/wp/customize/preview.js b/src/js/_enqueues/wp/customize/preview.js
    index 684837576f..1e75a20ba7 100644
    a b  
    377377                        queryParams.customize_messenger_channel = api.settings.channel;
    378378                }
    379379                element.search = $.param( queryParams );
    380 
    381                 // Prevent links from breaking out of preview iframe.
    382                 if ( api.settings.channel ) {
    383                         element.target = '_self';
    384                 }
    385380        };
    386381
    387382        /**