Skip to content

Commit ceea688

Browse files
authored
docs: move some planned breaking changes to 39 (electron#48236)
1 parent 80df660 commit ceea688

1 file changed

Lines changed: 23 additions & 23 deletions

File tree

docs/breaking-changes.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,29 @@ Chromium is deprecating the `--host-rules` switch.
2020

2121
You should use `--host-resolver-rules` instead.
2222

23+
### Behavior Changed: window.open popups are always resizable
24+
25+
Per current [WHATWG spec](https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-open-dev), the `window.open` API will now always create a resizable popup window.
26+
27+
To restore previous behavior:
28+
29+
```js
30+
webContents.setWindowOpenHandler((details) => {
31+
return {
32+
action: 'allow',
33+
overrideBrowserWindowOptions: {
34+
resizable: details.features.includes('resizable=yes')
35+
}
36+
}
37+
})
38+
```
39+
40+
### Behavior Changed: shared texture OSR `paint` event data structure
41+
42+
When using shared texture offscreen rendering feature, the `paint` event now emits a more structured object.
43+
It moves the `sharedTextureHandle`, `planes`, `modifier` into a unified `handle` property.
44+
See [here](https://www.electronjs.org/docs/latest/api/structures/offscreen-shared-texture) for more details.
45+
2346
## Planned Breaking API Changes (38.0)
2447

2548
### Removed: `ELECTRON_OZONE_PLATFORM_HINT` environment variable
@@ -51,29 +74,6 @@ The `webFrame.findFrameByRoutingId(routingId)` function will be removed.
5174

5275
You should use `webFrame.findFrameByToken(frameToken)` instead.
5376

54-
### Behavior Changed: window.open popups are always resizable
55-
56-
Per current [WHATWG spec](https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-open-dev), the `window.open` API will now always create a resizable popup window.
57-
58-
To restore previous behavior:
59-
60-
```js
61-
webContents.setWindowOpenHandler((details) => {
62-
return {
63-
action: 'allow',
64-
overrideBrowserWindowOptions: {
65-
resizable: details.features.includes('resizable=yes')
66-
}
67-
}
68-
})
69-
```
70-
71-
### Behavior Changed: shared texture OSR `paint` event data structure
72-
73-
When using shared texture offscreen rendering feature, the `paint` event now emits a more structured object.
74-
It moves the `sharedTextureHandle`, `planes`, `modifier` into a unified `handle` property.
75-
See [here](https://www.electronjs.org/docs/latest/api/structures/offscreen-shared-texture) for more details.
76-
7777
## Planned Breaking API Changes (37.0)
7878

7979
### Utility Process unhandled rejection behavior change

0 commit comments

Comments
 (0)