diff --git a/.circleci/config.yml b/.circleci/config.yml index 372018b9e253..d169c7f0c5eb 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -13,7 +13,7 @@ parameters: run-docs-only: type: boolean default: false - + upload-to-storage: type: string default: '1' diff --git a/.circleci/config/base.yml b/.circleci/config/base.yml index 4098e78e1afa..7f1452b62e93 100644 --- a/.circleci/config/base.yml +++ b/.circleci/config/base.yml @@ -4,7 +4,7 @@ parameters: run-docs-only: type: boolean default: false - + upload-to-storage: type: string default: '1' @@ -141,7 +141,7 @@ env-mas-apple-silicon: &env-mas-apple-silicon env-send-slack-notifications: &env-send-slack-notifications NOTIFY_SLACK: true - + env-global: &env-global ELECTRON_OUT_DIR: Default @@ -694,7 +694,7 @@ step-show-goma-stats: &step-show-goma-stats run: shell: /bin/bash name: Check goma stats after build - command: | + command: | set +e set +o pipefail $LOCAL_GOMA_DIR/goma_ctl.py stat @@ -798,7 +798,7 @@ step-maybe-cross-arch-snapshot: &step-maybe-cross-arch-snapshot elif [ "$TARGET_ARCH" == "arm64" ]; then export MKSNAPSHOT_PATH="clang_x64_v8_arm64" fi - cp "out/Default/$MKSNAPSHOT_PATH/mksnapshot" out/Default + cp "out/Default/$MKSNAPSHOT_PATH/mksnapshot" out/Default cp "out/Default/$MKSNAPSHOT_PATH/v8_context_snapshot_generator" out/Default if [ "`uname`" == "Linux" ]; then cp "out/Default/$MKSNAPSHOT_PATH/libffmpeg.so" out/Default @@ -1012,7 +1012,7 @@ commands: else echo 'Using Python install from cache' fi - sudo installer -pkg python-downloads/python-2.7.18-macosx10.9.pkg -target / + sudo installer -pkg python-downloads/python-2.7.18-macosx10.9.pkg -target / fi - save_cache: paths: @@ -1420,7 +1420,7 @@ commands: artifact-key: << parameters.artifact-key >> build-nonproprietary-ffmpeg: << parameters.build-nonproprietary-ffmpeg >> - steps: << parameters.after-build-and-save >> - + # Save all data needed for a further tests run. - when: condition: << parameters.persist >> @@ -2124,7 +2124,7 @@ jobs: - electron-tests: artifact-key: darwin-x64 - darwin-testing-arm64-tests: + darwin-testing-arm64-tests: executor: apple-silicon environment: <<: *env-mac-large @@ -2239,9 +2239,9 @@ workflows: filters: branches: # Do not run this on forked pull requests - ignore: /pull\/[0-9]+/ + ignore: /pull\/[0-9]+/ requires: - - linux-arm-testing + - linux-arm-testing - linux-arm64-testing: requires: - linux-make-src-cache @@ -2249,7 +2249,7 @@ workflows: filters: branches: # Do not run this on forked pull requests - ignore: /pull\/[0-9]+/ + ignore: /pull\/[0-9]+/ requires: - linux-arm64-testing - linux-arm64-testing-gn-check: diff --git a/.devcontainer/docker-compose.yml b/.devcontainer/docker-compose.yml index f2298088915b..cfb043a52ebd 100644 --- a/.devcontainer/docker-compose.yml +++ b/.devcontainer/docker-compose.yml @@ -7,9 +7,9 @@ services: volumes: - ..:/workspaces/gclient/src/electron:cached - - /var/run/docker.sock:/var/run/docker.sock + - /var/run/docker.sock:/var/run/docker.sock - command: /bin/sh -c "while sleep 1000; do :; done" + command: /bin/sh -c "while sleep 1000; do :; done" user: builduser diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 7ea654e33ece..66196fe99ba9 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -19,7 +19,7 @@ body: label: Electron Version description: | What version of Electron are you using? - + Note: Please only report issues for [currently supported versions of Electron](https://www.electronjs.org/docs/latest/tutorial/support#currently-supported-versions). placeholder: 17.0.0 validations: diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml index 9e8c1cd168b5..cf6f66b5e605 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -29,7 +29,7 @@ body: - type: textarea attributes: label: Alternatives Considered - description: A clear and concise description of any alternative solutions or features you've considered. + description: A clear and concise description of any alternative solutions or features you've considered. validations: required: true - type: textarea diff --git a/.github/workflows/issue-labeled.yml b/.github/workflows/issue-labeled.yml index 427db8209d65..f090208ae92d 100644 --- a/.github/workflows/issue-labeled.yml +++ b/.github/workflows/issue-labeled.yml @@ -23,6 +23,6 @@ jobs: Would it be possible for you to make a standalone testcase with only the code necessary to reproduce the issue? For example, [Electron Fiddle](https://www.electronjs.org/fiddle) is a great tool for making small test cases and makes it easy to publish your test case to a [gist](https://gist.github.com) that Electron maintainers can use. - Stand-alone test cases make fixing issues go more smoothly: it ensure everyone's looking at the same issue, it removes all unnecessary variables from the equation, and it can also provide the basis for automated regression tests. + Stand-alone test cases make fixing issues go more smoothly: it ensure everyone's looking at the same issue, it removes all unnecessary variables from the equation, and it can also provide the basis for automated regression tests. Now adding the `blocked/need-repro` label for this reason. After you make a test case, please link to it in a followup comment. This issue will be closed in 10 days if the above is not addressed. diff --git a/appveyor-bake.yml b/appveyor-bake.yml index aae54a9ab214..ad457feb7ef9 100644 --- a/appveyor-bake.yml +++ b/appveyor-bake.yml @@ -18,7 +18,7 @@ environment: PYTHONIOENCODING: UTF-8 # Uncomment these lines and set APPVEYOR_RDP_PASSWORD in project settings to enable RDP before bake begins # install: -# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1')) +# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1')) build_script: # Uncomment/change the following line if the hard drive/partition size needs to change # - ps: Resize-Partition -DriveLetter C -Size (256GB) # ensure initial partition size @@ -28,8 +28,8 @@ build_script: if (-not (Test-Path -Path .\src)) { New-Item -Path .\src -ItemType Directory } - - ps: git clone --depth=1 https://chromium.googlesource.com/chromium/tools/depot_tools.git - - ps: $env:PATH="$pwd\depot_tools;$env:PATH" + - ps: git clone --depth=1 https://chromium.googlesource.com/chromium/tools/depot_tools.git + - ps: $env:PATH="$pwd\depot_tools;$env:PATH" - update_depot_tools.bat - ps: Move-Item $env:APPVEYOR_BUILD_FOLDER -Destination src\electron # Uncomment the following line if windows deps change diff --git a/appveyor-woa.yml b/appveyor-woa.yml index 0f545260ce08..b6ac4224d176 100644 --- a/appveyor-woa.yml +++ b/appveyor-woa.yml @@ -1,5 +1,5 @@ -# NOTE IF CHANGING THIS FILE, ALSO APPLY THE CHANGE TO appveyor.yml -# IF APPLICABLE!!!! +# NOTE IF CHANGING THIS FILE, ALSO APPLY THE CHANGE TO appveyor.yml +# IF APPLICABLE!!!! # # # The config expects the following environment variables to be set: @@ -119,7 +119,7 @@ for: $env:NINJA_STATUS="[%r processes, %f/%t @ %o/s : %es] " } - gclient config --name "src\electron" --unmanaged %GCLIENT_EXTRA_ARGS% "https://github.com/electron/electron" - # Patches are applied in the image bake. Check depshash to see if patches have changed. + # Patches are applied in the image bake. Check depshash to see if patches have changed. - ps: $env:RUN_GCLIENT_SYNC="false" - ps: $depshash_baked = Get-Content .\src\.depshash -Raw - ps: cd src\electron @@ -261,7 +261,7 @@ for: cd src New-Item .\out\Default\gen\node_headers\Release -Type directory Copy-Item -path .\out\Default\electron.lib -destination .\out\Default\gen\node_headers\Release\node.lib - - set npm_config_nodedir=%cd%\out\Default\gen\node_headers + - set npm_config_nodedir=%cd%\out\Default\gen\node_headers - set npm_config_arch=arm64 - cd electron # Explicitly set npm_config_arch because the .env doesn't persist @@ -272,7 +272,7 @@ for: - echo Running main test suite & node script/yarn test --runners=main --enable-logging --disable-features=CalculateNativeWinOcclusion - cd .. - echo Verifying non proprietary ffmpeg & python electron\script\verify-ffmpeg.py --build-dir out\Default --source-root %cd% --ffmpeg-path out\ffmpeg - + on_finish: # Uncomment these lines to enable RDP # - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1')) diff --git a/appveyor.yml b/appveyor.yml index 04f7473ab83e..34a769e0cf33 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,5 +1,5 @@ -# NOTE IF CHANGING THIS FILE, ALSO APPLY THE CHANGE TO appveyor-woa.yml -# IF APPLICABLE!!!! +# NOTE IF CHANGING THIS FILE, ALSO APPLY THE CHANGE TO appveyor-woa.yml +# IF APPLICABLE!!!! # # # The config expects the following environment variables to be set: @@ -117,7 +117,7 @@ for: $env:NINJA_STATUS="[%r processes, %f/%t @ %o/s : %es] " } - gclient config --name "src\electron" --unmanaged %GCLIENT_EXTRA_ARGS% "https://github.com/electron/electron" - # Patches are applied in the image bake. Check depshash to see if patches have changed. + # Patches are applied in the image bake. Check depshash to see if patches have changed. - ps: $env:RUN_GCLIENT_SYNC="false" - ps: $depshash_baked = Get-Content .\src\.depshash -Raw - ps: cd src\electron @@ -272,7 +272,7 @@ for: - echo "Done verifying mksnapshot" - echo Verifying chromedriver & python electron\script\verify-chromedriver.py --build-dir out\Default --source-root %cd% - echo "Done verifying chromedriver" - + on_finish: # Uncomment these lines to enable RDP # - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1')) diff --git a/docs/fiddles/features/keyboard-shortcuts/web-apis/index.html b/docs/fiddles/features/keyboard-shortcuts/web-apis/index.html index b19f3e92fd07..4effa03fc9f2 100644 --- a/docs/fiddles/features/keyboard-shortcuts/web-apis/index.html +++ b/docs/fiddles/features/keyboard-shortcuts/web-apis/index.html @@ -9,7 +9,7 @@
Hit any key with this window focused to see it captured here.