forked from electron/electron
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove node integration from renderer
- Loading branch information
Showing
5 changed files
with
8 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,3 +20,4 @@ node_modules/ | |
*.pyc | ||
debug.log | ||
npm-debug.log | ||
vendor/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e0dd107
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zcbenz Hi, just an electron user here.
For a certain app I'm porting from CEF, I need to have the native
window.open
API restored, so I'm trying to modify electron to allow this use case(I don't expect this to be accepted in electron, and I'm ok with maintaining a fork).I'm aware of the arguments you presented against this, but for this specific app I don't need node.js API in the renderer process, so I made this commit to disable node.js integration in the renderer process and also restore the native
window.open
functionality from webkit.With this commit,
window.open
is restored to the native implementation(at least it returns the right window object), but unfortunately the window seems to be hidden. Apart from the fact that the window is not visible, it seems to be working property, eg: I can call methods(such asclose()
) and read properties from it (such as "closed") and even evaluate javascript in its context.I'm hoping this is something simple to fix, but I have little experience in chrome's content module. If this is simple, could you give me some hints on how to fix it?
Thanks anyway!