Hyper: Email renders website

Created on 3 Aug 2016  路  6Comments  路  Source: vercel/hyper

example

I'm not sure if this is expected behavior, but it certainly surprised me when I ran $(git config user.email).

help wanted Bug

Most helpful comment

I jumped the gun a bit on the security concern, apologies.

This feature feels a bit like a bug to me as I need to hard reload once I'm viewing the page.

Why would I want this to happen when I could just type 'open http://google.com'

All 6 comments

This seems to be any web address that's entered.

@MrRio the <webview> should not have access to any node APIs.

@MrRio The website rendering is a feature. Your security concern was addressed in this issue: https://github.com/zeit/hyperterm/issues/77.

@rauch @aaronagray I think the point about <webview> not having access to node APIs is incorrect. See the documentation here:

For security purposes, webview can only be used in BrowserWindows that have nodeIntegration enabled.

In fact, as of electron 1.1.1, the <webview> tag is disabled when nodeIntegration is turned off. See here. There was some discussion about the implication of this here.

As far as I'm aware, the only real workaround at the moment is to leave nodeIntegration enabled but run a preload script to remove the node modules. This is what browserhtml is currently doing. But as mentioned in the issue above, that doesn't fully solve the problem yet.

I jumped the gun a bit on the security concern, apologies.

This feature feels a bit like a bug to me as I need to hard reload once I'm viewing the page.

Why would I want this to happen when I could just type 'open http://google.com'

I can't reproduce
Feel free to reopen

Was this page helpful?
0 / 5 - 0 ratings

Related issues

daenuprobst picture daenuprobst  路  3Comments

anthonyettinger picture anthonyettinger  路  3Comments

rauchg picture rauchg  路  3Comments

ConstantinChirila picture ConstantinChirila  路  3Comments

legomushroom picture legomushroom  路  3Comments