commit 46924cbe8792c8a59093ff3fff7520167b8117d9
parent 184a018863555e01a374d4261d77d4d8e05e4bcd
Author: Kelly Cochrane <kcochrane@mozilla.com>
Date: Wed, 19 Nov 2025 19:52:39 +0000
Bug 1987141 - Add a split view specific open-tabs page r=tabbrowser-reviewers,jsudiaman
Differential Revision: https://phabricator.services.mozilla.com/D272710
Diffstat:
5 files changed, 52 insertions(+), 0 deletions(-)
diff --git a/browser/components/about/AboutRedirector.cpp b/browser/components/about/AboutRedirector.cpp
@@ -77,6 +77,9 @@ static const RedirEntry kRedirMap[] = {
nsIAboutModule::IS_SECURE_CHROME_UI},
{"firefoxview", "chrome://browser/content/firefoxview/firefoxview.html",
nsIAboutModule::ALLOW_SCRIPT | nsIAboutModule::IS_SECURE_CHROME_UI},
+ {"opentabs", "chrome://browser/content/tabbrowser/opentabs.html",
+ nsIAboutModule::ALLOW_SCRIPT | nsIAboutModule::IS_SECURE_CHROME_UI |
+ nsIAboutModule::HIDE_FROM_ABOUTABOUT},
{"policies", "chrome://browser/content/policies/aboutPolicies.html",
nsIAboutModule::ALLOW_SCRIPT | nsIAboutModule::IS_SECURE_CHROME_UI},
{"privatebrowsing", "chrome://browser/content/aboutPrivateBrowsing.html",
diff --git a/browser/components/about/components.conf b/browser/components/about/components.conf
@@ -15,6 +15,7 @@ pages = [
'loginsimportreport',
'firefoxview',
'messagepreview',
+ 'opentabs',
'policies',
'preferences',
'privatebrowsing',
diff --git a/browser/components/tabbrowser/content/opentabs.css b/browser/components/tabbrowser/content/opentabs.css
@@ -0,0 +1,22 @@
+/* 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/. */
+
+@import url("chrome://global/skin/in-content/common.css");
+
+:root {
+ height: 100%;
+}
+
+body {
+ background: no-repeat light-dark(linear-gradient(#f0ebfd, #f7ebeb), linear-gradient(#332a50, #3f2a2f));
+ display: flex;
+ justify-content: center;
+ height: 100%;
+}
+
+h3 {
+ color: var(--text-color);
+ /* stylelint-disable-next-line stylelint-plugin-mozilla/use-space-tokens */
+ margin-block-start: calc(var(--size-item-large) * 5);
+}
diff --git a/browser/components/tabbrowser/content/opentabs.html b/browser/components/tabbrowser/content/opentabs.html
@@ -0,0 +1,24 @@
+<!-- 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/. -->
+
+<!doctype html>
+<html>
+ <head>
+ <meta charset="utf-8" />
+ <meta
+ http-equiv="Content-Security-Policy"
+ content="default-src resource: chrome:; object-src 'none'; img-src data: chrome:;"
+ />
+ <meta name="color-scheme" content="light dark" />
+ <title>Open Tabs</title>
+ <link
+ rel="stylesheet"
+ href="chrome://browser/content/tabbrowser/opentabs.css"
+ />
+ </head>
+ <body>
+ <h3>Choose a tab to add to split view</h3>
+ <!-- TODO: Bug 2000938 - Add oepn tabs list -->
+ </body>
+</html>
diff --git a/browser/components/tabbrowser/jar.mn b/browser/components/tabbrowser/jar.mn
@@ -7,6 +7,8 @@ browser.jar:
content/browser/tabbrowser/browser-ctrlTab.js (content/browser-ctrlTab.js)
content/browser/tabbrowser/browser-fullZoom.js (content/browser-fullZoom.js)
content/browser/tabbrowser/drag-and-drop.js (content/drag-and-drop.js)
+ content/browser/tabbrowser/opentabs.css (content/opentabs.css)
+ content/browser/tabbrowser/opentabs.html (content/opentabs.html)
content/browser/tabbrowser/tab-stacking.js (content/tab-stacking.js)
content/browser/tabbrowser/split-view-footer.js (content/split-view-footer.js)
content/browser/tabbrowser/tab.js (content/tab.js)