desktop icon indicating copy to clipboard operation
desktop copied to clipboard

[Twilight 1.11.5t] Close window button doesn't work.

Open asidius opened this issue 1 year ago • 10 comments

Captchas

  • [x] I have read the instructions.
  • [x] I have searched existing issues and avoided creating duplicates.
  • [x] I am not filing an enhancement request.
  • [x] I have checked that this issue cannot be reproduced on Mozilla Firefox.
  • [x] I have checked that this issue can be reproduced once I removed all my Mods and Custom CSS.

What happened?

Unable to close the browser using the windows close button. Min and Max works though.

https://github.com/user-attachments/assets/cf09a9dc-1922-49ff-bb99-4e275f9c0ea9

Version

1.11.5t

What platform are you seeing the problem on?

Windows - x64

What component is this issue related to?

Other

Relevant log output if applicable


asidius avatar Apr 23 '25 06:04 asidius

Additionally, using Ctrl + Shift + Q to quit results in leftover processes:

https://github.com/user-attachments/assets/a4104866-21d6-4767-a03d-e634e9fa8e26

Upon clicking exit, this uncaught error is thrown:

Uncaught TypeError: browser is null
    CanCloseWindow chrome://browser/content/browser.js:4300
    WindowIsClosing chrome://browser/content/browser.js:4333
    tryToCloseWindow chrome://browser/content/browser-commands.js:429
    <anonymous> chrome://browser/content/browser-sets.js:66
browser.js:4300:9
    CanCloseWindow chrome://browser/content/browser.js:4300
    WindowIsClosing chrome://browser/content/browser.js:4333
    tryToCloseWindow chrome://browser/content/browser-commands.js:429
    <anonymous> chrome://browser/content/browser-sets.js:66

Unsure if related, periodically this error is caught:

TypeError: browser is null 2 TabState.sys.mjs:78:9
    #collectBaseTabData resource:///modules/sessionstore/TabState.sys.mjs:78
    collect resource:///modules/sessionstore/TabState.sys.mjs:37
    ssi_collectWindowData resource:///modules/sessionstore/SessionStore.sys.mjs:5432
    getCurrentState resource:///modules/sessionstore/SessionStore.sys.mjs:5258
    getCurrentState resource:///modules/sessionstore/SessionStore.sys.mjs:663
    _saveState resource:///modules/sessionstore/SessionSaver.sys.mjs:241
    _saveStateAsync resource:///modules/sessionstore/SessionSaver.sys.mjs:322
    saveStateAsyncWhenIdle resource:///modules/sessionstore/SessionSaver.sys.mjs:173
    callback resource://gre/modules/Timer.sys.mjs:126
    (Async: ChromeUtils::IdleDispatch handler)
    requestIdleCallback resource://gre/modules/Timer.sys.mjs:130
    _timeoutID resource:///modules/sessionstore/SessionSaver.sys.mjs:176
    notify resource://gre/modules/Timer.sys.mjs:49

Propheticus avatar Apr 23 '25 08:04 Propheticus

I encounter this issue, too. Browser console shows:

Image

sporocyst avatar Apr 23 '25 11:04 sporocyst

@Propheticus

The leftover processes when closing happens for me on 1.11.5t as well on Linux.

Also noticed some other weirdness with this, which maybe should be reported as it's own issue, but I'm thinking it may be related in some way...

I tried opening my daily driver profile with the newest Twilight build and found I couldn't click on some of my extensions (like their UI window wouldn't show, and if it did show, you couldn't do anything inside their UI (can't click on anything)), then when I reopened 1.11.5b with the same profile, all my normal tabs were lost completely and not even retrievable from 'Recently closed windows', but the extensions went back to working as usual.

sjclayton avatar Apr 23 '25 12:04 sjclayton

I would not advise using a profile that's important to you in Twilight (or of course make damn sure you've got a backup). Things might break irreparably and backwards compatibility is not guaranteed. In this case I also saw issues with an existing Twilight profile that I did not see in a newly created one, so even forward compatibility could be an issue here.

Propheticus avatar Apr 23 '25 13:04 Propheticus

Strange things: if you remove prefs.js from your profile it can close on first and second time you opened it. and broke again after it. Also cant delete workspace and open workspace emoji thing.

adam-adrian avatar Apr 23 '25 16:04 adam-adrian

Also doesn't even matter if you do a clean install and use a blank profile. The issue persists.

asidius avatar Apr 23 '25 16:04 asidius

Also doesn't even matter if you do a clean install and use a blank profile. The issue persists.

Really? it works for me...

adam-adrian avatar Apr 23 '25 17:04 adam-adrian

Really? it works for me...

Yeah, it got significantly worse for me. I've give up on twilight, back to beta.

asidius avatar Apr 23 '25 18:04 asidius

@Asidius

The close button issue seems solved now for me, at least on the most currently available Twilight build (2025-04-23)

@Propheticus

Also, the issue with leaving randomly orphaned processes seems to be gone on the most current build as well.

Seems like lots of these weird issues may be related to the new implementation for containerized essentials.

sjclayton avatar Apr 23 '25 19:04 sjclayton

Should be fixed now 👍🏽

mr-cheffy avatar Apr 24 '25 21:04 mr-cheffy