Commit Graph

5075 Commits

Author SHA1 Message Date
cbackas
6386f178d4 dont trigger PiP for tabs that are muted 2025-04-21 09:40:48 -05:00
Zac
102d226269 Merge branch 'zen-browser:dev' into dev 2025-04-21 08:40:44 -05:00
cbackas
b399247652 check if player is muted before auto opening PIP 2025-04-21 08:40:12 -05:00
Marcus Bergo
263db42602 Fix tab switching crash when creating new tabs (Issue #7716)
Problem:
The Zen browser was experiencing random crashes when switching tabs, particularly
when creating a new tab with Ctrl+T and typing a URL. The crash logs showed
"CompositorBridgeChild receives IPC close with reason=AbnormalShutdown" errors,
indicating issues with the graphics compositor during tab switching operations.
This was caused by race conditions in the tab switching code and lack of proper
error handling when dealing with browser elements that might be in an invalid state.

Solution:
Instead of just catching errors, we've implemented a more robust solution that addresses
the root causes of the race conditions in the tab switching code:

1. State Management System:
   - Added a queue-based system for tab operations to ensure they execute in sequence
   - Implemented debouncing to prevent rapid tab switching that could cause race conditions
   - Added state validation before operations to ensure browser elements are in a valid state

2. Asynchronous Operation Handling:
   - Used Promises and async/await for proper sequencing of operations
   - Added proper timing controls with small delays to ensure DOM is ready
   - Implemented a mutex-like approach to prevent concurrent workspace changes

3. Robust Tab State Validation:
   - Added comprehensive checks for tab validity before operations
   - Implemented proper cleanup of resources to prevent memory leaks
   - Added validation for browser window state to prevent operations on closed windows

4. Improved Error Recovery:
   - Added fallback mechanisms when operations fail
   - Implemented proper cleanup of state even when errors occur
   - Added more informative error messages for better debugging

These changes make the browser much more robust when handling tab switching operations,
preventing the crashes reported in issue #7716.
2025-04-21 01:59:47 -03:00
Mr. M
8136387a75 style: Formatted the project, b=(no-bug), c=scripts 2025-04-21 00:05:34 +02:00
mr. m
e65991aa03 Merge pull request #7777 from zen-browser/typescript-refactor
Typescript refactor
2025-04-21 00:05:15 +02:00
Mr. M
a7846a64d0 chore: Started adding typescript to zen, b=(no-bug), c=scripts, workspaces 2025-04-21 00:02:19 +02:00
Mr. M
5dfc6a663f chore: Continued working on containerized essentials, b=(no-bug), c=common, compact-mode, tabs, workspaces 2025-04-20 23:33:57 +02:00
mr. m
0c45a24f48 Merge pull request #7774 from UnownPlain/fix-empty-sections
Fix empty release notes sections
2025-04-20 19:38:43 +02:00
UnownPlain
762d5de441 Fix empty release notes sections 2025-04-20 17:32:31 +00:00
mr. m
5bfb55a27d Merge branch 'update-ff-138' into containerized-essentials
Signed-off-by: mr. m  <91018726+mauro-balades@users.noreply.github.com>
2025-04-20 15:27:28 +02:00
Mr. M
87bb2f38db feat: Added fully containerized essentials, b=(no-bug), c=tabs, vendor, workspaces 2025-04-20 15:26:28 +02:00
mr. m
fb1575d875 fix: Fixed window controls not being accessible on fullscreen when element separation is 0, b=(no-bug), c=tabs 1.11.5b 2025-04-19 19:46:25 +02:00
mr. m
c153bef170 Merge branch 'dev' into update-ff-138
Signed-off-by: mr. m  <91018726+mauro-balades@users.noreply.github.com>
2025-04-19 16:21:40 +02:00
Mr. M
2fcf6c80e9 chore: Completly migrated to firefox 138, b=(no-bug), c=tabs, common, folders, glance 2025-04-19 16:03:15 +02:00
Mr. M
2e6e71e3b6 chore: More migration for firefox 138.0, b=(no-bug), c=tabs, common, split-view 2025-04-19 14:07:51 +02:00
mr. m
004b946716 Merge branch 'dev' of https://github.com/zen-browser/desktop into dev 2025-04-19 13:52:34 +02:00
mr. m
6400722712 fix: fixed urlbar being selected on workspace change, b=(closes #7741), c=workspaces 2025-04-19 13:52:25 +02:00
mr. m
d9ec28459e chore: Disabled Auto-Pip once we have propper settings UI for it, b=(no-bug), c=no-component 2025-04-19 13:48:00 +02:00
mr. m
407c1d24af Merge pull request #7740 from Cheese-Space/patch-1
remove --cask flag from mac install instructions as it isn't necessary
2025-04-19 13:14:30 +02:00
mr. m
de6d8d1153 fix: Windows applications being shifted half a pixel to the top, b=(no-bug), c=no-component 2025-04-19 12:57:42 +02:00
Cheese_space
3eb10fc05b removed --cask flag from mac install instructions as it isn't necessary
Signed-off-by: Cheese_space <99285740+Cheese-Space@users.noreply.github.com>
2025-04-19 12:17:10 +02:00
mr. m
1ab6f77f95 feat: Make PiP checkbox disable the entire feature, not just video controls, b=(no-bug), c=no-component 2025-04-19 10:40:19 +02:00
mr. m
c1b15b59db chore: Bump version and small fixes, b=(no-bug), c=tabs 2025-04-19 10:34:32 +02:00
mr. m
3dae5a6d47 fix: Fixed links on the README, b=(no-bug), c=no-component 2025-04-18 22:20:56 +02:00
Mr. M
ec3e2ab870 chore: More patch fixes for firefox beta, b=(no-bug), c=common 2025-04-18 20:43:44 +02:00
mr. m
a2810d65de Merge branch 'dev' into update-ff-138 2025-04-18 19:56:46 +02:00
Mr. M
1713c04834 chore: Started updating for firefox 138.0 beta 9, b=(no-bug), c=common 2025-04-18 19:54:40 +02:00
mr. m
dab2646054 fix: Crashes when opening the overflow menu multiple times on macos, b=(closes #7718), c=no-component 2025-04-18 19:13:14 +02:00
mr. m
03bc0d2f22 Merge branch 'dev' into download-animation 2025-04-18 10:08:31 +02:00
mr. m
ad0485d651 Fix workflow failure for windows
Signed-off-by: mr. m  <91018726+mauro-balades@users.noreply.github.com>
1.11.4b
2025-04-18 00:30:34 +02:00
Gabriel
7764c4bdd7 Refactor download animation with improved code, animations and styles 2025-04-17 22:33:56 +02:00
mr. m
46bbbccdc9 fix: Window controls not expanding on split views and element separation on 0 also not expanding them, b=(closes #7694), c=tabs 2025-04-17 21:12:06 +02:00
mr. m
ee28417a4c fix: Enable Restore pinned tabs to their originally pinned URL on startup setting does not work, b=(bug #7453), c=tabs 2025-04-17 20:00:07 +02:00
mr. m
5332ab9cac Merge branch 'dev' into download-animation 2025-04-17 19:08:39 +02:00
mr. m
746ac1eec7 chore: Format before release, b=(no-bug), c=split-view 2025-04-17 18:51:26 +02:00
mr. m
13c763b0e8 Merge branch 'dev' into download-animation 2025-04-17 18:50:51 +02:00
mr. m
8b67c4fdd1 fix: Fixed recalculating split view on compact mode, b=(no-bug), c=split-view 2025-04-17 18:40:59 +02:00
mr. m
c3e658d46a fix: Split view calculating the wrong side of split view, b=(no-bug), c=split-view 2025-04-17 18:26:04 +02:00
mr. m
5d0419075b Merge branch 'dev' into download-animation 2025-04-17 17:49:50 +02:00
mr. m
ebded1a73b Merge pull request #7688 from sporocyst/CompactFullMTrans
Smooth transition from fullscreen in compact mode
2025-04-17 17:05:38 +02:00
mr. m
cf879a5c23 Update zen-compact-mode.css
Signed-off-by: mr. m  <91018726+mauro-balades@users.noreply.github.com>
2025-04-17 17:05:27 +02:00
Gabriel
99ed27ca61 Initial development for download animation 2025-04-17 17:03:46 +02:00
sporocyst
4aa3e5b34d Opacity 0 when Compact Fullscreen
Signed-off-by: sporocyst <sporocyst.tw@gmail.com>
2025-04-17 22:18:43 +08:00
mr. m
303e6066e2 Bumped version to 1.11.4b
Signed-off-by: mr. m  <91018726+mauro-balades@users.noreply.github.com>
2025-04-17 14:42:23 +02:00
mr. m
861cd15240 Merge pull request #7677 from zen-browser/revert-7675-dev 2025-04-17 13:45:25 +02:00
mr. m
d695ddb91a Revert "feat: improve tab switching with trackpad" 2025-04-17 04:45:17 -07:00
mr. m
7abb2edb2f Merge pull request #7675 from mathieutu/dev
feat: improve tab switching with trackpad
2025-04-17 12:54:33 +02:00
Mathieu TUDISCO
dfe8abd496 feat: improve tab switching with trackpad 2025-04-17 12:42:25 +02:00
mr. m
61b384ee56 Merge branch 'dev' of https://github.com/zen-browser/desktop into dev 2025-04-17 11:13:31 +02:00