Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: live preview should allow tab popout on window.open or href click #1270

Merged
merged 1 commit into from
Jan 7, 2024

Conversation

abose
Copy link
Member

@abose abose commented Jan 6, 2024

Since its an HTML development tool, it will confuse users if we disable window.open/ anchor tag hrefs not opening up new windows. So we enable that.

The security posture wont change due to this as 1, since the iframe is sandboxed, the popout that escaped the sandox will no loger be able to communicate with phcode, and hence isolated.

Another thing to note is that, for virtual serving urls, the popout will result in a 404 as the virtual server is sandboxed within a tab/phcode. But this is the case even before this change. Normal click-navigations will not be affected, just open link in new tab workflows with virtual server target urls will fail.

@phoenixide
Copy link
Member

Thank You for making this pull request.

@phoenixide
Copy link
Member

Thank You for making this pull request.

Copy link

sonarcloud bot commented Jan 6, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@abose abose merged commit b96ddec into main Jan 7, 2024
17 checks passed
@abose abose deleted the live branch January 7, 2024 02:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants