BrowserWindow title set to window name by default (from window.open(url, name)) #27036
Closed
3 tasks done
Labels
10-x-y
11-x-y
bug/regression ↩️
A new version of Electron broke something
has-repro-gist
Issue can be reproduced with code at https://gist.github.com/
platform/all
status/confirmed
A maintainer reproduced the bug or agreed with the feature
Preflight Checklist
Issue Details
Expected Behavior
I expect that the window name doesn't get set into the title
Actual Behavior
When opening windows via window.open passing in a window name, the title of the window gets defaulted to the window name.
edit by @ckerr: since this ticket's caused a little confusion, to restate this: Calling something like
window.open("https://example.com/", "aaa")
creates a window with a default title that is replaced with the real title when example.com's html is parsed and its<title>
is used. Electron 10 introduced a change where that default title is the window.open() windowName parameter (aaa
in the example). According to the window.open() documentation this parameter "will NOT be used as the window's title", so Electron is in error by using it as the default title.To Reproduce
main.js:
index.html:
renderer.js:
The text was updated successfully, but these errors were encountered: