chore: make WebContentsView take webPreferences as parameter (#22997)
* chore: add WebContentsView.webContents helper * chore: no need to handle webContents option * chore: Create WebContentsView in C++ * chore: make WebContentsView accept web_preferences * fix: nativeWindowOpen still passes WebContents to BrowserWindow * chore: no more need of WebContentsViewRelay * test: WebContentsView now takes options * fix: avoid creating 2 constructors
This commit is contained in:
parent
de893360f7
commit
ca947307db
7 changed files with 108 additions and 92 deletions
2
spec-main/ambient.d.ts
vendored
2
spec-main/ambient.d.ts
vendored
|
@ -27,7 +27,7 @@ declare namespace Electron {
|
|||
}
|
||||
class View {}
|
||||
class WebContentsView {
|
||||
constructor(webContents: WebContents)
|
||||
constructor(options: BrowserWindowConstructorOptions)
|
||||
}
|
||||
|
||||
namespace Main {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue