Kevin Sawicki
3f7b3c4bd7
Implement window overrides in main context
2017-01-16 12:38:16 -08:00
Kevin Sawicki
eef72647b4
Set human readable context name
2017-01-16 12:38:16 -08:00
Kevin Sawicki
ad3b837ad5
Rename option to contextIsolation
2017-01-16 12:38:16 -08:00
Kevin Sawicki
b56bdc83af
🎨
2017-01-16 12:38:16 -08:00
Kevin Sawicki
2e7dbe6c6b
Use patch worldScriptContext to get isolated context
2017-01-16 12:38:16 -08:00
Kevin Sawicki
4f5c725dde
🎨 Use enum for world ids
2017-01-16 12:38:16 -08:00
Kevin Sawicki
5b6397aaa6
Store context that API is running in to deliver IPC events
2017-01-16 12:38:16 -08:00
Kevin Sawicki
5da4f032c3
Notify client each time main context is created
2017-01-16 12:38:16 -08:00
Kevin Sawicki
c5e68ec165
🎨
2017-01-16 12:38:16 -08:00
Kevin Sawicki
78e0b80dc7
Support IPC messages in isolated context
2017-01-16 12:38:16 -08:00
Kevin Sawicki
073d8c2177
Add world id constants
2017-01-16 12:38:16 -08:00
Kevin Sawicki
d194a84ae4
Setup isolated context from AtomRenderFrameObserver
2017-01-16 12:38:16 -08:00
Kevin Sawicki
736befe90f
Add initial support for loading into isolated world
2017-01-16 12:38:15 -08:00
Kevin Sawicki
cac85d2a12
Remove linter errors
2016-12-12 12:51:48 -08:00
Kevin Sawicki
381f55b3cb
Remove unneeded empty checks
2016-12-12 12:51:48 -08:00
Paul Frazee
99ea50649a
finish implementation of {secure:true} opt on protocol.registerStandardScehesm, and add working test
2016-12-12 12:49:57 -08:00
deepak1556
ed465208a2
renderer: add content settings class for managing storage
2016-09-21 21:47:30 +05:30
Kevin Sawicki
1072519488
Mark atom-shell version as deprecated
2016-09-16 15:59:00 -07:00
Cheng Zhao
f28e8d7168
Fix API changes of Chrome 53
2016-09-14 16:22:43 +09:00
Kevin Sawicki
6285500cdc
Sort includes alphabetically
2016-08-26 15:30:02 -07:00
Cheng Zhao
b57665330c
Merge branch 'master' into chrome52
2016-07-21 05:34:36 -06:00
deepak1556
c8bf6edcc6
webcontents: replace deprecated navigation observers
2016-07-14 06:47:38 +05:30
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
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
bb5b30b8a0
It is not allowed to run scripts in DidCreateDocumentElement
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
cb470cb94b
Use BrowserWindow's backgroundColor as renderer view's background color
2016-04-02 20:46:50 +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
fd53a4b24d
modify default background for all render views
2016-03-14 19:26:20 +05:30
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
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
af02739c4e
Change webview's zoom level on JavaScript side
2016-01-13 12:50:02 +08: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
c76db0ba1d
Fix coding styles
2015-12-29 18:59:27 +08:00
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
Robo
ab9d1bf97e
renderer: dont fork the process when there is server redirect
2015-12-25 02:19:56 +05:30
Robo
855d49100f
protocol: api to register schemes that can handle service worker
2015-12-09 03:11:58 +05:30
Cheng Zhao
73e7773d84
Update to API changes of Chrome 47
2015-12-07 19:56:23 +08:00
taemu
16eafdb0ce
Fix remove boolean parameter at IsSwitchEnabled function
2015-10-29 03:22:08 +09: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
Cheng Zhao
0a4fb2ec4f
Support externalized ArrayBuffer for node::Buffer
2015-09-07 11:12:42 +08:00
Cheng Zhao
45491ca7ab
Fix API changes
2015-09-03 17:50:23 +09:00
Cheng Zhao
ebedb60684
Insert node integration for all main frames
2015-08-31 21:59:13 +08:00
Cheng Zhao
9ecc4bcb7d
Fork renderer process for webview
...
Previously it was disabled because Chrome doesn't support swapping
renderer process before, it seeems to work fine now, so we enable it to
see how it goes.
2015-08-31 21:38:18 +08:00
Robo
8757da6c47
renderer: send referrer for all naviagtions
2015-08-29 19:20:09 +05:30
Cheng Zhao
86eb0a5eaa
Create both Uint8Array and ArrayBuffer from blink
2015-08-14 12:40:03 +08:00
Cheng Zhao
0f990d40cc
Use blink's allocator in Node's Buffer
2015-08-11 12:31:41 +08:00
Cheng Zhao
9e8a118d10
Cleanup code
2015-07-14 03:23:19 +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
deepak1556
683917ae67
renderer: option to override page visiblity state
2015-06-04 14:40:13 +05:30
Cheng Zhao
b169ac016e
Start AtomRenderFrameObserver
2015-05-22 15:59:29 +08:00
Cheng Zhao
01e891652f
Fix compilation errors
2015-05-22 15:24:34 +08:00
Cheng Zhao
c82d21b39f
Add AtomRenderFrameObserver
2015-05-22 15:01:13 +08:00
deepak1556
3fdc4543b8
ppapi flash plugin support
2015-05-10 09:22:09 +05:30
Cheng Zhao
30e931f10b
Revert "The "subpixel-font-scaling" option is removed"
...
This reverts commit 98fbe5127b
.
2015-03-23 16:29:32 +08:00
Cheng Zhao
12d5474077
Fix webview for the new API
2015-03-18 09:57:46 +08:00
Cheng Zhao
98fbe5127b
The "subpixel-font-scaling" option is removed
2015-03-18 09:57:41 +08:00
Cheng Zhao
2ed7d58ac4
Fix loading node integration when page in webview navigates, close #1068
2015-01-29 16:49:34 -08:00
Cheng Zhao
de99c38fb6
Get rid of AtomRenderFrameObserver
2015-01-23 20:51:19 -08:00
Cheng Zhao
91320a9e55
Remove AtomRendererBindings
...
After the simplification of code this class is no longer needed.
2015-01-23 20:43:38 -08:00
Cheng Zhao
ef15b670a9
Initialize node integration after window object is cleared
2015-01-21 16:40:19 -08:00
Cheng Zhao
706f547287
Don't insert node symbols in frames
...
This greatly simplified our code, and it is not useful to enable node
integrations in frames.
2015-01-21 15:42:57 -08:00
Cheng Zhao
f142f572c3
Add DidClearWindowObject for renderer client
2015-01-21 15:35:43 -08:00
Cheng Zhao
7e33e26465
Add atom-shell bindings before loading environment
2015-01-21 15:02:09 -08:00
Cheng Zhao
5e58915bdd
Separate LoadEnvironment from CreateEnvironment
2015-01-21 14:00:19 -08:00
Cheng Zhao
7bc364a374
Upgrade node for new V8 API
2014-12-07 13:09:50 -08:00
Cheng Zhao
d309fd5a27
Update printing code
2014-12-07 06:55:40 -08:00
Kevin Sawicki
b6b6fc3bfd
Remove All Rights Reserved after GitHub copyright
...
Closes #762
2014-10-31 11:17:05 -07:00
Cheng Zhao
10a8f3c884
Make <webview> work with plugins turned off
2014-10-26 14:05:54 +08:00
Cheng Zhao
f629fa7b27
Detect node integration in JavaScript
2014-10-25 18:51:26 +08:00
Cheng Zhao
58a38d90b8
Don't fork renderer process for guest
2014-10-24 19:08:26 +08:00
Cheng Zhao
d26dcd5501
Schemas should be registered early
2014-10-22 23:36:31 +08:00
Cheng Zhao
33c622ec86
Install tts dispatcher
2014-10-07 21:27:15 +08:00
Cheng Zhao
05b602d0ce
Import Chrome's tts code
2014-10-07 21:18:44 +08:00
Cheng Zhao
5696fe8ec8
No need to set "--harmony" in renderer process.
...
After Chrome 37 renderer process can work correctly without it.
2014-09-09 20:05:43 +08:00
Cheng Zhao
8de90db429
Pass web runtime features by command line.
2014-09-09 11:08:30 +08:00
Cheng Zhao
a413935e91
Initialize node after WebKit is initialized.
2014-09-01 18:43:43 +08:00
Cheng Zhao
8051ad8b2a
Add support for chrome.extension API in devtools extension.
2014-08-28 12:54:19 +08:00
Cheng Zhao
7de0f71a75
Fix compiling with print messages.
2014-08-21 16:14:22 +08:00
Cheng Zhao
143bde007a
Always enable harmony when node binding is on.
...
If we dont' do this we would have lots of "Extension or internal
compilation error." error, seems to be V8's bug.
2014-07-28 20:28:50 +08:00
Cheng Zhao
66aea0c3e8
Fix releasing script contexts.
2014-07-18 09:12:22 +08:00
Cheng Zhao
cd4c5d976b
Adapt to API changes of Chromium and node.
2014-06-28 22:33:00 +08:00