update (#21915)
This commit is contained in:
parent
28fb2b7ed5
commit
0bd8a97f38
5 changed files with 5 additions and 5 deletions
|
@ -27,7 +27,7 @@ should use `themeSource` below.
|
|||
|
||||
### `nativeTheme.themeSource`
|
||||
|
||||
A `String` property that can be `system`, `light` or `dark`. It is used to override and supercede
|
||||
A `String` property that can be `system`, `light` or `dark`. It is used to override and supersede
|
||||
the value that Chromium has chosen to use internally.
|
||||
|
||||
Setting this property to `system` will remove the override and
|
||||
|
|
|
@ -34,7 +34,7 @@ const NavigationController = (function () {
|
|||
this.currentIndex++
|
||||
this.history.push(this.webContents._getURL())
|
||||
}
|
||||
this.webContents.on('navigation-entry-commited', (event, url, inPage, replaceEntry) => {
|
||||
this.webContents.on('navigation-entry-committed', (event, url, inPage, replaceEntry) => {
|
||||
if (this.inPageIndex > -1 && !inPage) {
|
||||
// Navigated to a new page, clear in-page mark.
|
||||
this.inPageIndex = -1
|
||||
|
|
|
@ -1304,7 +1304,7 @@ void WebContents::WebContentsDestroyed() {
|
|||
|
||||
void WebContents::NavigationEntryCommitted(
|
||||
const content::LoadCommittedDetails& details) {
|
||||
Emit("navigation-entry-commited", details.entry->GetURL(),
|
||||
Emit("navigation-entry-committed", details.entry->GetURL(),
|
||||
details.is_same_document, details.did_replace_entry);
|
||||
}
|
||||
|
||||
|
|
|
@ -1062,7 +1062,7 @@ void NativeWindowMac::SetSimpleFullScreen(bool simple_fullscreen) {
|
|||
// Hide the titlebar
|
||||
SetStyleMask(false, NSWindowStyleMaskTitled);
|
||||
|
||||
// Resize the window to accomodate the _entire_ screen size
|
||||
// Resize the window to accommodate the _entire_ screen size
|
||||
fullscreenFrame.size.height -=
|
||||
[[[NSApplication sharedApplication] mainMenu] menuBarHeight];
|
||||
} else if (!window_button_visibility_.has_value()) {
|
||||
|
|
|
@ -1095,7 +1095,7 @@ describe('chromium features', () => {
|
|||
// History should have current page by now.
|
||||
expect((w.webContents as any).length()).to.equal(1)
|
||||
|
||||
const waitCommit = emittedOnce(w.webContents, 'navigation-entry-commited')
|
||||
const waitCommit = emittedOnce(w.webContents, 'navigation-entry-committed')
|
||||
w.webContents.executeJavaScript('window.history.pushState({}, "")')
|
||||
await waitCommit
|
||||
// Initial page + pushed state.
|
||||
|
|
Loading…
Reference in a new issue