Skip to content

Commit

Permalink
chore: fix spelling errors in multiple files (#34574)
Browse files Browse the repository at this point in the history
* chore: fix spelling in .circleci

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* chore: fix spelling in BUILD.gn

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* chore: fix spelling in appveyor.yml

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* chore: fix spelling in build

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* chore: fix spelling in docs

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* chore: fix spelling in lib

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* chore: fix spelling in script

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* chore: fix spelling in shell

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* chore: fix spelling in spec

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* chore: fix spelling in spec-main

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
  • Loading branch information
jsoref committed Jun 16, 2022
1 parent f418a49 commit ea42787
Show file tree
Hide file tree
Showing 58 changed files with 88 additions and 88 deletions.
2 changes: 1 addition & 1 deletion .circleci/config/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ step-electron-publish: &step-electron-publish
echo 'Uploading Electron release distribution to Azure'
script/release/uploaders/upload.py --verbose --UPLOAD_TO_STORAGE
else
echo 'Uploading Electron release distribution to Github releases'
echo 'Uploading Electron release distribution to GitHub releases'
script/release/uploaders/upload.py --verbose
fi
Expand Down
2 changes: 1 addition & 1 deletion BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ config("electron_lib_config") {
include_dirs = [ "." ]
}

# We geneate the definitions twice here, once in //electron/electron.d.ts
# We generate the definitions twice here, once in //electron/electron.d.ts
# and once in $target_gen_dir
# The one in $target_gen_dir is used for the actual TSC build later one
# and the one in //electron/electron.d.ts is used by your IDE (vscode)
Expand Down
6 changes: 3 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# - "GN_EXTRA_ARGS" Additional gn arguments for a build config,
# e.g. 'target_cpu="x86"' to build for a 32bit platform.
# https://gn.googlesource.com/gn/+/master/docs/reference.md#target_cpu
# Don't forget to set up "NPM_CONFIG_ARCH" and "TARGET_ARCH" accordningly
# Don't forget to set up "NPM_CONFIG_ARCH" and "TARGET_ARCH" accordingly
# if you pass a custom value for 'target_cpu'.
# - "ELECTRON_RELEASE" Set it to '1' upload binaries on success.
# - "NPM_CONFIG_ARCH" E.g. 'x86'. Is used to build native Node.js modules.
Expand All @@ -12,7 +12,7 @@
# Is used in some publishing scripts, but does NOT affect the Electron binary.
# Must match 'target_cpu' passed to "GN_EXTRA_ARGS" and "NPM_CONFIG_ARCH" value.
# - "UPLOAD_TO_STORAGE" Set it to '1' upload a release to the Azure bucket.
# Otherwise the release will be uploaded to the Github Releases.
# Otherwise the release will be uploaded to the GitHub Releases.
# (The value is only checked if "ELECTRON_RELEASE" is defined.)
#
# The publishing scripts expect access tokens to be defined as env vars,
Expand Down Expand Up @@ -215,7 +215,7 @@ test_script:
}
- cd electron
- if "%RUN_TESTS%"=="true" ( echo Running main test suite & node script/yarn test -- --trace-uncaught --runners=main --enable-logging=file --log-file=%cd%\electron.log )
- if "%RUN_TESTS%"=="true" ( echo Running remote test suite & node script/yarn test -- --trace-uncaught --runners=remote --runTestFilesSeperately --enable-logging=file --log-file=%cd%\electron.log )
- if "%RUN_TESTS%"=="true" ( echo Running remote test suite & node script/yarn test -- --trace-uncaught --runners=remote --runTestFilesSeparately --enable-logging=file --log-file=%cd%\electron.log )
- if "%RUN_TESTS%"=="true" ( echo Running native test suite & node script/yarn test -- --trace-uncaught --runners=native --enable-logging=file --log-file=%cd%\electron.log )
- cd ..
- if "%RUN_TESTS%"=="true" ( echo Verifying non proprietary ffmpeg & python electron\script\verify-ffmpeg.py --build-dir out\Default --source-root %cd% --ffmpeg-path out\ffmpeg )
Expand Down
2 changes: 1 addition & 1 deletion build/mac/make_locale_dirs.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Cocoa .app bundle. The presence of these empty directories is sufficient to
# convince Cocoa that the application supports the named localization, even if
# an InfoPlist.strings file is not provided. Chrome uses these empty locale
# directoires for its helper executable bundles, which do not otherwise
# directories for its helper executable bundles, which do not otherwise
# require any direct Cocoa locale support.

import os
Expand Down
2 changes: 1 addition & 1 deletion build/node.gni
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
template("node_action") {
assert(defined(invoker.script), "Need script path to run")
assert(defined(invoker.args), "Need script argumets")
assert(defined(invoker.args), "Need script arguments")

action(target_name) {
forward_variables_from(invoker,
Expand Down
2 changes: 1 addition & 1 deletion build/npm.gni
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
template("npm_action") {
assert(defined(invoker.script),
"Need script name to run (must be defined in package.json)")
assert(defined(invoker.args), "Need script argumets")
assert(defined(invoker.args), "Need script arguments")

action("npm_pre_flight_" + target_name) {
inputs = [
Expand Down
2 changes: 1 addition & 1 deletion build/rules.gni
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ template("compile_ib_files") {
# Template to compile and package Mac XIB files as bundle data.
# Arguments
# sources:
# list of string, sources to comiple
# list of string, sources to compile
# output_path:
# (optional) string, the path to use for the outputs list in the
# bundle_data step. If unspecified, defaults to bundle_resources_dir.
Expand Down
2 changes: 1 addition & 1 deletion docs/api/app.md
Original file line number Diff line number Diff line change
Expand Up @@ -1381,7 +1381,7 @@ method returns false. If we fail to perform the copy, then this method will
throw an error. The message in the error should be informative and tell
you exactly what went wrong.

By default, if an app of the same name as the one being moved exists in the Applications directory and is _not_ running, the existing app will be trashed and the active app moved into its place. If it _is_ running, the pre-existing running app will assume focus and the previously active app will quit itself. This behavior can be changed by providing the optional conflict handler, where the boolean returned by the handler determines whether or not the move conflict is resolved with default behavior. i.e. returning `false` will ensure no further action is taken, returning `true` will result in the default behavior and the method continuing.
By default, if an app of the same name as the one being moved exists in the Applications directory and is _not_ running, the existing app will be trashed and the active app moved into its place. If it _is_ running, the preexisting running app will assume focus and the previously active app will quit itself. This behavior can be changed by providing the optional conflict handler, where the boolean returned by the handler determines whether or not the move conflict is resolved with default behavior. i.e. returning `false` will ensure no further action is taken, returning `true` will result in the default behavior and the method continuing.

For example:

Expand Down
2 changes: 1 addition & 1 deletion docs/api/session.md
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ To clear the handler, call `setDevicePermissionHandler(null)`.
This handler can be used to provide default permissioning to devices without first calling for permission
to devices (eg via `navigator.hid.requestDevice`). If this handler is not defined, the default device
permissions as granted through device selection (eg via `navigator.hid.requestDevice`) will be used.
Additionally, the default behavior of Electron is to store granted device permision through the lifetime
Additionally, the default behavior of Electron is to store granted device permission through the lifetime
of the corresponding WebContents. If longer term storage is needed, a developer can store granted device
permissions (eg when handling the `select-hid-device` event) and then read from that storage with `setDevicePermissionHandler`.

Expand Down
2 changes: 1 addition & 1 deletion docs/development/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ If you want to add a new API module to Electron, you'll want to look in [creatin

Electron has a fully-fledged governance system that oversees activity in Electron and whose working groups are responsible for areas like APIs, releases, and upgrades to Electron's dependencies including Chromium and Node.js. Depending on how frequently and to what end you want to contribute, you may want to consider joining a working group.

Details about each group and their reponsibilities can be found in the [governance repo](https://github.com/electron/governance).
Details about each group and their responsibilities can be found in the [governance repo](https://github.com/electron/governance).

## Patches in Electron

Expand Down
4 changes: 2 additions & 2 deletions docs/development/debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Some of the more common approaches are outlined below.

Chromium contains logging macros which can aid debugging by printing information to console in C++ and Objective-C++.

You might use this to print out variable values, function names, and line numbers, amonst other things.
You might use this to print out variable values, function names, and line numbers, amongst other things.

Some examples:

Expand All @@ -25,7 +25,7 @@ See [logging.h](https://chromium.googlesource.com/chromium/src/base/+/refs/heads
## Printing Stacktraces
Chromium contains a helper to print stack traces to console without interrrupting the program.
Chromium contains a helper to print stack traces to console without interrupting the program.
```cpp
#include "base/debug/stack_trace.h"
Expand Down
4 changes: 2 additions & 2 deletions docs/tutorial/devices.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ the WebHID API:
* [`ses.setDevicePermissionHandler(handler)`](../api/session.md#sessetdevicepermissionhandlerhandler)
can be used to provide default permissioning to devices without first calling
for permission to devices via `navigator.hid.requestDevice`. Additionally,
the default behavior of Electron is to store granted device permision through
the default behavior of Electron is to store granted device permission through
the lifetime of the corresponding WebContents. If longer term storage is
needed, a developer can store granted device permissions (eg when handling
the `select-hid-device` event) and then read from that storage with
Expand Down Expand Up @@ -92,7 +92,7 @@ There are several additional APIs for working with the Web Serial API:
* [`ses.setDevicePermissionHandler(handler)`](../api/session.md#sessetdevicepermissionhandlerhandler)
can be used to provide default permissioning to devices without first calling
for permission to devices via `navigator.serial.requestPort`. Additionally,
the default behavior of Electron is to store granted device permision through
the default behavior of Electron is to store granted device permission through
the lifetime of the corresponding WebContents. If longer term storage is
needed, a developer can store granted device permissions (eg when handling
the `select-serial-port` event) and then read from that storage with
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial/electron-versioning.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ npm install --save-dev electron@latest

There are several major changes from our 1.x strategy outlined below. Each change is intended to satisfy the needs and priorities of developers/maintainers and app developers.

1. Strict use of the the [SemVer](#semver) spec
1. Strict use of the [SemVer](#semver) spec
2. Introduction of semver-compliant `-beta` tags
3. Introduction of [conventional commit messages](https://conventionalcommits.org/)
4. Well-defined stabilization branches
Expand Down
2 changes: 1 addition & 1 deletion lib/browser/api/web-contents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import * as ipcMainUtils from '@electron/internal/browser/ipc-main-internal-util
import { MessagePortMain } from '@electron/internal/browser/message-port-main';
import { IPC_MESSAGES } from '@electron/internal/common/ipc-messages';

// session is not used here, the purpose is to make sure session is initalized
// session is not used here, the purpose is to make sure session is initialized
// before the webContents module.
// eslint-disable-next-line
session
Expand Down
2 changes: 1 addition & 1 deletion script/lint.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ const LINTERS = [{
run: (opts, filenames) => {
const patchesDir = path.resolve(__dirname, '../patches');
const patchesConfig = path.resolve(patchesDir, 'config.json');
// If the config does not exist, that's a proiblem
// If the config does not exist, that's a problem
if (!fs.existsSync(patchesConfig)) {
process.exit(1);
}
Expand Down
4 changes: 2 additions & 2 deletions script/release/ci-release-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ async function getCircleCIWorkflowId (pipelineId) {
workflowId = workflows.items.find(item => item.name.includes('publish')).id;
break;
}
console.log('Unxpected number of workflows, response was:', workflows);
console.log('Unexpected number of workflows, response was:', workflows);
workflowId = -1;
break;
}
Expand All @@ -139,7 +139,7 @@ async function getCircleCIJobNumber (workflowId) {
continue;
}
if (jobInfo.items.length !== 1) {
console.log('Unxpected number of jobs, response was:', jobInfo);
console.log('Unexpected number of jobs, response was:', jobInfo);
jobNumber = -1;
break;
}
Expand Down
2 changes: 1 addition & 1 deletion script/release/notes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const getPreviousPoint = async (point) => {
console.log('error', error);
}

// Otherwise, use the newest stable release that preceeds this branch.
// Otherwise, use the newest stable release that precedes this branch.
// To reach that you may have to walk past >1 branch, e.g. to get past
// 2-1-x which never had a stable release.
let branch = currentBranch;
Expand Down
2 changes: 1 addition & 1 deletion script/release/notes/notes.js
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ const getNotes = async (fromRef, toRef, newVersion) => {
// remove any old commits
pool.commits = pool.commits.filter(commit => !pool.processedHashes.has(commit.hash));

// if a commmit _and_ revert occurred in the unprocessed set, skip them both
// if a commit _and_ revert occurred in the unprocessed set, skip them both
for (const commit of pool.commits) {
const revertHash = commit.revertHash;
if (!revertHash) {
Expand Down
8 changes: 4 additions & 4 deletions script/release/uploaders/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ def main():
shutil.copy2(os.path.join(OUT_DIR, 'dsym.zip'), dsym_zip)
upload_electron(release, dsym_zip, args)

dsym_snaphot_zip = os.path.join(OUT_DIR, DSYM_SNAPSHOT_NAME)
shutil.copy2(os.path.join(OUT_DIR, 'dsym-snapshot.zip'), dsym_snaphot_zip)
upload_electron(release, dsym_snaphot_zip, args)
dsym_snapshot_zip = os.path.join(OUT_DIR, DSYM_SNAPSHOT_NAME)
shutil.copy2(os.path.join(OUT_DIR, 'dsym-snapshot.zip'), dsym_snapshot_zip)
upload_electron(release, dsym_snapshot_zip, args)
elif PLATFORM == 'win32':
if get_target_arch() != 'ia32':
pdb_zip = os.path.join(OUT_DIR, PDB_NAME)
Expand Down Expand Up @@ -359,7 +359,7 @@ def upload_electron(release, file_path, args):


def upload_io_to_github(release, filename, filepath, version):
print('Uploading %s to Github' % \
print('Uploading %s to GitHub' % \
(filename))
script_path = os.path.join(
ELECTRON_DIR, 'script', 'release', 'uploaders', 'upload-to-github.ts')
Expand Down
2 changes: 1 addition & 1 deletion script/run-clang-tidy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ function parseCommandLine () {
if (opts.help) showUsage();

if (!opts['out-dir']) {
console.log('--out-dir is a required argunment');
console.log('--out-dir is a required argument');
process.exit(0);
}

Expand Down
4 changes: 2 additions & 2 deletions script/spec-runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const fail = '✗'.red;

const args = require('minimist')(process.argv, {
string: ['runners', 'target'],
boolean: ['buildNativeTests', 'runTestFilesSeperately'],
boolean: ['buildNativeTests', 'runTestFilesSeparately'],
unknown: arg => unknownFlags.push(arg)
});

Expand Down Expand Up @@ -155,7 +155,7 @@ const specFilter = (file) => {
};

async function runTests (specDir, testName) {
if (args.runTestFilesSeperately) {
if (args.runTestFilesSeparately) {
const getFiles = require('../spec/static/get-files');
const testFiles = await getFiles(path.resolve(__dirname, `../${specDir}`), { filter: specFilter });
const baseElectronDir = path.resolve(__dirname, '..');
Expand Down
2 changes: 1 addition & 1 deletion shell/browser/api/electron_api_system_preferences.h
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ class SystemPreferences

std::string current_color_;

bool invertered_color_scheme_ = false;
bool inverted_color_scheme_ = false;

bool high_contrast_color_scheme_ = false;

Expand Down
10 changes: 5 additions & 5 deletions shell/browser/api/electron_api_system_preferences_win.cc
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ std::string SystemPreferences::GetMediaAccessStatus(
}

void SystemPreferences::InitializeWindow() {
invertered_color_scheme_ = IsInvertedColorScheme();
inverted_color_scheme_ = IsInvertedColorScheme();
high_contrast_color_scheme_ = IsHighContrastColorScheme();

// Wait until app is ready before creating sys color listener
Expand Down Expand Up @@ -243,10 +243,10 @@ LRESULT CALLBACK SystemPreferences::WndProc(HWND hwnd,
}

void SystemPreferences::OnSysColorChange() {
bool new_invertered_color_scheme = IsInvertedColorScheme();
if (new_invertered_color_scheme != invertered_color_scheme_) {
invertered_color_scheme_ = new_invertered_color_scheme;
Emit("inverted-color-scheme-changed", new_invertered_color_scheme);
bool new_inverted_color_scheme = IsInvertedColorScheme();
if (new_inverted_color_scheme != inverted_color_scheme_) {
inverted_color_scheme_ = new_inverted_color_scheme;
Emit("inverted-color-scheme-changed", new_inverted_color_scheme);
}

bool new_high_contrast_color_scheme = IsHighContrastColorScheme();
Expand Down
2 changes: 1 addition & 1 deletion shell/browser/api/electron_api_web_contents.cc
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,7 @@ void WebContents::DeleteThisIfAlive() {
}

void WebContents::Destroy() {
// The content::WebContents should be destroyed asyncronously when possible
// The content::WebContents should be destroyed asynchronously when possible
// as user may choose to destroy WebContents during an event of it.
if (Browser::Get()->is_shutting_down() || IsGuest()) {
DeleteThisIfAlive();
Expand Down
2 changes: 1 addition & 1 deletion shell/browser/api/electron_api_web_contents_mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ - (void)redispatchKeyEvent:(NSEvent*)event;
[event.os_event.window redispatchKeyEvent:event.os_event];
// FIXME(nornagon): this isn't the right return value; we should implement
// devtools windows as Widgets in order to take advantage of the
// pre-existing redispatch code in bridged_native_widget.
// preexisting redispatch code in bridged_native_widget.
return false;
} else if (event.os_event.window &&
[event.os_event.window
Expand Down
2 changes: 1 addition & 1 deletion shell/browser/api/event.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class Event : public gin::Wrappable<Event> {
const char* GetTypeName() override;

private:
// Replyer for the synchronous messages.
// Replier for the synchronous messages.
InvokeCallback callback_;
};

Expand Down
2 changes: 1 addition & 1 deletion shell/browser/browser_observer.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class BrowserObserver : public base::CheckedObserver {
virtual void OnWillFinishLaunching() {}
virtual void OnFinishLaunching(const base::DictionaryValue& launch_info) {}

// The browser's accessibility suppport has changed.
// The browser's accessibility support has changed.
virtual void OnAccessibilitySupportChanged() {}

// The app message loop is ready
Expand Down
2 changes: 1 addition & 1 deletion shell/browser/lib/bluetooth_chooser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ void BluetoothChooser::AddOrUpdateDevice(const std::string& device_id,
"select-bluetooth-device", GetDeviceList(),
base::BindOnce(&OnDeviceChosen, event_handler_));

// If emit not implimented select first device that matches the filters
// If emit not implemented select first device that matches the filters
// provided.
if (!prevent_default) {
event_handler_.Run(content::BluetoothChooserEvent::SELECTED, device_id);
Expand Down
2 changes: 1 addition & 1 deletion shell/browser/native_window_views.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1517,7 +1517,7 @@ void NativeWindowViews::OnWidgetActivationChanged(views::Widget* changed_widget,
NativeWindow::NotifyWindowBlur();
}

// Hide menu bar when window is blured.
// Hide menu bar when window is blurred.
if (!active && IsMenuBarAutoHide() && IsMenuBarVisible())
SetMenuBarVisibility(false);

Expand Down
6 changes: 3 additions & 3 deletions shell/browser/ui/autofill_popup.cc
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,18 @@ void CalculatePopupXAndWidthHorizontallyCentered(

// Calculate how much the pop-up needs to grow into the non-preferred
// direction.
int amount_to_grow_in_unpreffered_direction =
int amount_to_grow_in_unpreferred_direction =
std::max(0, popup_width - space_to_grow_in_preferred_direction);

bubble_bounds->set_width(popup_width);
if (is_rtl) {
// Note, in RTL the |pop_up_width| must be subtracted to achieve
// right-alignment of the pop-up with the element.
bubble_bounds->set_x(preferred_starting_point - popup_width +
amount_to_grow_in_unpreffered_direction);
amount_to_grow_in_unpreferred_direction);
} else {
bubble_bounds->set_x(preferred_starting_point -
amount_to_grow_in_unpreffered_direction);
amount_to_grow_in_unpreferred_direction);
}
}

Expand Down
2 changes: 1 addition & 1 deletion shell/browser/ui/cocoa/electron_ns_panel.mm
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ - (id)initWithShell:(electron::NativeWindowMac*)shell
}

@dynamic styleMask;
// The Nonactivating mask is reserverd for NSPanel,
// The Nonactivating mask is reserved for NSPanel,
// but we can use this workaround to add it at runtime
- (NSWindowStyleMask)styleMask {
return originalStyleMask | NSWindowStyleMaskNonactivatingPanel;
Expand Down
2 changes: 1 addition & 1 deletion shell/browser/ui/inspectable_web_contents.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class InspectableWebContents
void UpdateDevToolsZoomLevel(double level);

private:
// DevToolsEmbedderMessageDispacher::Delegate
// DevToolsEmbedderMessageDispatcher::Delegate
void ActivateWindow() override;
void CloseWindow() override;
void LoadCompleted() override;
Expand Down

0 comments on commit ea42787

Please sign in to comment.