[wp-trac] [WordPress Trac] #65399: Skip Document-Isolation-Policy on the classic-theme site preview

WordPress Trac noreply at wordpress.org
Fri Jun 5 06:45:53 UTC 2026


#65399: Skip Document-Isolation-Policy on the classic-theme site preview
--------------------------------------+------------------------------
 Reporter:  adamsilverstein           |       Owner:  adamsilverstein
     Type:  defect (bug)              |      Status:  assigned
 Priority:  normal                    |   Milestone:  7.1
Component:  Media                     |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+------------------------------

Comment (by manhar):

 Tested on WordPress 7.0 + Chrome 147 with Twenty Twenty-One active.
 Simulated the DIP header locally since 7.1 is not yet released.

 Bug confirmed: With DIP active, iframe.contentDocument returns null —
 editor cannot neutralize the classic theme preview iframe.

 Fix verified: Skipping DIP on the classic-theme site editor home route
 restores contentDocument access. Block theme and non-home routes continue
 receiving DIP as expected.
 Patch and unit tests look good.

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


More information about the wp-trac mailing list