tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit af07ef454030c6410244a1c3470fee76a78a3949
parent 4e3f44dec5909a1176e0d50fe025ca722891ab9c
Author: Kelly Cochrane <kcochrane@mozilla.com>
Date:   Wed, 19 Nov 2025 17:17:09 +0000

Bug 1987141 - Add a split view specific open-tabs page r=tabbrowser-reviewers,jsudiaman

Differential Revision: https://phabricator.services.mozilla.com/D272710

Diffstat:
Mbrowser/components/about/AboutRedirector.cpp | 3+++
Mbrowser/components/about/components.conf | 1+
Abrowser/components/tabbrowser/content/opentabs.css | 21+++++++++++++++++++++
Abrowser/components/tabbrowser/content/opentabs.html | 24++++++++++++++++++++++++
Mbrowser/components/tabbrowser/jar.mn | 2++
5 files changed, 51 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,21 @@ +/* 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); + 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)