firefox-devtools / firefox-devtools/profiler
Use `postMessage` to open external links from sandboxed iframe
- Dominant language
- TypeScript
- Stars
- 1.5k
- Forks
- 491
- Avg merge
- 3d 46m
- Merged PRs (30d)
- 27
Description
VS Code's sandboxes the iframes and does not allow popups (see https://github.com/microsoft/vscode/issues/186043). This means none of the `` links or `window.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 overriding `window.open` and intercepting clicks on `` 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](https://mozilla-hub.atlassian.net/browse/FP-827)
Contributor guide
Assessment
This issue has not been assessed yet.