Cheng Zhao
0b8efc434d
Use __dirname when setting globalPaths
2015-02-13 12:55:06 +08:00
Cheng Zhao
7c8bed7bfc
Get the WebViewManager from embedder WebContents
...
This make our lives easier when we have multiple BrowserContext support.
2015-02-04 15:52:59 -08:00
Cheng Zhao
4ba3e101f6
Clean the init.coffee
2015-01-21 17:38:26 -08:00
Cheng Zhao
7e33e26465
Add atom-shell bindings before loading environment
2015-01-21 15:02:09 -08:00
Cheng Zhao
fe78c17ea6
Don't popup error if the user has a custom uncaught exception handler
...
Fix #1012 .
2015-01-19 12:50:44 -08:00
Cheng Zhao
ce52a87477
Add "cache" and "userCache" directories
2015-01-18 21:43:22 -08:00
Cheng Zhao
d31df439c3
Override default userData according to app's name
2015-01-18 21:43:19 -08:00
Cheng Zhao
2d1afbf51b
Call app.getDataPath after app is ready
...
It is possible for users to override the data path.
2015-01-18 21:43:18 -08:00
Cheng Zhao
482c740e61
Also unpack arguments in ipc-message-host message
2015-01-14 19:43:01 -08:00
Cheng Zhao
b4cdb546fe
Don't set contentWindow property for <webview>
...
This property is only available in Chrome and we don't need it in
atom-shell, so remove it to avoid confusions.
Fixes #997 .
2015-01-12 14:17:49 -08:00
deepak1556
c0f0f4cdc6
ensuring single instance for loading and unloading extension
2015-01-10 04:12:13 +05:30
Cheng Zhao
da54ac5f55
Don't leak listeners in embedder when guest is destroyed
2014-12-17 20:44:15 -08:00
Cheng Zhao
a26091e485
Suppress EventEmitter warnings
2014-12-17 20:33:47 -08:00
Cheng Zhao
c92d2531b5
Add "disablewebsecurity" attribute for <webview>
2014-12-17 18:13:20 -08:00
Cheng Zhao
a8f5a4e2d4
Add sendToHost method
2014-12-17 11:09:11 -08:00
Cheng Zhao
95793e410d
Redirect guest page's ipc message to embedder
2014-12-16 21:10:53 -08:00
Cheng Zhao
11cd301127
Only listen to its own events in <webview>, fixes #885
2014-12-12 17:16:12 -08:00
Cheng Zhao
9d23cce2b6
Move "nodeintegration" and "plugins" to web-view-attributes
2014-12-09 14:51:35 -08:00
Cheng Zhao
68381e1b76
Use element instant id for GetGuestByInstanceID
2014-12-09 14:38:43 -08:00
Cheng Zhao
882a08f61a
Fix browser plugin API changes
2014-12-08 09:00:00 -08:00
Cheng Zhao
fbd74c0e2d
Various fixes of #801
2014-11-12 10:28:50 +08:00
Frank Hale
ef255db069
Making Http Referrer addition better!
...
- Code cleanup
2014-11-07 21:54:36 -05:00
Frank Hale
f56d1ea7b4
Add support for setting http referrer
...
- Add url option to specify the http referrer
- Add httpReferrer attribute to webview
NOTE: This is still not complete. Some love has to be done to
guest-view-manager.coffee and very likely the function calls called
createGuest and to the code that uses them.
2014-11-06 14:29:41 -05:00
Cheng Zhao
217b1afe87
Load the "preload" script in <webview>
2014-11-06 15:13:37 +08:00
Cheng Zhao
f6ba308ff8
Use dialog.showErrorBox for showing errors
2014-11-05 16:05:29 +08:00
Cheng Zhao
80d574482e
Add "plugins" attribute for <webview>
2014-11-05 14:59:28 +08:00
Cheng Zhao
22c5720aa2
Window opened by window.open should have "default" disposition
2014-11-04 18:31:47 +08:00
Cheng Zhao
f29c7164f3
Translate |disposition| to string
2014-11-04 18:12:57 +08:00
Cheng Zhao
0c21c863d7
Simplify the GuestWindowManager
...
Instead of recording guest explicitly in a map, we just make use of
closure for bookkeeping.
2014-10-28 18:51:28 +08:00
Cheng Zhao
c71aa0995a
Reuse the window of same frame name
2014-10-28 13:23:25 +08:00
Cheng Zhao
89990ec037
Don't throw exception on closed guest window
2014-10-27 23:59:11 +08:00
Cheng Zhao
7f4d00fac0
Add eval() for FakeWindow
2014-10-27 23:07:41 +08:00
Cheng Zhao
bdad1d1753
Add focus() and blur() for FakeWindow
2014-10-27 23:03:05 +08:00
Cheng Zhao
6f41598962
Use GuestWindowManager to mange windows created by window.open
2014-10-27 21:56:04 +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
1a93babdbc
Fix double freeing guest
2014-10-25 22:01:24 +08:00
Cheng Zhao
22e3b9df44
Add attribute to turn on node integration in <webview>
2014-10-25 20:52:42 +08:00
Cheng Zhao
04f1860bf5
Make autoresize follow Chrome's behavior
2014-10-25 16:04:16 +08:00
Cheng Zhao
194ed3884c
Add 'new-window' event for <webview>
2014-10-25 13:21:09 +08:00
Cheng Zhao
485bd7bbd3
Add 'close' and 'console-message' for <webview>
2014-10-25 10:01:19 +08:00
Cheng Zhao
218d69d288
Dispatch WebContents events to <webview>
2014-10-25 09:05:50 +08:00
Cheng Zhao
e95c1256a0
Add remote.getGuestWebContents
2014-10-24 19:57:29 +08:00
Cheng Zhao
58a38d90b8
Don't fork renderer process for guest
2014-10-24 19:08:26 +08:00
Cheng Zhao
6336edbe92
Implement allowtransparency attribute
2014-10-24 16:48:21 +08:00
Cheng Zhao
ce793ec86d
Destroy guest when the embedder is gone
2014-10-24 16:19:00 +08:00
Cheng Zhao
39e75574f4
Attach <webview> with guest WebContents
2014-10-24 14:37:14 +08:00
Cheng Zhao
dacbf7a042
Register guest web view
2014-10-23 23:08:48 +08:00
Cheng Zhao
a22a5c67bd
Implement GuestViewInternal.createGuest and destroyGuest
2014-10-23 17:54:52 +08:00
Cheng Zhao
0d19e772e6
linux: Don't append --force-device-scale-factor to process.argv
2014-10-21 20:55:37 +08:00