Closed Bug 1696153 Opened 3 years ago Closed 3 years ago

Perma toolkit/components/passwordmgr/test/mochitest/test_prompt.html | Checking title visibility - got true, expected false when Gecko 88 merges to Beta on 2021-03-22

Categories

(Toolkit Graveyard :: Notifications and Alerts, defect)

defect

Tracking

(firefox-esr78 unaffected, firefox86 unaffected, firefox87 unaffected, firefox88+ verified)

VERIFIED FIXED
88 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox86 --- unaffected
firefox87 --- unaffected
firefox88 + verified

People

(Reporter: aryx, Assigned: mtigley)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

  • central-as-beta simulation
  • How to run these simulations
  • Failure log
    [task 2021-03-03T12:05:16.267Z] 12:05:16 INFO - TEST-PASS | toolkit/components/passwordmgr/test/mochitest/test_prompt.html | Checking expected message
    [task 2021-03-03T12:05:16.267Z] 12:05:16 INFO - Buffered messages finished
    [task 2021-03-03T12:05:16.268Z] 12:05:16 INFO - TEST-UNEXPECTED-FAIL | toolkit/components/passwordmgr/test/mochitest/test_prompt.html | Checking title visibility - got true, expected false
    [task 2021-03-03T12:05:16.268Z] 12:05:16 INFO - SimpleTest.is@SimpleTest/SimpleTest.js:500:14
    [task 2021-03-03T12:05:16.268Z] 12:05:16 INFO - checkPromptState@toolkit/components/prompts/test/prompt_common.js:220:7
    [task 2021-03-03T12:05:16.268Z] 12:05:16 INFO - handlePrompt@toolkit/components/prompts/test/prompt_common.js:196:19
Flags: needinfo?(tigleym)
Flags: needinfo?(tigleym) → needinfo?(mtigley)
Assignee: nobody → mtigley
Flags: needinfo?(mtigley)

It looks like the modals in toolkit/components/passwordmgr/test/mochitest/test_prompt.html are using the window prompt type: https://searchfox.org/mozilla-central/rev/f83c67b24fed1d677c5deafe7b31f5656c2656ec/toolkit/components/passwordmgr/test/mochitest/test_prompt.html#25-26. However, the window subdialog pref is only enabled in Nightly so that's why the patch in Bug 1694415 landed and is failing when staging a merge into Beta.

Some background:
In Bug 1694415, I made it so these tests assumed the titles are always shown for anything opened on the tab level. So this should actually handle anything that's opened on the tab-level (and don't need to modify the titleHidden value in the passwordmgr prompt tests).

Now to actually handle the failure here, we could add another check in checkPromptState where if the windowPromptSubdialog pref is enabled and the modal type is a window type, we also assert the title is shown.

Status: NEW → ASSIGNED

This patch causes macOS failures for late betas because prompts.windowPromptSubDialog is only true for nightly and early betas.

Failure logs:

mochitest-plain
TEST-UNEXPECTED-FAIL | toolkit/components/prompts/test/test_bug619644.html | Checking title always visible on OS X or when opened with common dialog
TEST-UNEXPECTED-FAIL | toolkit/components/prompts/test/test_bug620145.html | Checking title always visible on OS X or when opened with common dialog
TEST-UNEXPECTED-FAIL | toolkit/components/prompts/test/test_dom_prompts.html | Checking title always visible on OS X or when opened with common dialog
TEST-UNEXPECTED-FAIL | toolkit/components/prompts/test/test_dom_prompts.html | Checking title always visible on OS X or when opened with common dialog
TEST-UNEXPECTED-FAIL | toolkit/components/prompts/test/test_subresources_prompts.html | Checking title always visible on OS X or when opened with common dialog

mochitest-chrome
TEST-UNEXPECTED-FAIL | toolkit/components/prompts/test/test_modal_prompts.html | Checking title always visible on OS X or when opened with common dialog
TEST-UNEXPECTED-FAIL | toolkit/components/prompts/test/test_modal_prompts.html | Checking title always visible on OS X or when opened with common dialog

Flags: needinfo?(mtigley)

I believe I've fixed the failures when either prompts.windowPromptSubDialog or prompts.contentPromptSubDialog is false (versions beyond Nightly and early Betas).

Are you able to run the tests for Beta with the current patch?

Flags: needinfo?(mtigley) → needinfo?(aryx.bugmail)

Patch holds in latest beta-sim with patch applied.

Flags: needinfo?(aryx.bugmail)
Pushed by mtigley@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/324466f8b5d3
Make checkPromptState check if the prompt was opened with SubDialog. r=Gijs
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 88 Branch

Verified fixed in today's central-as-early-beta simulation.

Status: RESOLVED → VERIFIED
Has Regression Range: --- → yes
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: