Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

windows are not listed in window menu #2192

Closed
bridiver opened this issue Jun 14, 2016 · 8 comments
Closed

windows are not listed in window menu #2192

bridiver opened this issue Jun 14, 2016 · 8 comments
Milestone

Comments

@bridiver
Copy link
Collaborator

Expected behavior:
List of open windows show appear in the Window menu

  • Platform (Win7, 8, 10? OS X? Linux distro?):
    Definitely Win and OSX, probably Linux as well
  • Brave Version:
    0.10.3
@bbondy
Copy link
Member

bbondy commented Jun 15, 2016

Problem happened somewhere between these 2 versions / commits:

Working: 0.10.0
24d60d9

Not working: 0.10.1
b27cc9d

Possibly from it being a 'role' of 'window' in Electron. Maybe something broke upstream.

@bbondy
Copy link
Member

bbondy commented Jun 15, 2016

confirmed that going back to 0.10.0 with electron 1.2.2 reproduces, so I think that means it's an electron change.

@bbondy
Copy link
Member

bbondy commented Jun 15, 2016

Found it was because of this BrowserWindow style:

titleBarStyle: 'hidden-inset',

If you remove it everything works again.

@bbondy
Copy link
Member

bbondy commented Jun 15, 2016

Problem is here:
https://github.com/electron/electron/pull/5557/files#diff-c2ca4f8ea2cbce1142ce6772061a99c6R456

I think the best way might be to just re-implement the functionality in front end code. We'd also need to re-generate or modify the menu whenever the windows change.

@BrendanEich
Copy link
Member

I didn't read that Obj-C code, so dear lazy-github: why'd we regress? Were we fragile in some way that Electron should or does advise against?

@bridiver
Copy link
Collaborator Author

Seems like an electron bug
https://github.com/electron/electron/blob/13bfb099a2d23c302d43e26829a8fbf7a571dc2d/atom/browser/native_window_mac.mm

void NativeWindowMac::SetTitle(const std::string& title) {
  // We don't want the title to show in transparent or frameless window.
  if (transparent() || !has_frame())
    return;

  [window_ setTitle:base::SysUTF8ToNSString(title)];
}

No title, no window in the window list

@BrendanEich
Copy link
Member

Yep -- can you link to the issue when you file it on Electron?

@bbondy bbondy added this to the 0.10.4dev milestone Jun 16, 2016
bridiver added a commit to brave/muon that referenced this issue Jun 16, 2016
@bridiver
Copy link
Collaborator Author

bridiver commented Jun 16, 2016

electron/electron#6088

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants