merge upstream commit 'remove HTML entities from tooltip'
This commit is contained in:
parent
1133d48103
commit
ef894d847e
1 changed files with 49 additions and 36 deletions
|
@ -289,7 +289,13 @@ const Logic = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
document.querySelector(this.getPanelSelector(this._panels[panel])).classList.remove("hide");
|
const panelEl = document.querySelector(this.getPanelSelector(this._panels[panel]));
|
||||||
|
panelEl.classList.remove("hide");
|
||||||
|
|
||||||
|
const focusEl = panelEl.querySelector(".firstTabindex");
|
||||||
|
if(focusEl) {
|
||||||
|
focusEl.focus();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
showPreviousPanel() {
|
showPreviousPanel() {
|
||||||
|
@ -653,9 +659,10 @@ Logic.registerPanel(P_CONTAINERS_LIST, {
|
||||||
|
|
||||||
context.classList.add("userContext-wrapper", "open-newtab", "clickable");
|
context.classList.add("userContext-wrapper", "open-newtab", "clickable");
|
||||||
manage.classList.add("show-tabs", "pop-button");
|
manage.classList.add("show-tabs", "pop-button");
|
||||||
manage.title = escaped`View ${identity.name} container`;
|
manage.setAttribute("title", `View ${identity.name} container`);
|
||||||
context.setAttribute("tabindex", "0");
|
context.setAttribute("tabindex", "0");
|
||||||
context.title = escaped`Create ${identity.name} tab`;
|
context.classList.add("firstTabindex");
|
||||||
|
context.setAttribute("title", `Create ${identity.name} tab`);
|
||||||
context.innerHTML = escaped`
|
context.innerHTML = escaped`
|
||||||
<div class="userContext-icon-wrapper open-newtab">
|
<div class="userContext-icon-wrapper open-newtab">
|
||||||
<div class="usercontext-icon"
|
<div class="usercontext-icon"
|
||||||
|
@ -729,11 +736,15 @@ Logic.registerPanel(P_CONTAINER_INFO, {
|
||||||
|
|
||||||
// This method is called when the object is registered.
|
// This method is called when the object is registered.
|
||||||
async initialize() {
|
async initialize() {
|
||||||
Logic.addEnterHandler(document.querySelector("#close-container-info-panel"), () => {
|
const closeContEl = document.querySelector("#close-container-info-panel");
|
||||||
|
closeContEl.setAttribute("tabindex", "0");
|
||||||
|
closeContEl.classList.add("firstTabindex");
|
||||||
|
Logic.addEnterHandler(closeContEl, () => {
|
||||||
Logic.showPreviousPanel();
|
Logic.showPreviousPanel();
|
||||||
});
|
});
|
||||||
|
const hideContEl = document.querySelector("#container-info-hideorshow");
|
||||||
Logic.addEnterHandler(document.querySelector("#container-info-hideorshow"), async () => {
|
hideContEl.setAttribute("tabindex", "0");
|
||||||
|
Logic.addEnterHandler(hideContEl, async () => {
|
||||||
const identity = Logic.currentIdentity();
|
const identity = Logic.currentIdentity();
|
||||||
try {
|
try {
|
||||||
browser.runtime.sendMessage({
|
browser.runtime.sendMessage({
|
||||||
|
@ -757,6 +768,7 @@ Logic.registerPanel(P_CONTAINER_INFO, {
|
||||||
throw new Error("Could not check for incompatible add-ons.");
|
throw new Error("Could not check for incompatible add-ons.");
|
||||||
}
|
}
|
||||||
const moveTabsEl = document.querySelector("#container-info-movetabs");
|
const moveTabsEl = document.querySelector("#container-info-movetabs");
|
||||||
|
moveTabsEl.setAttribute("tabindex","0");
|
||||||
const numTabs = await Logic.numTabs();
|
const numTabs = await Logic.numTabs();
|
||||||
if (incompatible) {
|
if (incompatible) {
|
||||||
Logic._disableMoveTabs("Moving container tabs is incompatible with Pulse, PageShot, and SnoozeTabs.");
|
Logic._disableMoveTabs("Moving container tabs is incompatible with Pulse, PageShot, and SnoozeTabs.");
|
||||||
|
@ -823,6 +835,7 @@ Logic.registerPanel(P_CONTAINER_INFO, {
|
||||||
<td></td>
|
<td></td>
|
||||||
<td class="container-info-tab-title truncate-text" title="${tab.url}" ><div class="container-tab-title">${tab.title}</div></td>`;
|
<td class="container-info-tab-title truncate-text" title="${tab.url}" ><div class="container-tab-title">${tab.title}</div></td>`;
|
||||||
tr.querySelector("td").appendChild(Utils.createFavIconElement(tab.favIconUrl));
|
tr.querySelector("td").appendChild(Utils.createFavIconElement(tab.favIconUrl));
|
||||||
|
tr.setAttribute("tabindex", "0");
|
||||||
document.getElementById("container-info-table").appendChild(fragment);
|
document.getElementById("container-info-table").appendChild(fragment);
|
||||||
|
|
||||||
// On click, we activate this tab. But only if this tab is active.
|
// On click, we activate this tab. But only if this tab is active.
|
||||||
|
|
Loading…
Add table
Reference in a new issue