Bugfix: workaround to inject content script on iframes with srcdoc
and sandbox
attributes
#8921
Labels
bug
Something isn't working
srcdoc
and sandbox
attributes
#8921
A bug was introduced in chromium and included in the latest version of Chrome 127 that prevents the content script from loading in iframes with both the
srcdoc
andsandbox
attributes set, e.g.<iframe srcdoc="..." sandbox/>
. See slack channel #bugfix-sandbox-iframes-chrome-update for more details.The proposed workaround is programmatically removing the sandbox attribute and reloading the iframe to trigger content script injection. This strategy was discussed in the past regarding issues with sandboxed iframes, but a different approach was taken at the time.
Implementation sketch
The text was updated successfully, but these errors were encountered: