| @@ -1,9 +1,8 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | namespace Elementor; |
| 3 | 3 | |
| 4 | 4 | use Elementor\Core\Base\App; |
| 5 | -use Elementor\Core\Editor\Editor; | |
| 6 | 5 | use Elementor\Core\Settings\Manager as SettingsManager; |
| 7 | 6 | |
| 8 | 7 | if ( ! defined( 'ABSPATH' ) ) { |
| 9 | 8 | exit; // Exit if accessed directly. |
| @@ -92,13 +91,8 @@ | ||
| 92 | 91 | } |
| 93 | 92 | |
| 94 | 93 | $this->post_id = get_the_ID(); |
| 95 | 94 | $this->is_preview = true; |
| 96 | - | |
| 97 | - // Send Document-Isolation-Policy on the preview iframe so it shares | |
| 98 | - // an agent cluster with the editor parent and synchronous DOM access | |
| 99 | - // (e.g. iframe.contentWindow.elementorFrontend) keeps working. | |
| 100 | - Editor::send_document_isolation_policy_header(); | |
| 101 | 95 | |
| 102 | 96 | // Don't redirect to permalink. |
| 103 | 97 | remove_action( 'template_redirect', 'redirect_canonical' ); |
| 104 | 98 | |