Commit graph

8170 commits

Author SHA1 Message Date
Rob Brackett
dc8fc7c079 📝 Add English docs for webContents.isLoadingMainFrame()
[ci skip]
2016-04-19 23:27:22 -07:00
Rob Brackett
d3e879cd7f Change WebContents::IsLoadingMainFrame to compare SiteInstances
(per @deepak1556's recommendation)

Also updates tests to cover the situation where navigating between pages from the same potential "site" and adds generalized tests for `isLoadingMainFrame()`.
2016-04-19 22:05:09 -07:00
Rob Brackett
942971b01a Fix linting errors. 2016-04-19 19:20:59 -07:00
Rob Brackett
64a84dee3b Add isLoadingMainFrame method to WebContents.
Also switch `webContents.executeJavaScript` to check it instead of `isLoading`.
There doesn’t seem to be a reasonable public way to get this information out of Chromium, so it’s synthesized here based on WebContentsObserver callbacks.
Fixes #5183.
2016-04-18 10:37:08 -07:00
Rob Brackett
3a9bbe30ac Test for #5183 - webContents.executeJavaScript hangs on subframe load. 2016-04-18 10:33:56 -07:00
Cheng Zhao
eeccd90455 Merge pull request #5191 from electron/initialize-embedder
Initialize the embedder_ member data
2016-04-18 15:13:41 +09:00
Cheng Zhao
a8032e8fef Merge pull request #5184 from miniak/fix-docs
Fix documentation
2016-04-18 15:13:27 +09:00
Cheng Zhao
34319abf4a Initialize the embedder_ member data
Otherwise it is going to be some random value and bite us.
2016-04-18 14:52:03 +09:00
Cheng Zhao
0bf1e56156 Update brightray for electron/brightray#212 2016-04-18 13:59:15 +09:00
Milan Burda
d512421084 Fix documentation 2016-04-16 19:58:03 +02:00
Zeke Sikelianos
8d08c3241d Merge pull request #5176 from shokmaster/patch-1
Correct misspellings
2016-04-15 12:46:30 -07:00
Cheng Zhao
16de30dd04 Merge pull request #5169 from Stone-Jay/patch-4
Update sample code in online-offline-events.md
2016-04-15 22:16:07 +09:00
Cheng Zhao
522d592832 Merge pull request #5167 from Stone-Jay/patch-3
translation error in browser-window.md
2016-04-15 21:14:09 +09:00
Cheng Zhao
2414096560 Merge pull request #5166 from preco21/master
docs: Update Korean docs as upstream
2016-04-15 20:39:55 +09:00
Cheng Zhao
cb947873c4 Merge pull request #5161 from electron/felix/iss5097
AutoUpdate Windows: Don't spawn if running
2016-04-15 20:10:03 +09:00
Cheng Zhao
44bc24174c Merge pull request #5159 from djpereira/patch-1
Sample missing reference to webContents for toggleDevTools
2016-04-15 19:59:50 +09:00
Cheng Zhao
9574f79d0f Merge pull request #5157 from christoth/master
webview: add CSS styling notes to doc
2016-04-15 19:58:54 +09:00
Juan Antonio Gómez
132ac20ccf Correct misspellings
Correct misspellings
2016-04-15 11:49:08 +02:00
Cheng Zhao
aefb672393 Bump v0.37.6 2016-04-15 16:48:09 +09:00
Cheng Zhao
059ca01767 Update brightray for printing fix 2016-04-15 16:47:17 +09:00
Cheng Zhao
38f0088844 Update brightray for #4973 2016-04-15 16:35:51 +09:00
StoneStoneStone
07346ae858 Update sample code in online-offline-events.md
change `ipc` to `ipcMain`/`ipcRenderer`
2016-04-15 14:10:11 +08:00
StoneStoneStone
1985e1b8e0 translation error in browser-window.md
'same-origin policy' means '同源策略' in Chinese
2016-04-15 10:04:01 +08:00
Cheng Zhao
075da45b74 Merge pull request #5155 from electron/mac-background-color
Set the backgroundColor of RenderWidgetHostView
2016-04-15 08:48:09 +09:00
Felix Rieseberg
a5b93211e6 AutoUpdate Windows: Don't spawn if running
Previously, the auto updater would run as many squirrel processes
as told. This introduces a little change where instead of spawning
a second process, we attach to the already running process - or, if
different arguments are passed, return and emit an error.

This is not failsafe, but it ensures that we don't run into simple
race condition crashes.

Closes $5097
2016-04-14 11:22:28 -07:00
Daniel Pereira
7b56085a0a Update menu.md
There was a missing reference to webContents.
2016-04-14 10:50:08 -05:00
christoth
4708477f5a webview: add CSS styling notes
Create a new section for CSS and add notes to avoid hiding the webview via hidden or display:none; and provide a recommended approach.
2016-04-14 10:29:55 -04:00
Plusb Preco
95a53fc832 📝 Small fixes
[ci skip]
2016-04-14 22:56:56 +09:00
Plusb Preco
b8e64ac40e 📝 Update Korean docs as upstream
[ci skip]
2016-04-14 22:55:09 +09:00
Cheng Zhao
b84a178ceb Set the backgroundColor of RenderWidgetHostView 2016-04-14 21:52:17 +09:00
Cheng Zhao
64d37065bd Merge pull request #5117 from deepak1556/devtools_security_panel_patch
provide security style for devtools security panel
2016-04-14 20:23:58 +09:00
Cheng Zhao
7501a02b34 Merge pull request #5153 from electron/fix-frameless-background
Fix wrong default transparent background for frameless window
2016-04-14 20:05:35 +09:00
deepak1556
54545a8a6e provide security style for devtools security panel 2016-04-14 16:20:14 +05:30
Cheng Zhao
11ba1832d1 Only transparent window does not have background color 2016-04-14 19:35:31 +09:00
Cheng Zhao
9e85cb4c11 Merge pull request #5152 from electron/fix-win-printing
Fix printing not working on Windows
2016-04-14 19:22:56 +09:00
Cheng Zhao
7d4e0629d6 Fix the link error 2016-04-14 18:22:29 +09:00
Cheng Zhao
ae0d007c5e Do no load PDF library from DLL
We already have them compiled in.
2016-04-14 17:15:20 +09:00
Cheng Zhao
b9ad09db91 Update libchromiumcontent with necessary headers and libs 2016-04-14 17:14:45 +09:00
Cheng Zhao
47cc390e41 Merge pull request #5146 from Stone-Jay/patch-2
Update process.md
2016-04-14 15:11:55 +09:00
Cheng Zhao
7787dee638 Merge pull request #5141 from electron/optimize-visibility-state
Optimize the implementation of document.visibilityState
2016-04-14 11:56:13 +09:00
StoneStoneStone
cb2343c69e Update process.md
translation error, change "实效" to “失效".
2016-04-14 10:08:01 +08:00
Cheng Zhao
31eb793fb0 Avoid adding a new option to webPreferences 2016-04-14 10:50:07 +09:00
Cheng Zhao
8f0e594007 Fix lint warnings 2016-04-13 23:10:31 +09:00
Cheng Zhao
43c44da50b Correctly set initial visibilityState 2016-04-13 23:07:28 +09:00
Cheng Zhao
07a4c52919 Reduces the IPC messages used for visibilityState 2016-04-13 21:36:43 +09:00
Cheng Zhao
c3ac92b500 Update brightray for the linux notification improvements 2016-04-13 20:13:45 +09:00
Cheng Zhao
07572965df Merge pull request #5137 from electron/fix-did-fail-load
Revert #3643
2016-04-13 20:12:50 +09:00
Cheng Zhao
65c612a66d Avoid external URLs 2016-04-13 19:55:59 +09:00
Cheng Zhao
0a39449694 spec: loadUrl should not crash in did-fail-provisional-load handler 2016-04-13 19:39:11 +09:00
Cheng Zhao
92882c358a No more need to delay did-fail-load event 2016-04-13 19:33:59 +09:00