Cheng Zhao
01d2765e4b
Prevent Node from adding paths outside this app to search paths
2015-10-03 20:38:39 +08:00
Cheng Zhao
9fe326ebeb
Clear node's global search paths
2015-10-03 19:55:59 +08:00
Cheng Zhao
021ee20400
No need to add "app" to search paths
2015-10-03 17:52:46 +08:00
Cheng Zhao
42515c6f41
No more need of manually setting process as local variable
2015-09-22 14:30:54 +08:00
Cheng Zhao
9ecc4bcb7d
Fork renderer process for webview
...
Previously it was disabled because Chrome doesn't support swapping
renderer process before, it seeems to work fine now, so we enable it to
see how it goes.
2015-08-31 21:38:18 +08:00
Cheng Zhao
096439dce7
Don't expose "global" when node integration is off
2015-07-14 09:15:03 -07:00
JP Richardson
d6ae874038
emit error object on process.on('uncaughtException') in renderer
...
Chromium added the actual `error` object to the 5th parameter in `window.onerror`. This should be emitted as opposed to the `errorMsg` string. Worse yet, since `errorMsg` wasn't an instance of `Error`, any code that assumes this in any `process.on('uncaughtException')` handler would fail. Also, correctly emitting the error provides the stack trace.
This is now an HTML5 standard.
Sources:
- https://html.spec.whatwg.org/multipage/webappapis.html#errorevent
- https://mikewest.org/2013/08/debugging-runtime-errors-with-window-onerror
- https://code.google.com/p/chromium/issues/detail?id=147127
2015-07-10 14:38:03 -05:00
Cheng Zhao
02bdace366
Delete Node's symbols after Environment has been loaded
...
Fix #1803 .
2015-05-29 22:20:20 +08:00
Paul Betts
e2ec50173f
Log errors in preload script instead of rethrowing
...
At some point, unhandled errors in preload scripts stopped being logged
to console, meaning that preload scripts were very difficult to debug.
Instead, print the error to console (which is what we wanted to have
happen anyways)
2015-05-01 16:11:56 -07:00
Cheng Zhao
4834eed520
Set process.resourcesPath in C++
2015-02-13 13:32:58 +08:00
Cheng Zhao
0b8efc434d
Use __dirname when setting globalPaths
2015-02-13 12:55:06 +08:00
Cheng Zhao
23b5c1f782
Cleanup usaages of asar: protocol
2015-01-31 18:50:26 -08:00
Cheng Zhao
a10782cdea
Don't rely on the global process object for message dispatching
2015-01-26 18:42:43 -08:00
Cheng Zhao
4ba3e101f6
Clean the init.coffee
2015-01-21 17:38:26 -08:00
Cheng Zhao
ef15b670a9
Initialize node integration after window object is cleared
2015-01-21 16:40:19 -08:00
Cheng Zhao
7e33e26465
Add atom-shell bindings before loading environment
2015-01-21 15:02:09 -08:00
Cheng Zhao
d7eae69587
Webview attributes overhaul
...
Imported from:
884a5b43cb
2014-12-08 16:14:12 -08:00
Cheng Zhao
a9072049ea
Move webview code to atom/renderer/lib/web-view
2014-12-08 06:08:21 -08:00
Cheng Zhao
651dabf47e
Fix displaying context menu for devtools
2014-11-16 22:34:29 +08:00
Cheng Zhao
9f29f66768
Add "preload" option for BrowserWindow
2014-11-12 15:04:03 +08:00
Cheng Zhao
f90fb8cc72
Print error when "preload" script is not found
2014-11-06 16:12:40 +08:00
Cheng Zhao
217b1afe87
Load the "preload" script in <webview>
2014-11-06 15:13:37 +08:00
Cheng Zhao
48d54e8d3a
Fix JavaScript errors in webview
2014-11-03 22:18:03 +08:00
Cheng Zhao
404e08c0e7
Make remote.getCurrentWindow() work in <webview>
2014-10-26 19:30:53 +08:00
Cheng Zhao
24b4fcea15
Add BIND_DONE event for process object
2014-10-25 23:21:17 +08:00
Cheng Zhao
d596a7427e
Node integration option is now only true/false
2014-10-25 19:20:04 +08:00
Cheng Zhao
f629fa7b27
Detect node integration in JavaScript
2014-10-25 18:51:26 +08:00
Cheng Zhao
c0955eaa90
Don't expose <webview> in guest
2014-10-24 19:18:58 +08:00
Cheng Zhao
58a38d90b8
Don't fork renderer process for guest
2014-10-24 19:08:26 +08:00
Cheng Zhao
4ccb0cccf3
Rename web-view module to web-frame
2014-10-24 18:45:03 +08:00
Cheng Zhao
380de24f2e
Add code to register <webview> tag
2014-10-22 22:55:13 +08:00
Cheng Zhao
8c29ffd084
Make __filename normalized
...
This can make sure __filename and __dirname on Windows use "\" as path
delimeter.
2014-10-14 19:45:57 +08:00
Cheng Zhao
dba2fa31b6
Fix __dirname for page in asar package
...
Fixes #694 .
2014-10-14 19:27:47 +08:00
Cheng Zhao
d559275711
Emit "exit" event for "process" when quitting.
2014-09-25 21:48:30 +08:00
Cheng Zhao
b6cded379e
Fix __dirname and __filename in asar: protocol.
2014-09-24 13:23:37 +08:00
Cheng Zhao
8051ad8b2a
Add support for chrome.extension API in devtools extension.
2014-08-28 12:54:19 +08:00
Cheng Zhao
9721c4e761
Rename process.__atom_type to process.type.
2014-05-21 22:44:43 +08:00
Cheng Zhao
b1f0c2d174
Override web inspector's context menu.
2014-04-03 20:54:42 +08:00
Cheng Zhao
5dd5f18edf
Fix process.resourcesPath.
2014-03-16 13:24:25 +08:00
Cheng Zhao
516d46444d
Move all sources under atom/.
2014-03-16 08:30:26 +08:00