Closed Bug 1241679 Opened 8 years ago Closed 2 years ago

WebDriver:Navigate times out when trying to import a certificate because a modal sheet gets opened

Categories

(Remote Protocol :: Marionette, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: whimboo, Unassigned)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file, 1 obsolete file)

Attached file minimized testcase (obsolete) —
The following testcase does currently not work in Marionette because navigate() blocks and does not return from loading the page.

If that is a case we cannot handle via navigate() the workaround would be to enter the url in the location bar and press return.
Status: NEW → UNCONFIRMED
Depends on: 1264259
Ever confirmed: false
OS: Unspecified → All
Hardware: Unspecified → All
Version: unspecified → Trunk
Could possibly block conformance.
Blocks: webdriver
Priority: -- → P2
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: navigate() times out for loading page if modal dialog gets opened → WebDriver:Navigate times out for loading page if modal dialog gets opened
No longer depends on: webdriver-navigate
Bug 1477977 is what we actually want.
Depends on: 1477977
No longer depends on: 1264259
Attached file Marionette test
Updated Marionette test because mozqa.com doesn't exist anymore.
Attachment #8710741 - Attachment is obsolete: true

With the patch from bug 1477977 landed I can see the following entry in the trace log:

1560510362295 Marionette TRACE Received observer notification toplevel-window-ready

That means it is not a modal dialog what gets opened here, but a modal sheet which behaves like a window, but blocks the navigation in Firefox. As result no further page load events are getting emitted, and the command doesn't return until it hits the timeout.

Given that this is a very rare case any kind of investigation will have lower priority.

Priority: P2 → P3
Summary: WebDriver:Navigate times out for loading page if modal dialog gets opened → WebDriver:Navigate times out for loading page if a modal sheet gets opened

When I run this test with Marionette I cannot see an observer notification that a modal dialog has been opened for the CA alert [1]. There is only the DOMWillOpenModalDialog event fired. I wonder why that happens.

Olli, is that expected? If yes, why we don't get common-dialog-loaded nor tabmodal-dialog-loaded notifications here? As it looks like the same happens for the Clear Recent History dialog too.

[1] https://searchfox.org/mozilla-central/rev/1133b6716d9a8131c09754f3f29288484896b8b6/security/manager/ssl/nsNSSCertificateDB.cpp#329

Flags: needinfo?(bugs)
Blocks: 1545460

Note that we also get a toplevel-window-ready notification, maybe this is something we would have to check if a modal dialog or window has been opened?

(this was discussed at Whistler. Re-needinfo if there is still something unclear.)

Flags: needinfo?(bugs)
See Also: → 1366035

The test case from comment 3 doesn't work anymore because there is no support for md5 and as such I removed it from my page.

Dana, is there still a way to import a certificate by navigating to a URL? If yes, do you have an example URL that I could use to check the behavior in Marionette these days? The navigation should bring up a modal sheet /dialog. If there is no support anymore we most likely can close this bug.

Flags: needinfo?(dkeeler)
Summary: WebDriver:Navigate times out for loading page if a modal sheet gets opened → WebDriver:Navigate times out when trying to import a certificate because a modal sheet gets opened

Importing a certificate by navigating to a URL was removed in bug 1024871, so it looks like we can close this.

Flags: needinfo?(dkeeler)

Thanks Dana! Indeed, so lets close.

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INVALID
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: