Page MenuHomePhabricator

Bug 2004191 - Update WebDriver navigation to retain URL on navigation-committed event. r=jdescottes
ClosedPublic

Authored by sajidanwar on Dec 6 2025, 6:21 PM.
Referenced Files
Unknown Object (File)
Tue, Dec 30, 9:04 AM
Unknown Object (File)
Mon, Dec 29, 8:54 PM
Unknown Object (File)
Mon, Dec 29, 8:42 PM
Unknown Object (File)
Sat, Dec 27, 9:37 AM
Unknown Object (File)
Sat, Dec 27, 3:34 AM
Unknown Object (File)
Wed, Dec 24, 5:54 PM
Unknown Object (File)
Wed, Dec 24, 5:54 PM
Unknown Object (File)
Fri, Dec 19, 8:54 PM

Diff Detail

Event Timeline

phab-bot published this revision for review.Dec 6 2025, 6:22 PM
phab-bot changed the visibility from "Custom Policy" to "Public (No Login Required)".
phab-bot changed the edit policy from "Custom Policy" to "Restricted Project (Project)".
phab-bot removed a project: secure-revision.
jdescottes added a project: testing-approved.

Thanks! One small suggestion for the test, but otherwise looks great! I pushed with the remote protocol "preset" (that's mach try --preset remote-protocol) at https://treeherder.mozilla.org/jobs?repo=try&landoCommitID=167690
(should be fine, I ran a similar patch through try a few days ago)

remote/shared/test/xpcshell/test_Navigate.js
700–723

question: I imagine you used TARGET_URI_WITH_HASH to make sure we are taking the url from the event and not the one which might be already set in the webprogress?

Maybe create a TARGET_URI_FROM_NAVIGATION_COMMITTED variable with a slightly different url, to make it completely obvious?

This revision is now accepted and ready to land.Dec 8 2025, 9:51 AM
sajidanwar added inline comments.
remote/shared/test/xpcshell/test_Navigate.js
700–723

Good idea, updated in the new revision!

Perfect! I will land your patch now.