зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1415863 - Rename mTabBox to tabbox. r=florian
MozReview-Commit-ID: L2mzJnHHwNu --HG-- extra : rebase_source : 9959999779d90e5a4d3798ccbccbf1cb831cd602
This commit is contained in:
Родитель
2bf6571d80
Коммит
6950ac6b52
|
@ -49,7 +49,7 @@
|
|||
// 'labelled by'/'label for' relations for xul:tab and xul:tabpanel
|
||||
|
||||
var tabs = tabBrowser().tabContainer.childNodes;
|
||||
var panels = tabBrowser().mTabBox.tabpanels.childNodes;
|
||||
var panels = tabBrowser().tabbox.tabpanels.childNodes;
|
||||
|
||||
testRelation(panels[0], RELATION_LABELLED_BY, tabs[0]);
|
||||
testRelation(tabs[0], RELATION_LABEL_FOR, panels[0]);
|
||||
|
|
|
@ -213,7 +213,7 @@
|
|||
]
|
||||
};
|
||||
|
||||
testAccessibleTree(tabBrowser().mTabBox.tabpanels, tabboxAccTree);
|
||||
testAccessibleTree(tabBrowser().tabbox.tabpanels, tabboxAccTree);
|
||||
}
|
||||
|
||||
this.getID = function testTabHierarchy_getID()
|
||||
|
|
|
@ -547,7 +547,7 @@ var ctrlTab = {
|
|||
tabContainer[toggleEventListener]("TabClose", this);
|
||||
|
||||
document[toggleEventListener]("keypress", this);
|
||||
gBrowser.mTabBox.handleCtrlTab = !enable;
|
||||
gBrowser.tabbox.handleCtrlTab = !enable;
|
||||
|
||||
if (enable)
|
||||
PageThumbs.addExpirationFilter(this);
|
||||
|
|
|
@ -69,7 +69,7 @@
|
|||
Components.classes["@mozilla.org/autocomplete/search;1?name=unifiedcomplete"]
|
||||
.getService(Components.interfaces.mozIPlacesAutoComplete);
|
||||
</field>
|
||||
<field name="mTabBox" readonly="true">
|
||||
<field name="tabbox" readonly="true">
|
||||
document.getAnonymousElementByAttribute(this, "anonid", "tabbox");
|
||||
</field>
|
||||
<field name="mPanelContainer" readonly="true">
|
||||
|
@ -3935,10 +3935,10 @@
|
|||
<setter>
|
||||
<![CDATA[
|
||||
if (gNavToolbox.collapsed && !this._allowTabChange) {
|
||||
return this.mTabBox.selectedTab;
|
||||
return this.tabbox.selectedTab;
|
||||
}
|
||||
// Update the tab
|
||||
this.mTabBox.selectedTab = val;
|
||||
this.tabbox.selectedTab = val;
|
||||
return val;
|
||||
]]>
|
||||
</setter>
|
||||
|
@ -4625,7 +4625,7 @@
|
|||
|
||||
this.maybeVisibleTabs.add(showTab);
|
||||
|
||||
let tabs = this.tabbrowser.mTabBox.tabs;
|
||||
let tabs = this.tabbrowser.tabbox.tabs;
|
||||
let tabPanel = this.tabbrowser.mPanelContainer;
|
||||
let showPanel = tabs.getRelatedElement(showTab);
|
||||
let index = Array.indexOf(tabPanel.childNodes, showPanel);
|
||||
|
@ -6429,7 +6429,7 @@
|
|||
</field>
|
||||
|
||||
<field name="tabbox" readonly="true">
|
||||
this.tabbrowser.mTabBox;
|
||||
this.tabbrowser.tabbox;
|
||||
</field>
|
||||
|
||||
<field name="contextMenu" readonly="true">
|
||||
|
|
|
@ -29,7 +29,7 @@ add_task(async function() {
|
|||
is(win.gBrowser.browsers.length, 1, "Window has one browser");
|
||||
is(win.gBrowser.selectedTab, newTab, "Remaining tab is selected");
|
||||
is(win.gBrowser.selectedBrowser, newBrowser, "Browser for remaining tab is selected");
|
||||
is(win.gBrowser.mTabBox.selectedPanel, newBrowser.parentNode.parentNode.parentNode.parentNode, "Panel for remaining tab is selected");
|
||||
is(win.gBrowser.tabbox.selectedPanel, newBrowser.parentNode.parentNode.parentNode.parentNode, "Panel for remaining tab is selected");
|
||||
}
|
||||
|
||||
await promiseWindowClosed(win);
|
||||
|
|
|
@ -57,11 +57,11 @@ add_task(async function test() {
|
|||
is(gBrowser.selectedTab, tab1,
|
||||
"Tab1 should be activated by pressing Ctrl+PageUp on Tab2");
|
||||
|
||||
if (gBrowser.mTabBox._handleMetaAltArrows) {
|
||||
if (gBrowser.tabbox._handleMetaAltArrows) {
|
||||
gBrowser.selectedTab = tab1;
|
||||
browser1.focus();
|
||||
|
||||
let ltr = window.getComputedStyle(gBrowser.mTabBox).direction == "ltr";
|
||||
let ltr = window.getComputedStyle(gBrowser.tabbox).direction == "ltr";
|
||||
let advanceKey = ltr ? "VK_RIGHT" : "VK_LEFT";
|
||||
let reverseKey = ltr ? "VK_LEFT" : "VK_RIGHT";
|
||||
|
||||
|
@ -109,7 +109,7 @@ add_task(async function test() {
|
|||
// XXX Currently, Command + "{" and "}" don't work if keydown event is
|
||||
// consumed because following keypress event isn't fired.
|
||||
|
||||
let ltr = window.getComputedStyle(gBrowser.mTabBox).direction == "ltr";
|
||||
let ltr = window.getComputedStyle(gBrowser.tabbox).direction == "ltr";
|
||||
let advanceKey = ltr ? "}" : "{";
|
||||
let reverseKey = ltr ? "{" : "}";
|
||||
|
||||
|
|
|
@ -3279,7 +3279,7 @@ var SessionStoreInternal = {
|
|||
tabMap.set(tab, tabData);
|
||||
tabsData.push(tabData);
|
||||
}
|
||||
winData.selected = tabbrowser.mTabBox.selectedIndex + 1;
|
||||
winData.selected = tabbrowser.tabbox.selectedIndex + 1;
|
||||
|
||||
this._updateWindowFeatures(aWindow);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче