From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 48633158003 for ; Tue, 22 Feb 2022 19:00:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 79F81E08F0; Tue, 22 Feb 2022 19:00:00 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4B45BE08BD for ; Tue, 22 Feb 2022 19:00:00 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4186E343126 for ; Tue, 22 Feb 2022 18:59:59 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D49C829 for ; Tue, 22 Feb 2022 18:59:57 +0000 (UTC) From: "Conrad Kostecki" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Conrad Kostecki" Message-ID: <1645556303.7d45fdaa97c80a7f8af89ac3d42b3b2e64ac98c7.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/seamonkey/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: www-client/seamonkey/files/seamonkey-2.53.7-ownertab.patch X-VCS-Directories: www-client/seamonkey/files/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: 7d45fdaa97c80a7f8af89ac3d42b3b2e64ac98c7 X-VCS-Branch: master Date: Tue, 22 Feb 2022 18:59:57 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e724300c-1d1f-487a-abac-42c8e72c0614 X-Archives-Hash: 4024b3c70ec86e2063ad71de6c2fd8e9 commit: 7d45fdaa97c80a7f8af89ac3d42b3b2e64ac98c7 Author: Michael Mair-Keimberger levelnine at> AuthorDate: Sun Feb 20 16:14:19 2022 +0000 Commit: Conrad Kostecki gentoo org> CommitDate: Tue Feb 22 18:58:23 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d45fdaa www-client/seamonkey: remove unused patch Closes: https://github.com/gentoo/gentoo/pull/24285 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Michael Mair-Keimberger levelnine.at> Signed-off-by: Conrad Kostecki gentoo.org> .../files/seamonkey-2.53.7-ownertab.patch | 236 --------------------- 1 file changed, 236 deletions(-) diff --git a/www-client/seamonkey/files/seamonkey-2.53.7-ownertab.patch b/www-client/seamonkey/files/seamonkey-2.53.7-ownertab.patch deleted file mode 100644 index c0ae11ff076b..000000000000 --- a/www-client/seamonkey/files/seamonkey-2.53.7-ownertab.patch +++ /dev/null @@ -1,236 +0,0 @@ ---- seamonkey-2.53.7/comm/suite/app/profile/suite-prefs.js -+++ seamonkey-2.53.7/comm/suite/app/profile/suite-prefs.js -@@ -225,16 +225,17 @@ pref("browser.tabs.autoHide", false); - pref("browser.tabs.forceHide", false); - pref("browser.tabs.closeWindowWithLastTab", true); - pref("browser.tabs.warnOnClose", true); - pref("browser.tabs.warnOnCloseOther", true); - pref("browser.tabs.warnOnOpen", true); - pref("browser.tabs.maxOpenBeforeWarn", 15); - pref("browser.tabs.insertRelatedAfterCurrent", true); - pref("browser.tabs.insertAllTabsAfterCurrent", false); -+pref("browser.tabs.selectOwnerOnClose", true); - - // For future use - pref("browser.tabs.loadBookmarksInBackground", false); - - // how many browsers can be saved in the DOM (by the tabbed browser) - pref("browser.tabs.max_tabs_undo", 3); - // should popups by saved in the DOM (by the tabbed browser) - pref("browser.tabs.cache_popups", false); ---- seamonkey-2.53.7/comm/suite/base/content/utilityOverlay.js -+++ seamonkey-2.53.7/comm/suite/base/content/utilityOverlay.js -@@ -1624,21 +1624,23 @@ function openLinkIn(url, where, params) - // forces tab to be focused - loadInBackground = true; - // fall through - case "tabshifted": - loadInBackground = !loadInBackground; - // fall through - case "tab": - var browser = w.getBrowser(); -+ var owner = loadInBackground ? null : browser.selectedTab; - var tab = browser.addTab(url, { - referrerURI: aReferrerURI, - referrerPolicy: aReferrerPolicy, - charset: aCharset, - postData: aPostData, -+ ownerTab: owner, - allowThirdPartyFixup: aAllowThirdPartyFixup, - relatedToCurrent: aRelatedToCurrent, - allowMixedContent: aAllowMixedContent, - noReferrer: aNoReferrer, - userContextId: aUserContextId, - originPrincipal: aPrincipal, - triggeringPrincipal: aTriggeringPrincipal, - }); ---- seamonkey-2.53.7/comm/suite/browser/tabbrowser.xml -+++ seamonkey-2.53.7/comm/suite/browser/tabbrowser.xml -@@ -1151,16 +1151,28 @@ - newBrowser.docShellIsActive = this.mCurrentTab.linkedBrowser.docShellIsActive; - if (this.mCurrentBrowser) { - this.mCurrentBrowser.droppedLinkHandler = null; - this.mCurrentBrowser.docShellIsActive = false; - this.mCurrentBrowser.removeAttribute("primary"); - this.finder.mListeners.forEach(l => this.mCurrentBrowser.finder.removeResultListener(l)); - } - -+ var oldTab = this.mCurrentTab; -+ -+ // Preview mode should not reset the owner -+ if (!this._previewMode && !oldTab.selected) -+ oldTab.owner = null; -+ -+ let lastRelatedTab = this.mLastRelatedIndex ? this.tabs[this.mLastRelatedIndex] : null; -+ if (lastRelatedTab) { -+ if (!lastRelatedTab.selected) -+ lastRelatedTab.owner = null; -+ } -+ - newBrowser.setAttribute("primary", "true"); - this.mCurrentBrowser = newBrowser; - this.mCurrentTab = this.selectedTab; - this.mCurrentTab.removeAttribute("unread"); - this.finder.mListeners.forEach(l => this.mCurrentBrowser.finder.addResultListener(l)); - - var tabListener = this.mTabListeners[this.tabContainer.selectedIndex]; - -@@ -1445,16 +1457,19 @@ - opener: null, - }; - } - - params.focusNewTab = params.inBackground != null ? - !params.inBackground : - !Services.prefs.getBoolPref("browser.tabs.loadInBackground"); - -+ if (params.focusNewTab) -+ params.ownerTab = this.selectedTab; -+ - return this.addTab(aURI, params); - ]]> - - - - - - -@@ -1556,43 +1571,49 @@ - - - - - index) - newIndex = currentIndex - 1; - else if (currentIndex < index) - newIndex = currentIndex; -@@ -2033,17 +2069,21 @@ - this._browsers = null; - - // Clean up before/afterselected attributes before removing the tab - aTab._selected = false; - aTab.remove(); - - // When the current tab is removed select a new tab - // and fire select events on tabpanels and tabs -- if (this.mPreviousTab && (aTab == this.mCurrentTab)) -+ if (aTab.owner && !aTab.owner.hidden && !aTab.owner.closing && -+ Services.prefs.getBoolPref("browser.tabs.selectOwnerOnClose")) { -+ this.selectedTab = aTab.owner; -+ } -+ else if (this.mPreviousTab && (aTab == this.mCurrentTab)) - this.selectedTab = this.mPreviousTab; - else { - this.tabContainer.selectedIndex = newIndex; - - // We need to explicitly clear this, because updateCurrentBrowser - // doesn't get called for a background tab - this.mPreviousTab = null; - }