Remove FTP proxying support
Categories
(Remote Protocol :: Marionette, task)
Tracking
(firefox90 fixed)
Tracking | Status | |
---|---|---|
firefox90 | --- | fixed |
People
(Reporter: valentin, Assigned: whimboo)
References
Details
Attachments
(2 files, 1 obsolete file)
Reporter | ||
Comment 1•3 years ago
|
||
Depends on D111247
Updated•3 years ago
|
Assignee | ||
Comment 2•3 years ago
|
||
When removing the support for FTP proxies we should return a proper InvalidArgument
error for the New Session
command, and note that this kind of proxy is no longer available.
As of now I assume we don't have to do anything for geckodriver given that we want to keep backward compatibility. But maybe we could add a comment in which Firefox release the support has been removed, so that we can eventually already return that error on the driver side without having to launch Firefox. Or we could already check for the version?
James, is there anything else that would need to be done that I missed above?
Comment 3•3 years ago
|
||
That sounds right. On the GeckoDriver side we currently allow any proxy settings and rely on marionette to interpret them: https://searchfox.org/mozilla-central/source/testing/geckodriver/src/capabilities.rs#177 We could make that check for an ftp*
field and perform a maximum version check, but I suspect this isn't used enough to make it worthwhile.
Assignee | ||
Comment 4•3 years ago
|
||
Valentin, does the landing of this patch block all the other patches in the stack? Maybe we should uncouple it for now? I might not have time to do a further check before next week.
Reporter | ||
Comment 5•3 years ago
|
||
The test will fail if I land it without this.
I can land the test changes if that's OK, followed by removing the proxy settings support.
Reporter | ||
Comment 6•3 years ago
|
||
Depends on D111252
Assignee | ||
Comment 7•3 years ago
|
||
(In reply to Valentin Gosu [:valentin] (he/him) from comment #5)
The test will fail if I land it without this.
I can land the test changes if that's OK, followed by removing the proxy settings support.
I think that' fine. Can you please move the test removal patch over to the other bug then? That way we can keep this bug for the ftp proxy removal, and we will take care of the remaining bits hopefully soon. Thanks.
Comment 8•3 years ago
|
||
Comment on attachment 9217329 [details]
Bug 1703805 - Don't check marionette FTP proxy support in test_session.js r=whimboo
Revision D112906 was moved to bug 1574475. Setting attachment 9217329 [details] to obsolete.
Updated•3 years ago
|
Reporter | ||
Comment 9•3 years ago
|
||
(In reply to Henrik Skupin (:whimboo) [⌚️UTC+1] from comment #7)
(In reply to Valentin Gosu [:valentin] (he/him) from comment #5)
The test will fail if I land it without this.
I can land the test changes if that's OK, followed by removing the proxy settings support.I think that' fine. Can you please move the test removal patch over to the other bug then? That way we can keep this bug for the ftp proxy removal, and we will take care of the remaining bits hopefully soon. Thanks.
Thanks!
Updated•3 years ago
|
Assignee | ||
Comment 11•3 years ago
|
||
Valentin, did we actually get rid of any FTP related code? We also still have the following ftp schema specific code for handling cookies:
https://searchfox.org/mozilla-central/rev/716d7cd80b3dcd81c005ad13b51d3e6a85bd7e73/testing/marionette/driver.js#1964
I assume this also needs an update?
Reporter | ||
Comment 12•3 years ago
|
||
Yes, the FTP code was removed in bug 1574475.
There are a few follow-ups needed. That one should not cause any problems, but should be fixed either way.
Assignee | ||
Comment 13•3 years ago
|
||
Thanks. As it looks like this check is wrong anyway because the HTML spec says:
A Document object that falls into one of the following conditions is a cookie-averse Document object:
A Document object whose browsing context is null.
A Document whose URL's scheme is not an HTTP(S) scheme.
So FTP
should have never been accepted anyway, and as such can easily be removed.
Updated•3 years ago
|
Assignee | ||
Comment 14•3 years ago
|
||
Depends on D111256
Comment 15•3 years ago
|
||
Pushed by hskupin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/cf0e44b8205e Remove marionette FTP proxying support. r=marionette-reviewers,webdriver-reviewers,jdescottes https://hg.mozilla.org/integration/autoland/rev/644af69790cb [wdspec] Added "Add Cookie" WebDriver tests for invalid cookie domain. r=webdriver-reviewers,jdescottes
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/28975 for changes under testing/web-platform/tests
Comment 17•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/cf0e44b8205e
https://hg.mozilla.org/mozilla-central/rev/644af69790cb
Upstream PR merged by moz-wptsync-bot
Updated•1 year ago
|
Description
•