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 5A4D8158096 for ; Tue, 19 Jul 2022 17:10:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 718ACE0C22; Tue, 19 Jul 2022 17:10:32 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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 F14C7E0C22 for ; Tue, 19 Jul 2022 17:10:31 +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 F124B340E9D for ; Tue, 19 Jul 2022 17:10:30 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CEB03548 for ; Tue, 19 Jul 2022 17:10:27 +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: <1658250562.2eb03ae2524cdedc2fba913005554fa23063e378.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.10.2-ownertab.patch X-VCS-Directories: www-client/seamonkey/files/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: 2eb03ae2524cdedc2fba913005554fa23063e378 X-VCS-Branch: master Date: Tue, 19 Jul 2022 17:10:27 +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: 2c3d646b-998c-48fc-b346-fa10feeb9e47 X-Archives-Hash: c6af9df018fc325bb4f4d8868add1264 commit: 2eb03ae2524cdedc2fba913005554fa23063e378 Author: Michael Mair-Keimberger levelnine at> AuthorDate: Tue Jul 19 15:32:48 2022 +0000 Commit: Conrad Kostecki gentoo org> CommitDate: Tue Jul 19 17:09:22 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2eb03ae2 www-client/seamonkey: remove unused patch Signed-off-by: Michael Mair-Keimberger levelnine.at> Portage 3.0.32 / pkgdev 0.2.1 / pkgcheck 0.10.11 Closes: https://github.com/gentoo/gentoo/pull/26481 Signed-off-by: Conrad Kostecki gentoo.org> .../files/seamonkey-2.53.10.2-ownertab.patch | 249 --------------------- 1 file changed, 249 deletions(-) diff --git a/www-client/seamonkey/files/seamonkey-2.53.10.2-ownertab.patch b/www-client/seamonkey/files/seamonkey-2.53.10.2-ownertab.patch deleted file mode 100644 index 02140bd5e8f7..000000000000 --- a/www-client/seamonkey/files/seamonkey-2.53.10.2-ownertab.patch +++ /dev/null @@ -1,249 +0,0 @@ -# HG changeset patch -# User Dmitry Butskoy -# Date 1628960364 -7200 -# Parent 45d5ea1452b1c406303ff3be289df08cde3d5a04 -Bug 1623054 - Set owner tab for proper tab focus handling after close. r=IanN a=IanN -Upstream bug-report: https://bugzilla.mozilla.org/show_bug.cgi?id=1623054 - -diff --git seamonkey-2.53.10.2/comm/suite/app/profile/suite-prefs.js seamonkey-2.53.10.2/comm/suite/app/profile/suite-prefs.js ---- seamonkey-2.53.10.2/comm/suite/app/profile/suite-prefs.js -+++ seamonkey-2.53.10.2/comm/suite/app/profile/suite-prefs.js -@@ -224,16 +224,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); - pref("browser.tabs.avoidBrowserFocus", false); - - // 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) -diff --git seamonkey-2.53.10.2/comm/suite/base/content/utilityOverlay.js seamonkey-2.53.10.2/comm/suite/base/content/utilityOverlay.js ---- seamonkey-2.53.10.2/comm/suite/base/content/utilityOverlay.js -+++ seamonkey-2.53.10.2/comm/suite/base/content/utilityOverlay.js -@@ -1637,16 +1637,17 @@ function openLinkIn(url, where, params) - // fall through - case "tab": - var browser = w.getBrowser(); - var tab = browser.addTab(url, { - referrerURI: aReferrerURI, - referrerPolicy: aReferrerPolicy, - charset: aCharset, - postData: aPostData, -+ ownerTab: loadInBackground ? null : browser.selectedTab, - allowThirdPartyFixup: aAllowThirdPartyFixup, - relatedToCurrent: aRelatedToCurrent, - allowMixedContent: aAllowMixedContent, - noReferrer: aNoReferrer, - userContextId: aUserContextId, - originPrincipal: aPrincipal, - triggeringPrincipal: aTriggeringPrincipal, - }); -diff --git seamonkey-2.53.10.2/comm/suite/browser/tabbrowser.xml seamonkey-2.53.10.2/comm/suite/browser/tabbrowser.xml ---- seamonkey-2.53.10.2/comm/suite/browser/tabbrowser.xml -+++ seamonkey-2.53.10.2/comm/suite/browser/tabbrowser.xml -@@ -1152,16 +1152,27 @@ - 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)); - } - -+ let 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 && !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 +1456,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 +1570,49 @@ - - - - - index) - newIndex = currentIndex - 1; - else if (currentIndex < index) - newIndex = currentIndex; -@@ -2057,23 +2092,30 @@ - - if (oldBrowser == this.mCurrentBrowser) - this.mCurrentBrowser = null; - - // Invalidate browsers cache, as the tab is removed from the - // tab container. - this._browsers = null; - -- // Clean up before/afterselected attributes before removing the tab -+ let owner = ("owner" in aTab) ? aTab.owner : null; -+ -+ // Clean up before/after selected 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 (owner && !owner.hidden && !owner.closing && -+ Services.prefs.getBoolPref("browser.tabs.selectOwnerOnClose")) { -+ this.selectedTab = 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; - }