Cheng Zhao
d9fdfb711f
Clean up CallbackRegistry
...
There were some ancient code there.
2015-10-16 20:25:30 +08:00
Cheng Zhao
4871ea715c
Merge pull request #3103 from bengotow/bengotow/debug-release
...
Allow "released callback" errors to be traced to remote calls
2015-10-16 20:21:46 +08:00
Cheng Zhao
16b9f8995d
Revert "Go back to using node's console.* and std*.write"
...
This reverts commit 4e8db2c3be
.
It seems that we still have problems with Node.js's console.* calls, I'm
reverting this for now unitl we get a solution.
Fixes #3100 .
2015-10-16 17:38:11 +08:00
Ben Gotow
aeb24b784d
Allow "released callback" errors to be traced to remote calls
2015-10-15 18:46:59 -07:00
Eran Tiktin
4e8db2c3be
Go back to using node's console.* and std*.write
...
It seems that whatever issues we had with using the original
implementation of node for `console.*` calls and for
`process.std*.write` on Windows were solved.
So I removed the patch.
Tested it with cmd, cygwin and used spawn and exec and everything seems
to work (except for colors/ansi escape codes, but that didn't work
before anyway).
2015-10-10 20:17:08 +03:00
Eran Tiktin
c71efc8ca5
Fix process.std*.write
...
- Support printing Buffer
- Don't add '\n' at the end the chunk
2015-10-10 08:13:27 +03:00
Eran Tiktin
1896deb10e
Fix console.* calls on Windows
...
- Calls for console.* on browser process are printed with no need for
--enable-logging
- The output is without the logging prefix
- The cursor in the terminal is always after the last output
- The first output starts on a new line and not at the prompt
- console.* from renderer are not printed to cmd
- Added a missing '\n' in the default_app help output
2015-10-10 06:39:02 +03:00
Cheng Zhao
9dd714f056
Fix postMessage
not working for windows opened by window.open
2015-10-08 10:44:30 +08:00
Cheng Zhao
927c3f34c3
Guard against undefined, fix #2995
...
In theory this should never happen, seems like some object is garbage
collected after the JavaScript context has been destroyed.
2015-10-06 22:25:55 +08:00
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
1045bbc861
Do not enumerate windows in remote.getCurrentWindow
2015-10-01 14:08:33 +08:00
Cheng Zhao
8c3116851d
Exit the process when unable to find a valid app
...
Fixes #2583 .
2015-09-30 17:30:28 +08:00
Cheng Zhao
f2fa0e96eb
Pass options in "new-window" event
2015-09-22 23:40:16 +08:00
Cheng Zhao
de41890196
Inherit parent window's options in window.open
2015-09-22 22:32:10 +08:00
Cheng Zhao
f07fea1936
Add allowpopups attribute for webview
2015-09-22 20:11:05 +08:00
Cheng Zhao
f140f35910
Expose experiment APIs
2015-09-14 22:59:49 +08:00
Cheng Zhao
5eb0bedbbc
Parse partition in webContents.create
2015-09-06 10:54:34 +08:00
Cheng Zhao
3773f81fd5
Pass partition name instead of path to BrowserContext
2015-09-06 10:53:39 +08:00
Cheng Zhao
9c235509a6
Read guest view's info from WebContentsPreferences
2015-09-06 10:53:03 +08:00
Robo
03ba9533fb
store webviewinfo as web contents userdata
2015-09-03 21:27:50 +05:30
Robo
8f59c0b642
create partitionId with encodedURIcomponent
2015-09-03 20:49:29 +05:30
Robo
da5bac42f3
use embedders' browser context when partition is not specified
2015-09-03 20:49:29 +05:30
Robo
d180d3b168
webview: fix partition attribute
2015-09-03 20:49:29 +05:30
Cheng Zhao
50bfe9e335
Set source and origin correctly for window.opener.postMessage
2015-09-01 11:51:10 +08:00
Cheng Zhao
64e8ce0c07
Don't rely on IDWeakMap for bookkeeping remote objects
...
It frees us from using C++ to track JS objects, thus improves the
performance of collecting memory.
2015-08-27 19:01:34 +08:00
Cheng Zhao
f7c75d36ba
Do not create remote object for simple return values of APIs
2015-08-27 16:14:53 +08:00
Cheng Zhao
c441dd1436
Merge pull request #2571 from atom/index-entry-startup
...
Support index.js module resolution at startup of Electron.
2015-08-26 12:35:24 +08:00
Haojian Wu
7a23add23b
Support index.js module resolution at startup of Electron.
2015-08-24 21:16:19 +08:00
Cheng Zhao
33737498ec
Make sure guest view is destroyed immediately when embeder is closed
2015-08-24 16:17:15 +08:00
Cheng Zhao
9212a1db8e
Merge branch 'master' into chrome44
2015-08-21 19:29:34 +08:00
Eran Tiktin
6f25996fa1
Fixed typo
2015-08-16 23:20:09 +03:00
Cheng Zhao
1f2d7d1cd8
Implement protocol.registerBufferProtocol
2015-08-12 20:37:52 +08:00
Cheng Zhao
d2681d2ba1
Implement protocol.registerFileProtocol
2015-08-12 15:22:19 +08:00
Cheng Zhao
96d53d279e
Initial implementation of new protocol API
2015-08-12 13:30:19 +08:00
Robo
0a7a4c0d0a
webview: adding load-commit event
2015-08-05 19:22:30 +05:30
Cheng Zhao
2a30520799
Only set window.opener for windows opened by window.open
2015-08-04 15:47:12 +08:00
Ryohei Ikegami
c8a794ac34
Use constructor name to check if Promise
2015-08-01 12:20:16 +09:00
Ryohei Ikegami
92af275f98
Support remote Promise in browser
2015-07-31 14:52:48 +09:00
Ryohei Ikegami
ddf2cfd48d
Support remote Promise in renderer
2015-07-31 14:52:37 +09:00
Vivek Patel
90bd32c680
Replaced 'browser' with 'main'
...
"A JavaScript error occured in the browser process" is confusing. Replacing it with 'main', just like everywhere else.
2015-07-29 15:04:34 +02:00
Cheng Zhao
e0528655a8
Merge pull request #2133 from atom/app_dir_api
...
Implment app.getAppPath API.
2015-07-08 10:08:22 +08:00
Haojian Wu
a2857d2dca
Implment app.getAppPath API.
2015-07-07 17:37:53 +08:00
Cheng Zhao
f8786e9d17
No need to send message to embedder after it is closed
2015-07-06 21:28:09 +08:00
Cheng Zhao
85a4ff83da
Some methods can be accessed after object is destroyed
2015-07-06 21:26:50 +08:00
Cheng Zhao
081a4597e9
Pass isGuest when creating WebContents
2015-06-24 23:29:32 +08:00
Cheng Zhao
8c83dfe918
Remove usages of JS IDWeakMap in browser-window
2015-06-24 19:01:44 +08:00
Cheng Zhao
15f350edcb
Don't make IDWeakMap public API
2015-06-24 13:38:55 +08:00
Cheng Zhao
015ef3e014
Omit extra transfer of new-window event
2015-06-23 16:34:22 +08:00
Cheng Zhao
4b12a95d37
Transfer Buffer through "remote"
2015-06-10 11:58:15 +08:00