Skip to content

Commit

Permalink
Backed out 2 changesets (bug 1926055) for causing bc failures browser…
Browse files Browse the repository at this point in the history
…_multiselect_tabs_unload_with_beforeunload.js CLOSED TREE

Backed out changeset 85a555f31920 (bug 1926055)
Backed out changeset db41b497b1be (bug 1926055)

UltraBlame original commit: 1fc2a51d27a0c4340b0e92d4cb4b5c017157a286
  • Loading branch information
marco-c committed Oct 22, 2024
1 parent f4a14e5 commit 4c79f8b
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 3,465 deletions.
12 changes: 0 additions & 12 deletions browser/app/profile/firefox.js
Original file line number Diff line number Diff line change
Expand Up @@ -16998,18 +16998,6 @@ false
pref
(
"
browser
.
tabs
.
unloadTabInContextMenu
"
false
)
;
pref
(
"
extensions
.
experiments
Expand Down
18 changes: 0 additions & 18 deletions browser/base/content/browser.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -1370,24 +1370,6 @@ ftl
/
>
<
link
rel
=
"
localization
"
href
=
"
preview
/
tabUnload
.
ftl
"
/
>
<
title
data
-
Expand Down
43 changes: 0 additions & 43 deletions browser/base/content/main-popupset.inc.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -454,49 +454,6 @@ menuitem
id
=
"
context_unloadTab
"
data
-
lazy
-
l10n
-
id
=
"
tab
-
context
-
unload
-
n
-
tabs
"
data
-
l10n
-
args
=
'
{
"
tabCount
"
:
1
}
'
/
>
<
menuitem
id
=
"
context_pinTab
"
data
Expand Down
13 changes: 0 additions & 13 deletions browser/base/content/main-popupset.js
Original file line number Diff line number Diff line change
Expand Up @@ -437,19 +437,6 @@ break
;
case
"
context_unloadTab
"
:
TabContextMenu
.
explicitUnloadTabs
(
)
;
break
;
case
"
context_fullscreenAutohide
"
:
Expand Down
257 changes: 0 additions & 257 deletions browser/components/tabbrowser/content/tabbrowser.js
Original file line number Diff line number Diff line change
Expand Up @@ -586,24 +586,6 @@ enabled
false
)
;
XPCOMUtils
.
defineLazyPreferenceGetter
(
this
"
_unloadTabInContextMenu
"
"
browser
.
tabs
.
unloadTabInContextMenu
"
false
)
;
if
(
AppConstants
Expand Down Expand Up @@ -18039,99 +18021,6 @@ return
closedCount
;
}
async
explicitUnloadTabs
(
tabs
)
{
let
unloadBlocked
=
await
this
.
runBeforeUnloadForTabs
(
tabs
)
;
if
(
unloadBlocked
)
{
return
;
}
if
(
tabs
.
some
(
tab
=
>
tab
.
selected
)
)
{
let
newTab
=
this
.
_findTabToBlurTo
(
this
.
selectedTab
tabs
)
;
if
(
newTab
)
{
this
.
selectedTab
=
newTab
;
}
else
{
FirefoxViewHandler
.
openTab
(
)
;
}
}
for
(
let
tab
of
tabs
)
{
this
.
discardBrowser
(
tab
true
)
;
}
}
handleNewTabMiddleClick
(
node
Expand Down Expand Up @@ -32013,114 +31902,6 @@ hidden
!
multiselectionContext
;
let
unloadTabItem
=
document
.
getElementById
(
"
context_unloadTab
"
)
;
if
(
gBrowser
.
_unloadTabInContextMenu
)
{
let
tabs
=
this
.
contextTab
.
multiselected
?
gBrowser
.
selectedTabs
:
[
this
.
contextTab
]
;
let
unloadableTabs
=
tabs
.
filter
(
t
=
>
t
.
linkedPanel
&
&
t
.
linkedBrowser
?
.
isRemoteBrowser
)
;
unloadTabItem
.
hidden
=
unloadableTabs
.
length
=
=
=
0
;
unloadTabItem
.
setAttribute
(
"
data
-
l10n
-
args
"
JSON
.
stringify
(
{
tabCount
:
unloadableTabs
.
length
}
)
)
;
}
else
{
unloadTabItem
.
hidden
=
true
;
}
document
.
getElementById
Expand Down Expand Up @@ -33649,44 +33430,6 @@ true
;
}
}
explicitUnloadTabs
(
)
{
if
(
this
.
contextTab
.
multiselected
)
{
gBrowser
.
explicitUnloadTabs
(
gBrowser
.
selectedTabs
)
;
}
else
{
gBrowser
.
explicitUnloadTabs
(
[
this
.
contextTab
]
)
;
}
}
moveTabsToNewGroup
(
)
Expand Down
Loading

0 comments on commit 4c79f8b

Please sign in to comment.