Skip to content

Commit

Permalink
Bug 1889369: enable tooltipsShowPidAndActiveness for tab card preview…
Browse files Browse the repository at this point in the history
… r=dwalker,desktop-theme-reviewers,tabbrowser-reviewers,emilio

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

UltraBlame original commit: 97d09ddde07b952a19f96ef45d0b83374022037f
  • Loading branch information
marco-c committed Jun 16, 2024
1 parent 83d89f9 commit e985d3b
Show file tree
Hide file tree
Showing 5 changed files with 982 additions and 53 deletions.
62 changes: 62 additions & 0 deletions browser/base/content/main-popupset.inc.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -4536,6 +4536,68 @@ html
div
>
<
html
:
div
class
=
"
tab
-
preview
-
pid
-
activeness
"
>
<
html
:
div
class
=
"
tab
-
preview
-
pid
"
>
<
/
html
:
div
>
<
html
:
div
class
=
"
tab
-
preview
-
activeness
"
>
<
/
html
:
div
>
<
/
html
:
div
>
<
/
html
:
Expand Down
139 changes: 86 additions & 53 deletions browser/base/content/tabbrowser.js
Original file line number Diff line number Diff line change
Expand Up @@ -22379,6 +22379,68 @@ break
;
}
}
getTabPids
(
tab
)
{
if
(
!
tab
.
linkedBrowser
)
{
return
[
]
;
}
let
[
contentPid
.
.
.
framePids
]
=
E10SUtils
.
getBrowserPids
(
tab
.
linkedBrowser
gFissionBrowser
)
;
let
pids
=
contentPid
?
[
contentPid
]
:
[
]
;
return
pids
.
concat
(
framePids
.
sort
(
)
)
;
}
getTabTooltip
(
tab
Expand Down Expand Up @@ -22437,62 +22499,50 @@ false
)
)
{
if
(
tab
.
linkedBrowser
)
{
let
[
contentPid
.
.
.
framePids
]
const
pids
=
E10SUtils
this
.
getBrowserPids
getTabPids
(
tab
.
linkedBrowser
gFissionBrowser
)
;
if
(
contentPid
)
{
if
(
framePids
&
&
framePids
pids
.
length
)
{
let
pidLabel
=
pids
.
length
>
1
?
"
pids
"
:
"
pid
"
;
labelArray
.
push
(
(
pids
{
contentPid
pidLabel
}
{
framePids
.
sort
(
)
pids
.
join
(
Expand All @@ -22504,22 +22554,6 @@ join
)
;
}
else
{
labelArray
.
push
(
(
pid
{
contentPid
}
)
)
;
}
}
if
(
tab
Expand All @@ -22542,7 +22576,6 @@ A
;
}
}
}
let
label
=
Expand Down
Loading

0 comments on commit e985d3b

Please sign in to comment.