When I was diagnosing bugzilla.mozilla.org/show_bug.cgi?id=1969259#c3
, [1] ascertaining which tab to attach to was nigh impossible:
My sole workaround thus far has been to close the tab of interest, then reinvoke it, to ensure that it’s provided the highest tab number.
However, this shan’t work for tabs which I need to not die. In that case, the sole way I’ve heard of is to install a custom WebExtension, with the undermentioned content constituting its background.js
:
#!/usr/bin/env firefox
browser.tabs.query(
{
active: true,
currentWindow: true
}
).then(
(tabs) => {
console.log(
"Active tab ID:",
tabs[0].id
);
}
);
However, I’ve no desire to create an extension for this purpose.
I see an answer mentioning about:processes
and about:memory
at support.mozilla.org/questions/1354296#answer-1451620
, which is marked as a solution. However, I’ve yet to notice anything relevant there.