fix: avoid IPC for renderer webFrame.getZoom...
APIs (#45557)
* fix: avoid IPC for renderer `webFrame.getZoom...` APIs Co-authored-by: clavin <clavin@electronjs.org> * Remove `DoGetZoomLevel` IPC Co-authored-by: clavin <clavin@electronjs.org> * Fix synchronous behavior & nullptr deref Co-authored-by: clavin <clavin@electronjs.org> * Use local root Co-authored-by: clavin <clavin@electronjs.org> --------- Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: clavin <clavin@electronjs.org>
This commit is contained in:
parent
5b90ce2290
commit
aacbdaf4ec
7 changed files with 22 additions and 34 deletions
|
@ -58,14 +58,6 @@ void ElectronWebContentsUtilityHandlerImpl::SetTemporaryZoomLevel(
|
|||
}
|
||||
}
|
||||
|
||||
void ElectronWebContentsUtilityHandlerImpl::DoGetZoomLevel(
|
||||
DoGetZoomLevelCallback callback) {
|
||||
api::WebContents* api_web_contents = api::WebContents::From(web_contents());
|
||||
if (api_web_contents) {
|
||||
api_web_contents->DoGetZoomLevel(std::move(callback));
|
||||
}
|
||||
}
|
||||
|
||||
void ElectronWebContentsUtilityHandlerImpl::CanAccessClipboardDeprecated(
|
||||
mojom::PermissionName name,
|
||||
const blink::LocalFrameToken& frame_token,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue