Test that browser.dns APIs don't work when the proxy should be handling DNS
Categories
(WebExtensions :: General, task, P1)
Tracking
(firefox80 fixed)
Tracking | Status | |
---|---|---|
firefox80 | --- | fixed |
People
(Reporter: valentin, Assigned: mixedpuppy)
References
Details
(Keywords: dev-doc-complete)
Attachments
(1 file)
(deleted),
text/x-phabricator-request
|
Details |
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
Assignee | ||
Comment 2•4 years ago
|
||
This should also be documented, that DNS will fail with NS_ERROR_UNKNOWN_PROXY_HOST if proxying DNS over socks is enabled.
Comment 4•4 years ago
|
||
Backed out changeset 617c0511e0c8 (bug 1649813) for test_ext_dns.js failures
Backout link: https://hg.mozilla.org/integration/autoland/rev/41d526a96b98d6df1b42da7a7281958a31c84c18
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=309889929&repo=autoland&lineNumber=1863
task 2020-07-15T19:54:06.170Z] 19:54:06 INFO - TEST-START | xpcshell-remote.ini:toolkit/components/extensions/test/xpcshell/test_ext_dns.js
[task 2020-07-15T19:54:08.978Z] 19:54:08 WARNING - TEST-UNEXPECTED-FAIL | xpcshell-remote.ini:toolkit/components/extensions/test/xpcshell/test_ext_dns.js | xpcshell return code: -11
[task 2020-07-15T19:54:08.978Z] 19:54:08 INFO - TEST-INFO took 2814ms
...
...
...
Comment 5•4 years ago
|
||
The following seems to start with the backed out changes:
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=309893246&repo=autoland&lineNumber=1210
Comment 7•4 years ago
|
||
This needs to be disabled with socket-process on.
Comment 8•4 years ago
|
||
Comment 10•4 years ago
|
||
Backed out for awsy proxy failures
backout: https://hg.mozilla.org/integration/autoland/rev/27b9d717a2014ef408dd3e4c7c6175deacf0c8e5
failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=310181392&repo=autoland&lineNumber=747
[task 2020-07-17T15:45:47.205Z] 15:45:47 INFO - starting checkpoint StartSettled...
[task 2020-07-17T15:45:47.707Z] 15:45:47 INFO - checkpoint created, stored in Z:\task_1595000412\build\tests\results\memory-report-StartSettled-0.json.gz
[task 2020-07-17T15:45:47.711Z] 15:45:47 INFO - loading http://localhost:8001/page_load_test/tp5n/thesartorialist.blogspot.com/thesartorialist.blogspot.com/index.html
[task 2020-07-17T15:45:48.067Z] 15:45:48 INFO - TEST-UNEXPECTED-ERROR | awsy/test_memory_usage.py TestMemoryUsage.test_open_tabs | UnknownException: Reached error page: about:neterror?e=proxyResolveFailure&u=http%3A//localhost%3A8001/page_load_test/tp5n/thesartorialist.blogspot.com/thesartorialist.blogspot.com/index.html&c=UTF-8&d=Firefox%20is%20configured%20to%20use%20a%20proxy%20server%20that%20can%E2%80%99t%20be%20found.
[task 2020-07-17T15:45:48.067Z] 15:45:48 INFO - stacktrace:
[task 2020-07-17T15:45:48.067Z] 15:45:48 INFO - WebDriverError@chrome://marionette/content/error.js:175:5
[task 2020-07-17T15:45:48.067Z] 15:45:48 INFO - UnknownError@chrome://marionette/content/error.js:482:5
[task 2020-07-17T15:45:48.068Z] 15:45:48 INFO - handleReadyState@chrome://marionette/content/listener.js:300:13
[task 2020-07-17T15:45:48.068Z] 15:45:48 INFO - handleEvent@chrome://marionette/content/listener.js:266:14
[task 2020-07-17T15:45:48.068Z] 15:45:48 INFO - Traceback (most recent call last):
[task 2020-07-17T15:45:48.068Z] 15:45:48 INFO - File "z:\task_1595000412\build\venv\lib\site-packages\marionette_harness\marionette_test\testcases.py", line 196, in run
[task 2020-07-17T15:45:48.068Z] 15:45:48 INFO - testMethod()
[task 2020-07-17T15:45:48.068Z] 15:45:48 INFO - File "Z:\task_1595000412\build\tests\awsy\awsy\test_memory_usage.py", line 211, in test_open_tabs
[task 2020-07-17T15:45:48.068Z] 15:45:48 INFO - self.open_pages()
[task 2020-07-17T15:45:48.068Z] 15:45:48 INFO - File "z:\task_1595000412\build\venv\lib\site-packages\awsy\awsy_test_case.py", line 404, in open_pages
[task 2020-07-17T15:45:48.068Z] 15:45:48 INFO - self.open_and_focus()
[task 2020-07-17T15:45:48.068Z] 15:45:48 INFO - File "z:\task_1595000412\build\venv\lib\site-packages\awsy\awsy_test_case.py", line 358, in open_and_focus
[task 2020-07-17T15:45:48.068Z] 15:45:48 INFO - self.marionette.navigate(page_to_load)
[task 2020-07-17T15:45:48.068Z] 15:45:48 INFO - File "z:\task_1595000412\build\venv\lib\site-packages\marionette_driver\marionette.py", line 1469, in navigate
[task 2020-07-17T15:45:48.068Z] 15:45:48 INFO - {"url": url})
[task 2020-07-17T15:45:48.068Z] 15:45:48 INFO - File "z:\task_1595000412\build\venv\lib\site-packages\marionette_driver\decorators.py", line 26, in _
[task 2020-07-17T15:45:48.069Z] 15:45:48 INFO - return func(*args, **kwargs)
[task 2020-07-17T15:45:48.069Z] 15:45:48 INFO - File "z:\task_1595000412\build\venv\lib\site-packages\marionette_driver\marionette.py", line 602, in _send_message
[task 2020-07-17T15:45:48.069Z] 15:45:48 INFO - self._handle_error(err)
[task 2020-07-17T15:45:48.069Z] 15:45:48 INFO - File "z:\task_1595000412\build\venv\lib\site-packages\marionette_driver\marionette.py", line 622, in _handle_error
[task 2020-07-17T15:45:48.069Z] 15:45:48 INFO - raise errors.lookup(error)(message, stacktrace=stacktrace)
[task 2020-07-17T15:45:48.069Z] 15:45:48 INFO - TEST-INFO took 31617ms
Comment 11•4 years ago
|
||
Interesting! So we have even more tests that are affected by this change. I'll look at it. Next time through full try even for something this trivial...
Updated•4 years ago
|
Comment 12•4 years ago
|
||
Updated•4 years ago
|
Comment 13•4 years ago
|
||
bugherder |
Comment 14•4 years ago
|
||
Hey Shane, I'm picking up this dev-doc-needed.
Is this the correct page to update? https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/dns
From comment #1 it looks like we need to add the note, "DNS will fail with NS_ERROR_UNKNOWN_PROXY_HOST if proxying DNS over socks is enabled." Is that still correct?
Let me know if anything else is needed!
Assignee | ||
Comment 15•4 years ago
|
||
(In reply to Caitlin Neiman [:caitmuenster] from comment #14)
Hey Shane, I'm picking up this dev-doc-needed.
Is this the correct page to update? https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/dns
From comment #1 it looks like we need to add the note, "DNS will fail with NS_ERROR_UNKNOWN_PROXY_HOST if proxying DNS over socks is enabled." Is that still correct?
Let me know if anything else is needed!
Yes, correct page and message.
Description
•