Cheng Zhao
5459137d3d
Remove unused options for WebContents.create
2015-06-09 15:40:04 +08:00
Haojian Wu
f1a8c5a1ca
Use httpReferrer and userAgent new names in webview.
2015-06-09 10:44:54 +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
bdf73fcd4c
Update to the new algorithm of setting webview size
2015-05-29 11:12:55 +08:00
deepak1556
0dcf061dc1
check if window is html or forced fullscreen
2015-05-21 10:16:11 +05:30
deepak1556
c548b9c87e
webContents: adding events to detect gpu and plugin process crashes
2015-05-20 15:05:48 +05:30
Paul Betts
975978b414
Don't be so paranoid about empty opts
2015-05-19 14:27:15 -07:00
Paul Betts
e4d90f747f
Pass user agent along like http referrer and set user agent in C++
2015-05-19 14:27:15 -07:00
Cheng Zhao
4c10925694
Add remote.getCurrentWebContents API
2015-05-11 14:05:20 +08:00
Paul Betts
4f67415607
Enable NPAPI by default, trump Chromium's default
2015-05-01 16:59:40 -07:00
deepak1556
8c5f171a93
webContents: providing dom-ready event
2015-04-30 09:58:29 +05:30
deepak1556
18b3dfa350
removed will-navigate and did-navigate events
2015-04-25 09:50:28 +05:30
deepak1556
36819e2638
added did-navigate event, getFavicon api and workaround webview spec
2015-04-25 09:50:28 +05:30
deepak1556
9b585458c1
webview: will-navigate and page-favicon-set navigation events
2015-04-25 09:50:28 +05:30
Cheng Zhao
500d15f53a
Also remove user-defined search paths in renderer
2015-04-23 13:17:18 +08:00
Cheng Zhao
fad977e27d
Simplify how we remove user-defined search paths
2015-04-23 13:13:58 +08:00
deepak1556
4983ef77bd
module: remove system paths from search
2015-04-23 12:55:34 +08:00
deepak1556
15a648a879
webContents: event to detect status of requested resource
2015-04-08 19:14:47 +05:30
Robo
87af6f9c80
webview: adding page-title-set event
2015-04-05 14:50:42 +05:30
deepak1556
399f47ef0f
implemetation of AtomCommandline to preserve args
2015-03-28 22:41:00 +05:30
Cheng Zhao
6af7388ac0
Use DevToolsAPI instead of InspectorFrontendAPI
2015-03-18 09:57:43 +08:00
Cheng Zhao
99f6bf045f
Improve #1137
2015-03-04 07:58:06 -08:00
Bundyo
dbbc35bd13
Fixes after code review.
2015-03-04 11:29:52 +02:00
Bundyo
4e82f4c672
Remove two semicolons.
2015-02-13 18:54:18 +02:00
Bundyo
7fa1296a17
Implement FakeWindow.postMessage, window.opener.postMessage and window.closed flag for popup windows.
2015-02-13 18:45:12 +02: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
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
Cheng Zhao
d754b2bda7
Break on first found app
2014-10-01 20:40:52 +08:00
Cheng Zhao
d559275711
Emit "exit" event for "process" when quitting.
2014-09-25 21:48:30 +08:00
Cheng Zhao
e5e1e207b6
Also search for app.asar when starting app.
2014-09-24 20:09:41 +08:00
Cheng Zhao
9b755620d3
Make fs.stat support asar package
2014-09-24 15:38:02 +08:00
Haojian Wu
e7fbe84644
Use app name as desktop name by default.
2014-09-18 22:58:17 +08:00
Haojian Wu
d9ce3f0ca3
linux: Implement SetProgressBar API.
2014-09-18 19:26:52 +08:00
Guido Zuidhof
3e6d8ddbbd
Small typo fix in fatal JS error message
...
An javascript error -> A javascript error
2014-09-01 21:02:03 +02:00
Cheng Zhao
aa8f5e54df
dev-tools => devtools.
2014-08-28 16:00:29 +08:00
Cheng Zhao
8134585578
Remember loaded extensions.
2014-08-28 15:58:36 +08:00
Cheng Zhao
b6c2e7ef76
Ignore requests to other hosts.
2014-08-27 21:05:54 +08:00
Cheng Zhao
fe96a9de33
Don't use pure number as host name.
...
Numbers would be treated as IP addresses.
2014-08-27 20:49:57 +08:00
Cheng Zhao
cd40bdbec8
Add chrome-extension protocol for loading devtools extensions.
2014-08-27 16:01:15 +08:00
Cheng Zhao
fba1772000
Don't mess up with browser process's execArgv, fixes #492 .
2014-07-31 16:58:59 +08:00
Cheng Zhao
9c84f92f3e
remote.require should use process.mainModule.require.
2014-06-22 14:56:30 +08:00
Cheng Zhao
48224a6455
Set process.mainModule to user's app.
2014-06-22 14:56:00 +08:00
Cheng Zhao
9721c4e761
Rename process.__atom_type to process.type.
2014-05-21 22:44:43 +08:00
Cheng Zhao
1bba15cb7f
Avoid using processId and routingId directly.
2014-04-25 16:45:14 +08:00
Cheng Zhao
c0875864dc
Handle IPC messages in webContents instead of BrowserWindow.
2014-04-25 16:13:16 +08:00
Cheng Zhao
e70d195cde
Fix releasing the wrong renderer view.
2014-04-25 12:40:04 +08:00
Cheng Zhao
03e6d564d7
Make remote.getCurrentWindow work for devtools.
2014-04-04 22:28:47 +08:00
Cheng Zhao
e3434b5cde
Fix the location default_app is copied to.
2014-03-16 15:19:09 +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