chore: fix typos (#32985)
This commit is contained in:
parent
069cde09fb
commit
1e8da899a3
14 changed files with 20 additions and 20 deletions
|
@ -82,7 +82,7 @@ void ElectronRenderFrameObserver::DidInstallConditionalFeatures(
|
|||
v8::Handle<v8::Context> context,
|
||||
int world_id) {
|
||||
// When a child window is created with window.open, its WebPreferences will
|
||||
// be copied from its parent, and Chromium will intialize JS context in it
|
||||
// be copied from its parent, and Chromium will initialize JS context in it
|
||||
// immediately.
|
||||
// Normally the WebPreferences is overriden in browser before navigation,
|
||||
// but this behavior bypasses the browser side navigation and the child
|
||||
|
@ -92,7 +92,7 @@ void ElectronRenderFrameObserver::DidInstallConditionalFeatures(
|
|||
// while "nodeIntegration=no" is passed.
|
||||
// We work around this issue by delaying the child window's initialization of
|
||||
// Node.js if this is the initial empty document, and only do it when the
|
||||
// acutal page has started to load.
|
||||
// actual page has started to load.
|
||||
auto* web_frame =
|
||||
static_cast<blink::WebLocalFrameImpl*>(render_frame_->GetWebFrame());
|
||||
if (web_frame->Opener() && web_frame->IsOnInitialEmptyDocument()) {
|
||||
|
|
|
@ -50,7 +50,7 @@ void ElectronRendererClient::RenderFrameCreated(
|
|||
void ElectronRendererClient::RunScriptsAtDocumentStart(
|
||||
content::RenderFrame* render_frame) {
|
||||
RendererClientBase::RunScriptsAtDocumentStart(render_frame);
|
||||
// Inform the document start pharse.
|
||||
// Inform the document start phase.
|
||||
v8::HandleScope handle_scope(v8::Isolate::GetCurrent());
|
||||
node::Environment* env = GetEnvironment(render_frame);
|
||||
if (env)
|
||||
|
@ -61,7 +61,7 @@ void ElectronRendererClient::RunScriptsAtDocumentStart(
|
|||
void ElectronRendererClient::RunScriptsAtDocumentEnd(
|
||||
content::RenderFrame* render_frame) {
|
||||
RendererClientBase::RunScriptsAtDocumentEnd(render_frame);
|
||||
// Inform the document end pharse.
|
||||
// Inform the document end phase.
|
||||
v8::HandleScope handle_scope(v8::Isolate::GetCurrent());
|
||||
node::Environment* env = GetEnvironment(render_frame);
|
||||
if (env)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue