{"action":"opened","issue":{"url":"https://api.github.com/repos/nwjs/nw.js/issues/4793","repository_url":"https://api.github.com/repos/nwjs/nw.js","labels_url":"https://api.github.com/repos/nwjs/nw.js/issues/4793/labels{/name}","comments_url":"https://api.github.com/repos/nwjs/nw.js/issues/4793/comments","events_url":"https://api.github.com/repos/nwjs/nw.js/issues/4793/events","html_url":"https://github.com/nwjs/nw.js/issues/4793","id":152190970,"number":4793,"title":"Why are nw and window accessible under node.js context?","user":{"login":"chenlucan","id":6580871,"avatar_url":"https://avatars.githubusercontent.com/u/6580871?v=3","gravatar_id":"","url":"https://api.github.com/users/chenlucan","html_url":"https://github.com/chenlucan","followers_url":"https://api.github.com/users/chenlucan/followers","following_url":"https://api.github.com/users/chenlucan/following{/other_user}","gists_url":"https://api.github.com/users/chenlucan/gists{/gist_id}","starred_url":"https://api.github.com/users/chenlucan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenlucan/subscriptions","organizations_url":"https://api.github.com/users/chenlucan/orgs","repos_url":"https://api.github.com/users/chenlucan/repos","events_url":"https://api.github.com/users/chenlucan/events{/privacy}","received_events_url":"https://api.github.com/users/chenlucan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-01T09:38:43Z","updated_at":"2016-05-01T09:38:43Z","closed_at":null,"body":"Under Mac\r\nnwjs version - nwjs-sdk-v0.14.3-osx-x64\r\n\r\nRunning in separate context mode, go to Inspect Background Page, I could access all nw, window and even alert objects.\r\nnw\r\n - Object {global: Window, process: process, root: Window, App: Object, Obj: Object…}\r\nwindow\r\n - Window {external: Object, chrome: Object, document: document, global: Window, process: process…}\r\nwindow.nw\r\n - Object {global: Window, process: process, root: Window, Window: Object, test: Object…}\r\nalert\r\n - alert() { [native code] }\r\n\r\nQuestion:\r\nWhy are nw and window available in node context under separate context mode?\r\nAccording to this doc: http://docs.nwjs.io/en/latest/For%20Users/Advanced/JavaScript%20Contexts%20in%20NW.js/#access-browser-and-nwjs-api-in-node-context\r\nwindow and nw are not supposed to be available."}}