Unexpected alert open error no longer includes the dialog message
Categories
(Remote Protocol :: Marionette, defect, P2)
Tracking
(firefox-esr128 wontfix, firefox131 wontfix, firefox132 wontfix, firefox133 fixed)
People
(Reporter: jdescottes, Assigned: jdescottes)
References
(Regression, )
Details
(Keywords: regression, Whiteboard: [webdriver:m13][webdriver:relnote])
Attachments
(1 file)
Per WebDriver spec https://www.w3.org/TR/webdriver2/#dfn-annotated-unexpected-alert-open-error:
An annotated unexpected alert open error is an error with error code unexpected alert open and an optional error data dictionary with the
following entries:"text"
The current user prompt's message.
Since Bug 1884650 we replaced the following errors
https://searchfox.org/mozilla-central/rev/d981e5ac5332707e7cc4942b06510b293ae4f783/remote/marionette/driver.sys.mjs#2836-2838,2846-2848
throw new lazy.error.UnexpectedAlertOpenError(
`Accepted user prompt dialog: ${textContent}`
);
...
throw new lazy.error.UnexpectedAlertOpenError(
`Dismissed user prompt dialog: ${textContent}`
);
throw new lazy.error.UnexpectedAlertOpenError(
`Unexpected ${promptType} dialog detected. Performed handler "${handler.handler}"`,
{
text: textContent,
}
);
And we no longer expose the dialog message, whereas Chrome still does. See related geckodriver issue: https://github.com/mozilla/geckodriver/issues/2204
Comment 1•1 year ago
|
||
Set release status flags based on info from the regressing bug 1884650
:whimboo, since you are the author of the regressor, bug 1884650, could you take a look? Also, could you set the severity field?
For more information, please visit BugBot documentation.
Comment 2•1 year ago
|
||
So it's not per-se a bug but an improvement to align better with the specification. But it looks like that geckodriver doesn't correctly forward the text property of the error. We probably want to fix that in M13. Lets discuss today in the triage meeting.
| Assignee | ||
Comment 3•1 year ago
|
||
Let's just update the error message to align with Chrome for now, and we will fix geckodriver separately to align with the spec.
Updated•1 year ago
|
Updated•1 year ago
|
| Assignee | ||
Comment 4•1 year ago
|
||
Consumers seem to depend on having the dialog text in the error message, so we restore it here.
Updated•1 year ago
|
Comment 6•1 year ago
|
||
| bugherder | ||
Comment 7•1 year ago
|
||
The patch landed in nightly and beta is affected.
:jdescottes, is this bug important enough to require an uplift?
- If yes, please nominate the patch for beta approval.
- If no, please set
status-firefox132towontfix.
For more information, please visit BugBot documentation.
| Assignee | ||
Comment 8•1 year ago
|
||
I think it's a bit late for uplifts and this should not impact too many consumers. Let's ride the trains here.
| Assignee | ||
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Description
•