Skip to content

Commit

Permalink
Merge branch 'main' into roller/node/main
Browse files Browse the repository at this point in the history
  • Loading branch information
jkleinsc committed Jun 17, 2021
2 parents 461953d + c841247 commit 670b48b
Show file tree
Hide file tree
Showing 157 changed files with 2,180 additions and 1,789 deletions.
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,7 @@ step-fix-sync-on-mac: &step-fix-sync-on-mac
# Fix Clang Install (wrong binary)
rm -rf src/third_party/llvm-build
python src/tools/clang/scripts/update.py
python src/tools/clang/scripts/update.py --package=lld_mac
fi
step-install-signing-cert-on-mac: &step-install-signing-cert-on-mac
Expand Down
5 changes: 4 additions & 1 deletion .markdownlint.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,8 @@
"no-trailing-spaces": {
"br_spaces": 0
},
"single-h1": false
"single-h1": false,
"no-inline-html": {
"allowed_elements": ["br"]
}
}
2 changes: 1 addition & 1 deletion BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,6 @@ source_set("electron_lib") {
"//device/bluetooth",
"//device/bluetooth/public/cpp",
"//gin",
"//media/blink:blink",
"//media/capture/mojom:video_capture",
"//media/mojo/mojom",
"//net:extras",
Expand All @@ -369,6 +368,7 @@ source_set("electron_lib") {
"//skia",
"//third_party/blink/public:blink",
"//third_party/blink/public:blink_devtools_inspector_resources",
"//third_party/blink/public/platform/media",
"//third_party/boringssl",
"//third_party/electron_node:node_lib",
"//third_party/inspector_protocol:crdtp",
Expand Down
7 changes: 5 additions & 2 deletions DEPS
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,14 @@ gclient_gn_args = [

vars = {
'chromium_version':
'93.0.4536.0',
'93.0.4539.0',
'node_version':
'v16.3.0',
'nan_version':
'v2.14.2',
# The following commit hash of NAN is v2.14.2 with *only* changes to the
# test suite. This should be updated to a specific tag when one becomes
# available.
'65b32af46e9d7fab2e4ff657751205b3865f4920',
'squirrel.mac_version':
'cdc0729c8bf8576bfef18629186e1e9ecf1b0d9f',

Expand Down
2 changes: 1 addition & 1 deletion ELECTRON_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
15.0.0-nightly.20210614
15.0.0-nightly.20210617
2 changes: 2 additions & 0 deletions build/args/all.gn
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,5 @@ is_cfi = false

# Make application name configurable at runtime for cookie crypto
allow_runtime_configurable_key_storage = true

enable_cet_shadow_stack = false
2 changes: 2 additions & 0 deletions chromium_src/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ static_library("chrome") {

if (enable_color_chooser) {
sources += [
"//chrome/browser/devtools/devtools_eye_dropper.cc",
"//chrome/browser/devtools/devtools_eye_dropper.h",
"//chrome/browser/platform_util.cc",
"//chrome/browser/platform_util.h",
"//chrome/browser/ui/browser_dialogs.h",
Expand Down
11 changes: 5 additions & 6 deletions chromium_src/chrome/browser/certificate_manager_model.cc
Original file line number Diff line number Diff line change
Expand Up @@ -157,15 +157,14 @@ void CertificateManagerModel::GetCertDBOnIOThread(
CreationCallback callback) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);

auto did_get_cert_db_callback = base::AdaptCallbackForRepeating(
base::BindOnce(&CertificateManagerModel::DidGetCertDBOnIOThread,
std::move(callback)));
auto split_callback = base::SplitOnceCallback(base::BindOnce(
&CertificateManagerModel::DidGetCertDBOnIOThread, std::move(callback)));

net::NSSCertDatabase* cert_db =
GetNSSCertDatabaseForResourceContext(context, did_get_cert_db_callback);
net::NSSCertDatabase* cert_db = GetNSSCertDatabaseForResourceContext(
context, std::move(split_callback.first));

// If the NSS database was already available, |cert_db| is non-null and
// |did_get_cert_db_callback| has not been called. Call it explicitly.
if (cert_db)
did_get_cert_db_callback.Run(cert_db);
std::move(split_callback.second).Run(cert_db);
}
3 changes: 2 additions & 1 deletion docs/api/browser-window-proxy.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

> Manipulate the child browser window
Process: [Renderer](../glossary.md#renderer-process)
Process: [Renderer](../glossary.md#renderer-process)<br />
_This class is not exported from the `'electron'` module. It is only available as a return value of other methods in the Electron API._

The `BrowserWindowProxy` object is returned from `window.open` and provides
limited functionality with the child window.
Expand Down
3 changes: 2 additions & 1 deletion docs/api/client-request.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

> Make HTTP/HTTPS requests.
Process: [Main](../glossary.md#main-process)
Process: [Main](../glossary.md#main-process)<br />
_This class is not exported from the `'electron'` module. It is only available as a return value of other methods in the Electron API._

`ClientRequest` implements the [Writable Stream](https://nodejs.org/api/stream.html#stream_writable_streams)
interface and is therefore an [EventEmitter][event-emitter].
Expand Down
3 changes: 2 additions & 1 deletion docs/api/command-line.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

> Manipulate the command line arguments for your app that Chromium reads
Process: [Main](../glossary.md#main-process)
Process: [Main](../glossary.md#main-process)<br />
_This class is not exported from the `'electron'` module. It is only available as a return value of other methods in the Electron API._

The following example shows how to check if the `--disable-gpu` flag is set.

Expand Down
3 changes: 2 additions & 1 deletion docs/api/cookies.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

> Query and modify a session's cookies.
Process: [Main](../glossary.md#main-process)
Process: [Main](../glossary.md#main-process)<br />
_This class is not exported from the `'electron'` module. It is only available as a return value of other methods in the Electron API._

Instances of the `Cookies` class are accessed by using `cookies` property of
a `Session`.
Expand Down
3 changes: 2 additions & 1 deletion docs/api/debugger.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

> An alternate transport for Chrome's remote debugging protocol.
Process: [Main](../glossary.md#main-process)
Process: [Main](../glossary.md#main-process)<br />
_This class is not exported from the `'electron'` module. It is only available as a return value of other methods in the Electron API._

Chrome Developer Tools has a [special binding][rdp] available at JavaScript
runtime that allows interacting with pages and instrumenting them.
Expand Down
3 changes: 2 additions & 1 deletion docs/api/dock.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

> Control your app in the macOS dock
Process: [Main](../glossary.md#main-process)
Process: [Main](../glossary.md#main-process)<br />
_This class is not exported from the `'electron'` module. It is only available as a return value of other methods in the Electron API._

The following example shows how to bounce your icon on the dock.

Expand Down
3 changes: 2 additions & 1 deletion docs/api/download-item.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

> Control file downloads from remote sources.
Process: [Main](../glossary.md#main-process)
Process: [Main](../glossary.md#main-process)<br />
_This class is not exported from the `'electron'` module. It is only available as a return value of other methods in the Electron API._

`DownloadItem` is an [EventEmitter][event-emitter] that represents a download item in Electron.
It is used in `will-download` event of `Session` class, and allows users to
Expand Down
3 changes: 2 additions & 1 deletion docs/api/incoming-message.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

> Handle responses to HTTP/HTTPS requests.
Process: [Main](../glossary.md#main-process)
Process: [Main](../glossary.md#main-process)<br />
_This class is not exported from the `'electron'` module. It is only available as a return value of other methods in the Electron API._

`IncomingMessage` implements the [Readable Stream](https://nodejs.org/api/stream.html#stream_readable_streams)
interface and is therefore an [EventEmitter][event-emitter].
Expand Down
3 changes: 2 additions & 1 deletion docs/api/message-port-main.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ channel messaging.

> Port interface for channel messaging in the main process.
Process: [Main](../glossary.md#main-process)
Process: [Main](../glossary.md#main-process)<br />
_This class is not exported from the `'electron'` module. It is only available as a return value of other methods in the Electron API._

### Instance Methods

Expand Down
3 changes: 2 additions & 1 deletion docs/api/native-image.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,8 @@ where `SYSTEM_IMAGE_NAME` should be replaced with any value from [this list](htt

> Natively wrap images such as tray, dock, and application icons.
Process: [Main](../glossary.md#main-process), [Renderer](../glossary.md#renderer-process)
Process: [Main](../glossary.md#main-process), [Renderer](../glossary.md#renderer-process)<br />
_This class is not exported from the `'electron'` module. It is only available as a return value of other methods in the Electron API._

### Instance Methods

Expand Down
3 changes: 2 additions & 1 deletion docs/api/service-workers.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

> Query and receive events from a sessions active service workers.
Process: [Main](../glossary.md#main-process)
Process: [Main](../glossary.md#main-process)<br />
_This class is not exported from the `'electron'` module. It is only available as a return value of other methods in the Electron API._

Instances of the `ServiceWorkers` class are accessed by using `serviceWorkers` property of
a `Session`.
Expand Down
3 changes: 2 additions & 1 deletion docs/api/session.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ A `Session` object, the default session object of the app.

> Get and set properties of a session.
Process: [Main](../glossary.md#main-process)
Process: [Main](../glossary.md#main-process)<br />
_This class is not exported from the `'electron'` module. It is only available as a return value of other methods in the Electron API._

You can create a `Session` object in the `session` module:

Expand Down
3 changes: 2 additions & 1 deletion docs/api/touch-bar-button.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

> Create a button in the touch bar for native macOS applications
Process: [Main](../glossary.md#main-process)
Process: [Main](../glossary.md#main-process)<br />
_This class is not exported from the `'electron'` module. It is only available as a return value of other methods in the Electron API._

### `new TouchBarButton(options)`

Expand Down
3 changes: 2 additions & 1 deletion docs/api/touch-bar-color-picker.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

> Create a color picker in the touch bar for native macOS applications
Process: [Main](../glossary.md#main-process)
Process: [Main](../glossary.md#main-process)<br />
_This class is not exported from the `'electron'` module. It is only available as a return value of other methods in the Electron API._

### `new TouchBarColorPicker(options)`

Expand Down
3 changes: 2 additions & 1 deletion docs/api/touch-bar-group.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

> Create a group in the touch bar for native macOS applications
Process: [Main](../glossary.md#main-process)
Process: [Main](../glossary.md#main-process)<br />
_This class is not exported from the `'electron'` module. It is only available as a return value of other methods in the Electron API._

### `new TouchBarGroup(options)`

Expand Down
3 changes: 2 additions & 1 deletion docs/api/touch-bar-label.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

> Create a label in the touch bar for native macOS applications
Process: [Main](../glossary.md#main-process)
Process: [Main](../glossary.md#main-process)<br />
_This class is not exported from the `'electron'` module. It is only available as a return value of other methods in the Electron API._

### `new TouchBarLabel(options)`

Expand Down
3 changes: 2 additions & 1 deletion docs/api/touch-bar-other-items-proxy.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
>
> Note: Only one instance of this class can be added per TouchBar.
Process: [Main](../glossary.md#main-process)
Process: [Main](../glossary.md#main-process)<br />
_This class is not exported from the `'electron'` module. It is only available as a return value of other methods in the Electron API._

### `new TouchBarOtherItemsProxy()`
3 changes: 2 additions & 1 deletion docs/api/touch-bar-popover.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

> Create a popover in the touch bar for native macOS applications
Process: [Main](../glossary.md#main-process)
Process: [Main](../glossary.md#main-process)<br />
_This class is not exported from the `'electron'` module. It is only available as a return value of other methods in the Electron API._

### `new TouchBarPopover(options)`

Expand Down
3 changes: 2 additions & 1 deletion docs/api/touch-bar-scrubber.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

> Create a scrubber (a scrollable selector)
Process: [Main](../glossary.md#main-process)
Process: [Main](../glossary.md#main-process)<br />
_This class is not exported from the `'electron'` module. It is only available as a return value of other methods in the Electron API._

### `new TouchBarScrubber(options)`

Expand Down
3 changes: 2 additions & 1 deletion docs/api/touch-bar-segmented-control.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

> Create a segmented control (a button group) where one button has a selected state
Process: [Main](../glossary.md#main-process)
Process: [Main](../glossary.md#main-process)<br />
_This class is not exported from the `'electron'` module. It is only available as a return value of other methods in the Electron API._

### `new TouchBarSegmentedControl(options)`

Expand Down
3 changes: 2 additions & 1 deletion docs/api/touch-bar-slider.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

> Create a slider in the touch bar for native macOS applications
Process: [Main](../glossary.md#main-process)
Process: [Main](../glossary.md#main-process)<br />
_This class is not exported from the `'electron'` module. It is only available as a return value of other methods in the Electron API._

### `new TouchBarSlider(options)`

Expand Down
3 changes: 2 additions & 1 deletion docs/api/touch-bar-spacer.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

> Create a spacer between two items in the touch bar for native macOS applications
Process: [Main](../glossary.md#main-process)
Process: [Main](../glossary.md#main-process)<br />
_This class is not exported from the `'electron'` module. It is only available as a return value of other methods in the Electron API._

### `new TouchBarSpacer(options)`

Expand Down
3 changes: 2 additions & 1 deletion docs/api/web-contents.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ Returns `WebContents` | undefined - A WebContents instance with the given ID, or

> Render and control the contents of a BrowserWindow instance.
Process: [Main](../glossary.md#main-process)
Process: [Main](../glossary.md#main-process)<br />
_This class is not exported from the `'electron'` module. It is only available as a return value of other methods in the Electron API._

### Instance Events

Expand Down
3 changes: 2 additions & 1 deletion docs/api/web-frame-main.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ or `undefined` if there is no WebFrameMain associated with the given IDs.

## Class: WebFrameMain

Process: [Main](../glossary.md#main-process)
Process: [Main](../glossary.md#main-process)<br />
_This class is not exported from the `'electron'` module. It is only available as a return value of other methods in the Electron API._

### Instance Methods

Expand Down
3 changes: 2 additions & 1 deletion docs/api/web-request.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

> Intercept and modify the contents of a request at various stages of its lifetime.
Process: [Main](../glossary.md#main-process)
Process: [Main](../glossary.md#main-process)<br />
_This class is not exported from the `'electron'` module. It is only available as a return value of other methods in the Electron API._

Instances of the `WebRequest` class are accessed by using the `webRequest`
property of a `Session`.
Expand Down
3 changes: 2 additions & 1 deletion docs/api/webview-tag.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ more information see the [BrowserWindow constructor docs](browser-window.md).

> Display external web content in an isolated frame and process.
Process: [Renderer](../glossary.md#renderer-process)
Process: [Renderer](../glossary.md#renderer-process)<br />
_This class is not exported from the `'electron'` module. It is only available as a return value of other methods in the Electron API._

Use the `webview` tag to embed 'guest' content (such as web pages) in your
Electron app. The guest content is contained within the `webview` container.
Expand Down
15 changes: 9 additions & 6 deletions docs/api/window-open.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,18 @@ const mainWindow = new BrowserWindow()
mainWindow.webContents.setWindowOpenHandler(({ url }) => {
if (url === 'about:blank') {
return {
frame: false,
fullscreenable: false,
backgroundColor: 'black',
webPreferences: {
preload: 'my-child-window-preload-script.js'
action: 'allow',
overrideBrowserWindowOptions: {
frame: false,
fullscreenable: false,
backgroundColor: 'black',
webPreferences: {
preload: 'my-child-window-preload-script.js'
}
}
}
}
return false
return { action: 'deny' }
})
```

Expand Down

0 comments on commit 670b48b

Please sign in to comment.