microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
111.45k stars 6.56k forks source link

FancyZones causes Chrome and Edge tabs to disappear when dragged between windows #9729

Open pcnate opened 3 years ago

pcnate commented 3 years ago

β„Ή Computer information

πŸ“ Provide detailed reproduction steps (if any)

  1. Configure FancyZones
  2. Open a second window of Google Chrome or Microsoft Edge and size it to a FancyZone. In my case I had my main browser window on the right of monitor 1 using a FancyZone and browser window 2 was on the left of monitor 2 in another FancyZone.
  3. Drag the Chrome tab from the 2nd window to below the address bar of browser window 1 and then up across the omnibar
  4. Watch it close. This does not happen if you do not cross the omnibar. It also does not happen when PowerToys is not running or when browser window 2 is not filling a FancyZone.

βœ”οΈ Expected result

Chrome Tab should combine to the main window

❌ Actual result

The Chrome tab dies unexpectedly and does not appear in the recently closed tabs listing. One must either remember how to get there or go back through one's Chrome history to the point of last url change on the tab.

πŸ“· Screenshots

image

One could make an argument that this is a Chromium bug but I think the fact that it does not happen when PowerToys is not running means that PowerToys is somehow interfering with the tab feature of that family of browsers.

https://bugs.chromium.org/p/chromium/issues/detail?id=1178512

pcnate commented 3 years ago

The main reason I run into this issue is that Windows makes it difficult to move the mouse between displays near the top of the screen so to avoid that I drag windows down and then back up which results in this bug. In additional testing with Google Chrome, Chrome Canary and Microsoft Edge I ended up with several windows and tabs where the UI was completed broken including the window's minimize, maximize and close buttons. I think this highlights that there is an incompatibility in the way FancyZones and the Chromium based tab dragging processes interact. It only happens when FancyZones is running and can break the Windows interface for users so it should be addressed at least somewhat from PowerToys side. I have linked an issue from chromium as well so they should be aware of the issue.

enricogior commented 3 years ago

@pcnate do you press shift while dragging the tab?

ghost commented 3 years ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 5 days. It will be closed if no further activity occurs within 5 days of this comment.

pcnate commented 3 years ago

@enricogior no I do not. I just tried it and it blocks the tab from dragging if pressed before and it simply snaps to a corner if press during. Completely different behavior.

ghost commented 3 years ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 5 days. It will be closed if no further activity occurs within 5 days of this comment.

Hamza141 commented 3 years ago

I've experienced this issue multiple times in the past few months but it's random and haven't been able to reproduce it.

Raymo111 commented 3 years ago

I can reproduce this constantly. It's annoying. What's also annoying is @msftbot trying to close this issue. :-P

pcnate commented 3 years ago

The undesirable behavior is still there but seems to have become more annoying in July. Browser windows have become completely unresponsive

pcnate commented 3 years ago

@raymo111 today I tested this with Chrome 94.0.4606.61, Edge 94.0.992.31 and PowerToys 0.45.0. Couldn't get it to crash in the same way. Anyone else able to confirm?

Raymo111 commented 3 years ago

@Raymo111 today I tested this with Chrome 94.0.4606.61, Edge 94.0.992.31 and PowerToys 0.45.0. Couldn't get it to crash in the same way. Anyone else able to confirm?

Unfortunately too many things were breaking for me on Windows (Office and Outlook refuse to start without crashing) and I moved back to Arch Linux. I can check the next time I use Windows for sure, but in the meantime I won't be able to help. Sorry!

top1105 commented 3 years ago

@pcnate I have not experienced this lately with Chrome 94.0.4606.61 and v0.45.0. Just updated to v0.47.0 today, hopping it stays that way.

pcnate commented 3 years ago

As far as I am concerned this issue is no longer present. If anyone has a different experience I suggest opening a new issue and linking to this one.

Update, the issue persists. Unable to determine what changed. Chrome has updated and PowerToys has also updated.

top1105 commented 3 years ago

@pcnate Just saw this issue a few times randomly today with the Brave browser Version 1.30.87 Chromium: 94.0.4606.71. PowerToys v0.47.0.

pcnate commented 3 years ago

unfortunately I saw this issue as well. I tried to recreate it immediately afterwards and was unable to. I'm still unsure of what was different but I did drag a tab from another window onto another window and up across the omnibar. I think I had the bookmarks bar open but I tried with and without it to no avail. Kinda odd.

pcnate commented 3 years ago

It seems the issue is back and worse.

This seems to have started happening after updating to powertoys 0.49.0. I am going to install 0.49.1 to see if the behavior continues.

I have had it crash the Chrome UI and it leaves the window open but no longer able to close, minimize etc. Chrome does not remember the tab in the history or otherwise. It is just lost.

NeuronHuskie commented 2 years ago

Subscribed.

I have the same issue. My tab will either disappear entirely or go completely white/black.

franky920920 commented 2 years ago

cc: @SeraphimaZ FYI

SeraphimaZykova commented 2 years ago

Subscribed.

I have the same issue. My tab will either disappear entirely or go completely white/black.

@mcdssn @pcnate Can you please attach a bug report and write the browser version?

Right-click on the tray icon and click Report Bug. Then drag-and-drop the generated file into the GitHub comment to upload it. Thanks!

ghost commented 2 years ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 5 days. It will be closed if no further activity occurs within 5 days of this comment.

pcnate commented 2 years ago

PowerToysReport_2021-12-16-13-44-02.zip

SeraphimaZykova commented 2 years ago

Related to https://github.com/microsoft/PowerToys/issues/13911

pcnate commented 2 years ago

Related to #13911

Interesting. Now that I see that issue I recall that my browser is almost always snapped to a zone.

tucek commented 2 years ago

Workaround: Disabling "Move newly created windows into last known zone" (translated from german) fixed the issue for me. (v0.56.2) Correction it just happen much less frequently ;)

tucek commented 2 years ago

Workaround: Disabling "Move newly created windows into last known zone" (translated from german) fixed the issue for me. (v0.56.2) Correction it just happen much less frequently ;)

workaround that works always: first drag the tab(s) to a new windows without assiging it to a zone, then drag to target window

ethanspitz commented 2 years ago

I too have this exact issue and can reproduce 100% of the time. Using Edge 100.0.1185.39, PowerToys 0.57.2, and Windows 10 Pro 20H2.

ALERTua commented 2 years ago

same issue here. Chrome 103.0.5060.134 (Official Build) (64-bit), PowerToys v0.60.1 @ Windows 11 22H2 25169.1000

SeraphimaZykova commented 2 years ago

Hi everyone. I think I've localized the problem. If you're able, please do a quick test. Disable the Restore the original size of windows when unsnapping option and try to reproduce the problem. Let me know if the problem is gone when you disable the option. It'll show if my research is correct. /needinfo

tucek commented 2 years ago

Hi everyone. I think I've localized the problem. If you're able, please do a quick test. Disable the Restore the original size of windows when unsnapping option and try to reproduce the problem. Let me know if the problem is gone when you disable the option. It'll show if my research is correct. /needinfo

Disabling Restore the original size of windows when unsnapping seems ot be a viable workaround. I cannor reproduce the problem with this option being disabled. Thanks! - Really looking forward to a fix!

pcnate commented 2 years ago

Hi everyone. I think I've localized the problem. If you're able, please do a quick test. Disable the Restore the original size of windows when unsnapping option and try to reproduce the problem. Let me know if the problem is gone when you disable the option. It'll show if my research is correct. /needinfo

Confirmed. I tried turning it back on and then the problem hasn't happened since. Even tried restarting PowerToys and Chrome separately but it doesn't happen. The only thing left to test is logout/reboot???

SeraphimaZykova commented 2 years ago

Thank you for help! So, it's confirmed that restoring size leads to this problem, we need to skip it for browser tabs dragged between windows.

SeraphimaZykova commented 2 years ago

The only thing left to test is logout/reboot???

No need for that :) Thank you!

biiiipy commented 2 years ago

Can confirm this is happening on v0.61.1 version and Windows 10 21H2. Because the tabs are not closed, you can't restore them. They just vanish into void

mbayabo commented 2 years ago

I've been experiencing this issue intermittently. I'm currently trying to figure out how to recreate the issue.

My current hypothesis is that it has something to do with the Window Behavior settings. More specifically, the "Restore the original size of the windows when unsnapping." Can anyone experiencing this issue confirm that they have this ticked?

biiiipy commented 2 years ago

What helped (if I remember correctly) was to disable "Move newly created windows to the current active monitor (Experimental)". Who would have thought that experimental features have bugs :)

kubiqsk commented 2 years ago

So this is happening because of FancyZones? Omg, I was so angry so many times... This issue is here for 1,5 year and no one cares?

biiiipy commented 2 years ago

well, it's clearly labeled as an experimental feature and chromium tab windows are pretty unique and have weird bugs with a lot of these kind of apps, so... Just disable "Move newly created windows to the current active monitor (Experimental)" option and you're good.

kubiqsk commented 2 years ago

@biiiipy but i've never enabled that and I just checked and it is disabled as I expected i just turned off all other things in there, so let's see, maybe it will help

rcmaehl commented 11 months ago

It's 2023 and I can confirm this is still occurring with Chrome 120.0.6099.109 (Official Build) (64-bit) (cohort: M120 Rollout), mainly when moving multiple tabs at once

I'll enable the workaround but oof

Worst part is the tabs aren't even recoverable using Ctrl Shift T

PrimozR commented 11 months ago

Can also confirm this is still an issue.

dinhxuanvu commented 10 months ago

Still an issue almost 3 years later on Windows 11 with Chrome. πŸ€·β€β™‚οΈ