Cheng Zhao
5fae63a2f5
Fix compilation errors on OS X
2016-03-10 17:06:21 +09:00
Paul Betts
4503aafe64
int32 => int32_t
2016-03-10 17:06:21 +09:00
Paul Betts
d2944c62a5
basictypes.h => macros.h
2016-03-10 17:06:21 +09:00
Kevin Sawicki
70aa9b06ee
Move JavaScript to root lib/ folder
2016-03-08 11:14:21 -08:00
Cheng Zhao
e152b8850c
Merge pull request #4665 from christoth/christoth-webview-flexbox
...
Use flexbox layout for browserplugin
2016-03-06 15:36:20 +09:00
Kevin Sawicki
f460d81dd0
Allow remote member functions to be deleted
2016-03-04 15:51:17 -08:00
Kevin Sawicki
610a503188
Make member functions writable
2016-03-04 15:49:46 -08:00
christoth
fed77d1837
Use flexbox layout for browserplugin
2016-03-03 17:22:20 -05:00
Robo
1235907835
run webframe methods for webview in its context
2016-02-26 05:14:45 +05:30
Robo
8386baf267
add spec
2016-02-25 11:46:30 +05:30
Robo
a734326907
track async api requests
2016-02-25 11:45:59 +05:30
Robo
2b547bd44a
webContents: provide responses for executeJavscript method
2016-02-25 11:45:59 +05:30
Robo
6fcc197db8
webview: api to get webcontents and associated host webcontents
2016-02-24 11:55:15 +05:30
Cheng Zhao
fe7462b352
No longer needs cache for methods of remote
...
Refs #4517 .
2016-02-22 13:05:58 +08:00
Cheng Zhao
67324ce732
Keep the prototype chain in remote objects
2016-02-22 12:35:51 +08:00
Robo
0d77fd4a2c
remote: return webcontents instance from cache
2016-02-18 17:40:10 +05:30
Kevin Sawicki
042825e8fb
emmitted -> emitted
2016-02-11 13:32:34 -08:00
Kevin Sawicki
bad4816976
Expand error message
2016-02-11 13:28:33 -08:00
Kevin Sawicki
674af4211c
Use interpolated string
2016-02-11 13:28:33 -08:00
Kevin Sawicki
42a8674cea
Add missing semicolon
2016-02-11 13:28:33 -08:00
Kevin Sawicki
8cacd0b931
Throw custom error when WebView API is unavailable
2016-02-11 13:28:33 -08:00
Cheng Zhao
47de3f3f24
Fix failing specs
2016-02-03 00:05:27 +08:00
Cheng Zhao
bc196c016b
Do process.emit('exit') in WillReleaseScriptContext
2016-02-02 23:47:19 +08:00
Cheng Zhao
ffcf609de1
Ensure only main frame get notifications
2016-02-02 23:44:33 +08:00
Cheng Zhao
4b67ff9534
Override WillReleaseScriptContext
2016-02-02 23:38:49 +08:00
yan
035c1dd5a1
Fix 'user strict' typo
2016-02-01 11:46:02 -08:00
Cheng Zhao
77cf30f758
Revert "renderer: dont fork the process when there is server redirect"
...
This reverts commit ab9d1bf97e
.
2016-01-29 11:52:31 +08:00
Cheng Zhao
bbf622187c
Merge pull request #4178 from deepak1556/webview_blinkfeatures_attributes_patch
...
webview: add blinkfeatures attribute
2016-01-21 15:03:33 -07:00
Cheng Zhao
56e8ddbdaf
Merge pull request #4186 from CharlieHess/webview-load-url
...
Expose loadURL for the webview tag.
2016-01-21 14:53:32 -07:00
Charlie Hess
7192a8517b
Expose loadURL for the webview tag.
2016-01-21 13:31:35 -08:00
Kevin Sawicki
b1f679ff6d
Clean up semicolon lint errors
2016-01-21 09:32:21 -07:00
Kevin Sawicki
70bcb0ac5a
Clean up no-unused-vars lint errors
2016-01-21 09:32:21 -07:00
Kevin Sawicki
45ddbb6d67
Clean up no-unreachable lint errors
2016-01-21 09:32:21 -07:00
Robo
fab34b400e
webview: add blinkfeatures attribute
2016-01-21 15:43:41 +05:30
Kevin Sawicki
0fe539f2c3
Remove unneeded semicolon
2016-01-15 15:30:07 -08:00
Kevin Sawicki
ae20292322
Add missing {
2016-01-15 15:30:07 -08:00
Kevin Sawicki
aab2821122
Use ES6 style class
2016-01-15 14:28:12 -08:00
Kevin Sawicki
caf7cf5582
Use const instead of var
2016-01-15 11:46:52 -08:00
Kevin Sawicki
79f1029d59
Remove unneeded .constructor segments
2016-01-15 10:29:00 -08:00
Kevin Sawicki
34030d7b2b
Use util.inherits instead of CoffeeScript's extend function
2016-01-15 10:17:45 -08:00
Kevin Sawicki
2833db78ad
Use [].inclues where appropriate
2016-01-15 10:17:45 -08:00
Kevin Sawicki
c2d473cf65
Remove unneeded [].indexOf fallback
2016-01-15 10:17:45 -08:00
Jessica Lord
003de0debe
Clean up variable declarations
2016-01-14 18:07:29 -08:00
Jessica Lord
5a4a8e1fa7
🔥 stray ref
2016-01-14 17:03:55 -08:00
Jessica Lord
5412ecdcc1
Use const
2016-01-14 14:52:05 -08:00
Jessica Lord
ab8908a4af
Use const
2016-01-14 14:41:46 -08:00
Kevin Sawicki
030d2a843c
Remove extra newlines around comments
2016-01-14 11:10:12 -08:00
Kevin Sawicki
f4af744519
Use // for single line comments
2016-01-14 10:35:29 -08:00
Robo
8b38bbcf18
webview: respect properties provided during webview creation
2016-01-13 22:40:55 +05:30
Cheng Zhao
8ae836d82d
Unlisten the zoom-level-changed event when webview is detached
2016-01-13 14:58:16 +08:00
Cheng Zhao
af02739c4e
Change webview's zoom level on JavaScript side
2016-01-13 12:50:02 +08:00
Cheng Zhao
350c572a8c
Handle default parameter of executeJavaScript in C++
2016-01-13 12:17:56 +08:00
Cheng Zhao
55dfddba77
Handle executeJavaScript in JavaScript
2016-01-13 12:11:46 +08:00
Cheng Zhao
5b7d1a9890
Add insertText to WebContents
2016-01-13 11:55:49 +08:00
Cheng Zhao
5567baf335
Add webFrame.insertText API
2016-01-13 11:21:16 +08:00
Kevin Sawicki
1f9691ae13
Convert all source files to JavaScript
2016-01-12 16:24:06 -08:00
Kevin Sawicki
403870a27e
Migrate to block comments
2016-01-12 16:22:34 -08:00
Eran Tiktin
29939dc0b7
Remove unneeded extra semicolons (;; -> ;)
2016-01-11 02:11:40 +02:00
Cheng Zhao
bd20b3f32a
Rely on content switches for implementing experimental features
2016-01-07 12:49:00 +08:00
Cheng Zhao
16d23bbda5
Remove pageVisibility option
...
The original purpose of this option is not working anymore, also adds
docs on the current way to disable process backgrounding.
2016-01-07 12:28:20 +08:00
Cheng Zhao
c6e03f8390
Remove overlayScrollbars and sharedWorker options
...
They are already enabled by default.
2016-01-07 12:17:19 +08:00
Cheng Zhao
4844e68ba1
Rename did-navigate-to-different-page to did-navigate
2016-01-04 12:09:11 +08:00
Cheng Zhao
941232a76b
Merge pull request #3975 from leethomas/add-webview-navigation-events
...
Add webview navigation events
2016-01-04 11:24:27 +08:00
Cheng Zhao
14db4a1946
Add isDevToolsFocused to webview
2016-01-04 10:46:30 +08:00
leethomas
911e60b507
add did-navigate-in-page event to webview & webcontents (triggers on hash/ref changes, anchor links...), pass url into events
2016-01-01 17:13:39 -08:00
leethomas
9f6319dd71
add will-navigate, did-navigate-to-different-page events to webview
2016-01-01 13:36:35 -08:00
leethomas
96d68b9285
🐛 add isDevToolsFocused to WebContents to fix #3928 , add devtools-[focused|open|close] events to WebView to fix #3783 .
2015-12-31 22:21:54 -08:00
Cheng Zhao
af5e76f6ae
Merge pull request #3959 from deepak1556/remote_object_patch
...
remote: support arguments of type Date
2015-12-31 18:46:22 +08:00
Cheng Zhao
cb5d79e0df
Merge pull request #3957 from atom/widevine
...
Merge #3830
2015-12-30 12:46:19 +08:00
Robo
72374b6e31
remote: support arguments of type Date
2015-12-30 01:41:31 +05:30
Cheng Zhao
c76db0ba1d
Fix coding styles
2015-12-29 18:59:27 +08:00
Robo
2e78aba090
webFrame: support fetch api for schemes that are privileged.
2015-12-29 15:57:59 +05:30
Cyrille Lebeaupin
9d878ad6b2
Add widevine third party
...
Add 2 new command options to use widevine:
- widevine-cdm-path: Path to widevine plugin
- widevine-cdm-version: Version of the widevine plugin
2015-12-29 14:50:59 +08:00
Cheng Zhao
ffc2870ccb
Fix circular reference caused by Object.defineProperty
2015-12-29 10:17:35 +08:00
Cheng Zhao
6785870dde
Variables are not shadowed in inline class
2015-12-28 22:51:40 +08:00
Cheng Zhao
b5fd491c2d
Fix circular reference caused by RemoteMemberFunction
2015-12-28 22:51:40 +08:00
Robo
ab9d1bf97e
renderer: dont fork the process when there is server redirect
2015-12-25 02:19:56 +05:30
Brian R. Bondy
11b2015535
Add did-change-theme-color event to webview
2015-12-22 17:28:22 -05:00
Cheng Zhao
c4931bb2d1
Merge pull request #3865 from deepak1556/visibility_api_patch
...
browser: fix document.hidden value
2015-12-22 19:04:23 +08:00
Robo
cc7040d75f
add test
2015-12-21 18:47:52 +05:30
Robo
ff51e4033a
browser: fix value of document.hidden
2015-12-21 17:43:46 +05:30
Robo
d162180196
add api to webview
2015-12-21 17:13:23 +05:30
Brian R. Bondy
fed0c43970
Add media play events to webview
2015-12-19 22:37:51 -05:00
Cheng Zhao
353f08e477
Remove sync call in remote module
2015-12-17 22:03:16 +08:00
Cheng Zhao
0282d424bf
Pass opener ID in command line
2015-12-17 21:27:14 +08:00
Cheng Zhao
71303d4804
Fix context menu not working in devtools
2015-12-16 22:57:03 +08:00
Cheng Zhao
c6634b1ea5
Don't pump message loop when sending sync msg
...
In old days sending sync message to browser process requires pumping
message loop in the renderer process, but now in Chrome 47 it is not
true anymore. And even when we do it, the Send method may fail
sometimes, so this change seems to be required for the Chrome 47
upgrade.
2015-12-16 22:38:04 +08:00
Kevin Sawicki
c5936a024d
Remove unneeded custom postMessage on window.opener
2015-12-14 16:54:26 -08:00
Kevin Sawicki
184b11be4c
Use id from source window when building proxy for event source
2015-12-14 16:47:33 -08:00
Kevin Sawicki
0ef0ce7345
Add comment about window.opener tweaks
2015-12-14 14:57:38 -08:00
Kevin Sawicki
574eec3e74
Make window.opener a BrowserWindowProxy
2015-12-14 14:55:48 -08:00
Cheng Zhao
a6976b7d83
Merge pull request #3768 from atom/window-post-message-origin
...
Fix window.postMessage event.origin value
2015-12-11 11:18:37 +08:00
Kevin Sawicki
8401ece537
removeWindow -> remove
2015-12-10 17:22:05 -08:00
Kevin Sawicki
49ca7509c7
Reuse BrowserWindowProxy instances
2015-12-10 17:20:10 -08:00
Kevin Sawicki
9bc7c62588
Use source origin in window.postMessage event
2015-12-10 16:52:39 -08:00
Robo
855d49100f
protocol: api to register schemes that can handle service worker
2015-12-09 03:11:58 +05:30
Cheng Zhao
836a8b1794
Simplify the desktopCapturer code
2015-12-08 13:49:26 +08:00
Cheng Zhao
51368952a2
Remove deprecated API usages
2015-12-08 12:58:39 +08:00
Cheng Zhao
d458b24945
Add desktopCapturer to electron
2015-12-08 12:44:55 +08:00
Cheng Zhao
04f7ceab73
Merge branch 'master' into desktop-capture-api
2015-12-08 12:43:44 +08:00
Cheng Zhao
e78a02806e
Make it safe to use sendSync
2015-12-08 10:07:47 +08:00
Cheng Zhao
647f151906
Fix the failing sendSync
2015-12-07 21:25:19 +08:00
Cheng Zhao
73e7773d84
Update to API changes of Chrome 47
2015-12-07 19:56:23 +08:00
Cheng Zhao
2c6d232254
Don't add too much listeners in BrowserWindowProxy
2015-12-04 11:12:36 +08:00
Charlie Hess
0d30a8d70c
Make downloadURL available on the webview tag.
2015-12-02 18:40:02 -08:00
Cheng Zhao
e5974e44ed
Deprecate the page-title-set event
...
We have two names for the same event, page-title-updated wins.
2015-12-01 18:50:56 +08:00
Cheng Zhao
8ce19d8059
Merge pull request #3586 from atom/ipc-fasterer
...
Ensure calling webview.send will not block the renderer
2015-11-26 13:15:08 +08:00
Cheng Zhao
9c62be8fc9
Improve the deprecation notice for ipc module
...
Close #3577 .
2015-11-26 11:06:56 +08:00
Paul Betts
789380dfad
Ensure calling webview.send will not block the renderer
...
When the browser process is busy, calling webview.send (a method that appears
on its face to be non-blocking) will actually block, because most webview methods
are remoted to a guest view instance in the browser. Instead, define a few methods
which will instead send its call over an async IPC message.
2015-11-25 15:54:30 -08:00
Cheng Zhao
94e24abb99
Use the new style remote module in Electron
2015-11-13 22:22:25 +08:00
Cheng Zhao
b925ac0056
Send sync message to get list of modules
2015-11-13 22:15:16 +08:00
Cheng Zhao
099278855c
Simplify how remote.require('electron') is optimized
2015-11-13 21:54:56 +08:00
Cheng Zhao
9bf0a8647e
Make it easier to use remote
2015-11-13 21:52:27 +08:00
Cheng Zhao
fbb8e61958
Replace "Url" in API names with "URL"
2015-11-13 16:03:40 +08:00
Cheng Zhao
860c46b3c1
Separate options from switches
...
On Windows the case sensitivity of command line switches are ignored, so
--nodeIntegraion will become --nodeintegration.
We should separate options from switches so we use "nodeIntegraion" in
options, while passing "--node-integration" in command line.
2015-11-13 14:05:49 +08:00
Cheng Zhao
2ca5a33d28
Add electron.hideInternalModules
2015-11-12 21:46:03 +08:00
Cheng Zhao
c649c4cf4f
Rename the env to ELECTRON_HIDE_INTERNAL_MODULES
2015-11-12 21:37:44 +08:00
Cheng Zhao
8b2942c279
Optimize remote.require('electron')
2015-11-12 20:30:40 +08:00
Cheng Zhao
1d1f911b09
Use require('electron') in Electron's code
2015-11-12 20:29:30 +08:00
Cheng Zhao
f9d7e7ce55
Add ELECTRON_DISABLE_OLD_STYLE_MODULES env
2015-11-12 17:02:04 +08:00
Cheng Zhao
c2c09daa23
Add "electron" module
2015-11-12 16:40:27 +08:00
Cheng Zhao
5cca947f4d
Remove unneeded override code
2015-11-11 10:37:34 +08:00
Cheng Zhao
737e22b003
Use minWidth style for options instead of min-width
2015-11-11 10:37:34 +08:00
Cheng Zhao
d234f10177
Implement event.sender for ipcRenderer
2015-11-10 16:59:08 +08:00
Cheng Zhao
6515a445a0
Use ipcRenderer in Electron's code
2015-11-10 15:29:43 +08:00
Cheng Zhao
828d911ed1
Deprecate ipc module for ipcRenderer
2015-11-10 15:12:07 +08:00
Cheng Zhao
91c4ed26fc
Print warnings for deprecated APIs
2015-11-09 21:51:30 +08:00
Cheng Zhao
647a0c4e2b
Code cleanup for remote module
2015-11-02 20:28:01 +08:00
Max Claus Nunes
bbb5aef5d2
Improve error handling from remote
...
This way copy all properties available in the error object and keep the real stack trace
2015-10-31 21:20:54 -02:00
Robo
eae7c840b7
use idweakmap for holding callbacks in browser
2015-10-29 17:51:56 +05:30
taemu
16eafdb0ce
Fix remove boolean parameter at IsSwitchEnabled function
2015-10-29 03:22:08 +09:00
Cheng Zhao
a3f62da615
Fix passing Date object in remote
...
Close #2017 .
2015-10-23 14:51:41 +08:00
Cheng Zhao
d5c964c68c
Fix passing Error object in remote
...
Closes #3089
2015-10-23 14:37:28 +08:00
Haojian Wu
9c861b9ad3
Fix always passing the first result to renderer when the API is called multiple
...
time at once.
2015-10-19 18:07:35 +08:00
Haojian Wu
fb4efec55d
Add options check.
...
This patch avoids main process never response back to renderer if the options is
invalid.
2015-10-19 11:06:56 +08:00
Haojian Wu
214f8477b3
Fix some typos.
2015-10-17 19:28:14 +08:00
Cheng Zhao
7bdbe45c91
subpixel-font-scaling option is removed
2015-10-16 15:01:28 +08:00
Robo
7756bb6762
webcontents: notify guests of embedders' zoom level change
2015-10-08 10:38:22 +05:30
Haojian Wu
dcb457e76e
Refine API design: desktopCapturer.getSources.
2015-10-07 11:10:35 +08:00
Haojian Wu
36c0ad7fda
Refine more about desktop capturer API.
...
* Simplify the coffeescript code.
* Add more options in desktopCapturer.startUpdating.
2015-10-05 12:47:01 +08:00
Haojian Wu
1e69ef79de
Refine: make desktop-capturer as a renderer module.
2015-10-04 22:04:41 +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
021ee20400
No need to add "app" to search paths
2015-10-03 17:52:46 +08:00
Cheng Zhao
5d9e4fc8fd
Override document.hidden
2015-10-01 18:39:35 +08:00
Cheng Zhao
ef4014e14b
Don't show open dialog as sheet in devtools
2015-10-01 14:46:33 +08:00
Cheng Zhao
1045bbc861
Do not enumerate windows in remote.getCurrentWindow
2015-10-01 14:08:33 +08:00
Cheng Zhao
4fdf6ceb51
Cache remote WebContents object of webview
2015-09-30 16:58:37 +08:00
Cheng Zhao
f2fa0e96eb
Pass options in "new-window" event
2015-09-22 23:40:16 +08:00
Cheng Zhao
f07fea1936
Add allowpopups attribute for webview
2015-09-22 20:11:05 +08:00