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.
This commit is contained in:
parent
3a9bbe30ac
commit
64a84dee3b
4 changed files with 44 additions and 3 deletions
|
@ -335,6 +335,7 @@ var registerWebViewElement = function () {
|
|||
'loadURL',
|
||||
'getTitle',
|
||||
'isLoading',
|
||||
'isLoadingMainFrame',
|
||||
'isWaitingForResponse',
|
||||
'stop',
|
||||
'reload',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue