Use postMessage
to open external links from sandboxed iframe
#5223
Labels
feature
Work that is user facing, and typically should be planned through https://airtable.com/shrRydo6UXheb
VS Code's sandboxes the iframes and does not allow popups (see microsoft/vscode#186043). This means none of the
<a target="_blank">
links orwindow.open
works when Firefox Profiler is loaded in VS Code.The suggested workaround is to use
postMessage
to send the link and use VS Code provided APIs to open the link in external browser. This requires either changing every instance of these APIs, or overridingwindow.open
and intercepting clicks on<a target="_blank">
using global event listener or document or similar.Would we be open to implement this here? We can activate this mechanism using some query param. Thoughts? Suggestions?
┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: