Cheng Zhao
2a30520799
Only set window.opener for windows opened by window.open
2015-08-04 15:47:12 +08:00
Cheng Zhao
4ac59e2674
Merge pull request #2391 from seanchas116/support-remote-promise
...
Support Promise over remote objects
2015-08-03 15:22:36 +08:00
Cheng Zhao
7c5d443284
Merge pull request #2394 from DerNivel/fix-typos
...
Fix typos
2015-08-03 15:04:13 +08:00
Cheng Zhao
7c75329b18
Merge pull request #2375 from deepak1556/web_frame_api_patch
...
webFrame: api to make scheme bypass CSP
2015-08-03 14:46:40 +08:00
Ryohei Ikegami
c8a794ac34
Use constructor name to check if Promise
2015-08-01 12:20:16 +09:00
Jonathan
c0ce8723d4
Fix typo
2015-07-31 20:16:26 +02: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
Robo
92ea533aee
webFrame: api to make scheme bypass CSP
2015-07-30 22:36:02 +05:30
Robo
239d535cac
render: executejavascript with option to simulate usergesture
2015-07-30 15:38:46 +05:30
Taichiro Yoshida
fc92ceb0b6
do not overwrite node-integration
option
...
If `node-integration` option pass to window.open, do not overwrite by current window's one
2015-07-29 13:41:11 +09:00
Haojian Wu
462e6e0a82
Implement getUserAgent API.
2015-07-22 12:25:10 +08:00
Cheng Zhao
096439dce7
Don't expose "global" when node integration is off
2015-07-14 09:15:03 -07:00
Cheng Zhao
14388feb23
Merge pull request #2187 from jprichardson/patch-1
...
emit error object on process.on('uncaughtException') in renderer
2015-07-13 21:46:06 -07:00
Cheng Zhao
9e8a118d10
Cleanup code
2015-07-14 03:23:19 +08:00
Cheng Zhao
0c7c6ddcc9
Merge pull request #2175 from atom/propagate-app-model-id
...
Propagate App Model User ID on Windows
2015-07-13 12:16:10 -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
967c273ddb
Always use top window's context for resolving url
...
Refs #2166 .
2015-07-10 13:57:09 +08:00
Cheng Zhao
260ec96edd
Resolve relative urls in window.open, fix #2166
2015-07-10 11:36:41 +08:00
Paul Betts
39c6e2d2e5
Linter fixes
2015-07-09 17:00:19 -07:00
Paul Betts
35aaad68d7
Set the AppUserModelId on the renderer side
2015-07-09 16:48:02 -07:00
Cheng Zhao
ae3b47aa75
Inherit current window's node-integration in window.open by default
...
Fix #2100 .
2015-07-06 16:21:08 +08:00
John Haley
565a500320
Fix window.open
with wrong name
...
When calling `window.open` the newly created window would have the name of the last option in the `features` argument as the title. I think it's supposed to be pointed to `frameName`.
2015-06-29 10:32:27 -07:00
Cheng Zhao
42e21d15bf
Remove all calls to node::MakeCallback
...
node::MakeCallback is doing too much for us, avoid calling it.
2015-06-23 20:14:03 +08:00
deepak1556
cb1d9f60ec
override: set window.opener to null for webview
2015-06-18 21:14:45 +05:30
Haojian Wu
47eac062f6
Expose Print API to webContents and webView.
...
Also move the print implementation from window to webContents.
2015-06-16 20:08:30 +08:00
Haojian Wu
c0a6cb69bf
Move printToPDF API to WebContents.
...
Also expose in webview.
2015-06-16 20:06:52 +08:00
Cheng Zhao
bd704dd8aa
Merge pull request #1979 from deepak1556/remote_args_patch
...
remote: handle circular reference in wrapArgs
2015-06-16 16:40:06 +08:00
deepak1556
193f95a888
remote: handle circular reference in wrapArgs
2015-06-16 13:43:30 +05:30
Magica
8aa559fe51
Add setAudioMuted to webContents
2015-06-15 21:40:49 +08:00
Cheng Zhao
132c13a11b
Fix calls to deprecated node::ThrowError API
2015-06-10 14:21:09 +08:00
Cheng Zhao
d12697c657
Merge pull request #1918 from kirkouimet/master
...
Fixing an issue compiling on Windows and improving webview interopability with other JavaScript libraries
2015-06-10 12:48:45 +08:00
Cheng Zhao
4b12a95d37
Transfer Buffer through "remote"
2015-06-10 11:58:15 +08:00
Kirk Ouimet
0fef09281b
Guarding webview attributes against polluted Object.prototypes
...
Ran into an error with the buildParams function breaking when using a JavaScript library that modified the Object.prototype, this small fix resolves the issue.
2015-06-09 16:17:00 -07:00
Haojian Wu
f1a8c5a1ca
Use httpReferrer and userAgent new names in webview.
2015-06-09 10:44:54 +08:00
deepak1556
683917ae67
renderer: option to override page visiblity state
2015-06-04 14:40:13 +05:30
Cheng Zhao
95a8f3fc70
Fix changing src would calling loadUrl for twice
2015-06-03 14:33:22 +08:00
Cheng Zhao
f22d4bf0c0
Merge pull request #1814 from fraserxu/master
...
convert message to string for window.alert method
2015-06-03 10:20:59 +08:00
Cheng Zhao
02bdace366
Delete Node's symbols after Environment has been loaded
...
Fix #1803 .
2015-05-29 22:20:20 +08:00
fraserxu
57ab704300
convert message to string for window.alert method
2015-05-29 15:55:11 +08:00
Cheng Zhao
b5c9fe78f1
Listen to ElementSizeChanged event
2015-05-29 13:47:09 +08:00
Cheng Zhao
e4bb456964
Pass element size when attaching
2015-05-29 11:47:54 +08:00
Cheng Zhao
b45ed8d9a2
pendingGuestCreation is removed
2015-05-29 11:20:28 +08:00
Cheng Zhao
bdf73fcd4c
Update to the new algorithm of setting webview size
2015-05-29 11:12:55 +08:00
Cheng Zhao
4a376694b4
Merge pull request #1719 from deepak1556/service_worker_patch
...
devtools: api to inspect service worker
2015-05-27 15:47:41 +08:00
Cheng Zhao
1c60575dc0
Merge pull request #1738 from deepak1556/http_ptach
...
webContents: providing header details with response event
2015-05-27 15:05:55 +08:00
Cheng Zhao
abf8ffd3a2
Merge pull request #1689 from deepak1556/ftp_patch
...
protocol: adding ftp scheme support
2015-05-27 15:04:21 +08:00
deepak1556
c22b138b67
webContents: providing header details with response event
2015-05-23 19:26:47 +05:30
Cheng Zhao
d78efe7c22
Use Local instead of Handle
2015-05-22 19:11:22 +08:00
Cheng Zhao
b169ac016e
Start AtomRenderFrameObserver
2015-05-22 15:59:29 +08:00