Haojian Wu
55b3f1936f
Modernize to C++11: Use for-range loop.
2016-07-10 13:33:15 +02:00
Haojian Wu
3bdeac98bf
Modernize to C++11: use override.
2016-07-10 13:21:42 +02:00
Haojian Wu
fab02809c6
Modernize to C++11: NULL => nullptr.
...
No functional change.
2016-07-10 11:57:04 +02:00
Cheng Zhao
1ba3907038
Update to API changes of Chrome 52
2016-07-04 15:32:43 +09:00
Cheng Zhao
a3dd6c635f
Avoid calling Environment::GetCurrent for unjected contexts
...
It seems to cause crashes when it is called for contexts that do not
have node integrations.
2016-06-20 16:51:42 +09:00
Cheng Zhao
1bfbd215ea
Don't rely on AddAdditionalSchemes for setting standard schemes
...
On Linux because of the existence of zygote process, it becomes very
tricky to correctly set standard schemes, basically we have to:
1. Pass --standard-schemes to both zygote and render processes
2. Init standard schemes for both zygote and render processes
The )1 is very hard to achieve, so instead of using
AddAdditionalSchemes, we just call url::AddStandardScheme directly.
2016-06-08 16:32:02 +09:00
Cheng Zhao
6755aa44f6
Initialize script context in DidClearWindowObject
...
Doing it in RunScriptsAtDocumentStart would somehow result in weird
results when webSecurity is off.
2016-05-30 16:34:28 +09:00
Cheng Zhao
d8db695712
Handle port disconnecting
2016-05-28 12:07:08 +09:00
Cheng Zhao
9ab76fb884
Add webContents.sendToAll to send message to all frames
2016-05-27 16:58:49 +09:00
Cheng Zhao
134f9019eb
Enable node integration for pages in devtools extension
2016-05-27 15:10:46 +09:00
Cheng Zhao
7e1f159185
Run content scripts at correct phase
2016-05-27 11:12:51 +09:00
Cheng Zhao
4fb9e20c33
Add API to set render process preferences
2016-05-27 08:51:02 +09:00
Cheng Zhao
7ba391da7c
Update to API changes of Chrome 51
2016-05-23 10:59:39 +09:00
deepak1556
c9b314d43c
renderer: generate net error strings when requested
2016-05-21 10:21:15 +05:30
Cheng Zhao
c740438032
Rename webFrame.purgeCaches to webFrame.clearCache
...
This matches the name of session.clearCache.
2016-05-14 22:48:25 +09:00
Cheng Zhao
7459581d13
Fix cpplint warnings
2016-05-14 22:40:18 +09:00
Paul Betts
652913f8d6
Just return the type directly
2016-05-13 10:54:10 -07:00
Paul Betts
d83c36e0fd
Add a way to drop all cached memory
2016-05-13 10:54:10 -07:00
Paul Betts
22a3765394
Wire up a new method in web frame
2016-05-13 10:54:10 -07:00
Cheng Zhao
bb5b30b8a0
It is not allowed to run scripts in DidCreateDocumentElement
2016-05-13 11:12:01 +09:00
Cheng Zhao
73223fe5c3
Upgrade to Node v6
2016-05-13 11:12:01 +09:00
Cheng Zhao
35d9e37220
Simplify the check for web_frame_widget
2016-05-13 11:11:50 +09:00
Brian R. Bondy
e8c4fb6903
setBaseBackgroundColor moved to WebFrameWidget
2016-05-13 11:11:50 +09:00
Cheng Zhao
df397dab30
Add scrollBounce option and disable it by default
2016-05-06 14:57:43 +09:00
Cheng Zhao
272592415d
Fix building on non-mac
2016-04-25 10:34:41 +09:00
Cheng Zhao
2ae52d0ff4
Make Wrappable a template class
2016-04-25 10:17:54 +09:00
Cheng Zhao
17446f4284
Make sure every page will get a script context created
2016-04-12 15:11:10 +09:00
Cheng Zhao
cb470cb94b
Use BrowserWindow's backgroundColor as renderer view's background color
2016-04-02 20:46:50 +09:00
Cheng Zhao
c307478d5d
Merge pull request #4892 from deepak1556/v8_util_patch
...
common: use v8::private symbols as identifiers for object properties
2016-03-31 10:22:23 +09:00
Cheng Zhao
e401335ebb
Get rid of the global_env
2016-03-27 19:21:12 +09:00
Cheng Zhao
896ea7b79d
Do not create dummy node environment
...
There is a bug in V8 that using Private in a dummy environment would
result in crash.
2016-03-27 19:16:26 +09:00
Robo
5fccbfc7c6
common: use v8::private symbols as identifiers for object properties
2016-03-24 01:24:01 +05:30
Robo
fd53a4b24d
modify default background for all render views
2016-03-14 19:26:20 +05:30
Robo
f8f3fba433
webview: allow setting background color
2016-03-14 15:01:36 +05:30
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