зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1681421 - Read the label property instead of textContent to exclude hidden text. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D102613
This commit is contained in:
Родитель
d49e0ac8bf
Коммит
d6647f3b6e
|
@ -350,7 +350,7 @@ async function checkTabLoadedProfile({
|
|||
info("Attempting to see if the selected tab can receive a profile.");
|
||||
|
||||
return waitUntil(() => {
|
||||
switch (gBrowser.selectedTab.textContent) {
|
||||
switch (gBrowser.selectedTab.label) {
|
||||
case initialTitle:
|
||||
logPeriodically(`> Waiting for the profile to be received.`);
|
||||
return false;
|
||||
|
@ -393,7 +393,7 @@ async function waitForTabUrl({
|
|||
info(`Waiting for the selected tab to have the url "${expectedUrl}".`);
|
||||
|
||||
return waitUntil(() => {
|
||||
switch (gBrowser.selectedTab.textContent) {
|
||||
switch (gBrowser.selectedTab.label) {
|
||||
case initialTitle:
|
||||
case successTitle:
|
||||
if (gBrowser.currentURI.spec === expectedUrl) {
|
||||
|
@ -426,7 +426,7 @@ async function waitForTabTitle(title) {
|
|||
info(`Waiting for the selected tab to have the title "${title}".`);
|
||||
|
||||
return waitUntil(() => {
|
||||
if (gBrowser.selectedTab.textContent === title) {
|
||||
if (gBrowser.selectedTab.label === title) {
|
||||
ok(true, `The selected tab has the title ${title}`);
|
||||
return true;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче