-
Notifications
You must be signed in to change notification settings - Fork 280
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement simulated tab preview panel (#3671)
* Prepare frame contents to render tab preview tooltip #3412 * Add comments to describe the design of the module * Implement events to track mouseenter/leave on tab substances * Send show/hide preview message to the active tab #3412 * Send message to show tab preview with preview URL * Show tab preview * Remove needless parameter * Simulate behavior of the native tab preview panel #3412 * Fix indent * Apply appearance same to the native tab preview panel as possible as we can #3412 * Cleanup old subframes #3412 * Don't try to capture discarded tabs #3412 * Cleanup cached tab object to avoid mismatched relation * Make more safe for invalid tab case * Show tab preview panel with fixed width * Use internal name same to Firefox's one * Suppress error about sending message to special tabs * Clear preview when active tab is switched * Re-prepare frame to show tab preview tooltip automatically * Hide tab preview panel when the sidebar is closed * Cleanup needless iframe * Hide tab preview tooltip when the tab is detached * Destroy and reconstruct frame more safely * Show tab preview panel with expected scale in zoomed tabs * Apply platform specific appearance correctly * Don't apply opacity animation while updating * Position tab preview in better coordinates even if the sidebar header is shown. * Fix mispositioning in zoomed contents * Ignore delayed messages * Suppress regular tooltip when in-content tab previw tooltip is not available * Calculate offset more correctly * Show tab preview panel near the sidebar * Deactivate tab preview tooltip by default * Show tab preview tooltip in the sidebar if the tab contents is privileged * Calculate size and position of the tab preview tooltip more correctly * Don't try to embed tab preview tooltip in other addon's contents * Show tab preview tooltip as soon as possible * Fallback to in-sidebar tab preview tooltip if the active tab is privileged * Add an option UI for tab preview panel
- Loading branch information
Showing
19 changed files
with
807 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!DOCTYPE html> | ||
<!-- This Source Code Form is subject to the terms of the Mozilla Public | ||
- License, v. 2.0. If a copy of the MPL was not distributed with this | ||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. --> | ||
<meta charset="UTF-8"> | ||
<!-- | ||
This is a sub part to show tab preview tooltip. | ||
See also: /siedbar/tab-preview-tooltip.js | ||
--> | ||
<script type="module" src="./tab-preview-frame.js"></script> | ||
<title></title> |
Oops, something went wrong.