Remove `network.proxy.testing_localhost_is_secure_when_hijacked` to simplify testing
Categories
(Core :: Networking, task, P2)
Tracking
()
People
(Reporter: freddy, Assigned: freddy, NeedInfo)
References
Details
(Whiteboard: [necko-triaged])
Attachments
(1 file, 1 obsolete file)
Bug 1977997 - default pref network_proxy_testing_localhost_is_secure_when_hijacked to true r=kershaw
48 bytes,
text/x-phabricator-request
|
Details | Review |
Common testing tool cypress can not perform testing on APIs that require a localhost because we require the pref network.proxy.testing_localhost_is_secure_when_hijacked
to be true, even though we already have a separate pref to allow hijacking localhost in the first place.
Since the latter is such a very rare thing to set, we should just fold them together.
Assignee | ||
Comment 1•20 days ago
|
||
Updated•20 days ago
|
Comment 4•20 days ago
|
||
Assignee | ||
Comment 5•15 days ago
|
||
Assignee | ||
Comment 6•15 days ago
|
||
Looks like this breaks too much tests. Let's default it to true before we remove it.
Assignee | ||
Updated•15 days ago
|
Updated•15 days ago
|
Comment 9•15 days ago
|
||
Backed out for causing xpcshell failures on test_dns_override_for_localhost.js
Assignee | ||
Comment 10•14 days ago
|
||
Huh, I can't reproduce the failure locally. It just works here flawlessly. Any idea why this shouldn't break on macOS, Kershaw?
Comment 11•14 days ago
|
||
(In reply to Frederik Braun [:freddy] from comment #10)
Huh, I can't reproduce the failure locally. It just works here flawlessly. Any idea why this shouldn't break on macOS, Kershaw?
Ah, that's because that pref (network.proxy.testing_localhost_is_secure_when_hijacked
) is not updated to socket process.
Adding the pref in this list should work.
Comment 12•13 days ago
|
||
Comment 13•13 days ago
|
||
![]() |
||
Comment 14•13 days ago
|
||
Backed out for failing xpcshell's dom/base/test/unit/test_error_codes.js:
https://hg.mozilla.org/integration/autoland/rev/e5b608577ef55642b78df3ad37990f02cede080a
[task 2025-07-25T11:52:44.087+00:00] 11:52:44 WARNING - TEST-UNEXPECTED-FAIL | dom/base/test/unit/test_error_codes.js | xpcshell return code: 0
[task 2025-07-25T11:52:44.089+00:00] 11:52:44 INFO - TEST-INFO took 4324ms
[task 2025-07-25T11:52:44.089+00:00] 11:52:44 INFO - >>>>>>>
[task 2025-07-25T11:52:44.089+00:00] 11:52:44 INFO - (xpcshell/head.js) | test MAIN run_test pending (1)
[task 2025-07-25T11:52:44.090+00:00] 11:52:44 INFO - (xpcshell/head.js) | test pending (2)
[task 2025-07-25T11:52:44.090+00:00] 11:52:44 INFO - (xpcshell/head.js) | test MAIN run_test finished (2)
[task 2025-07-25T11:52:44.091+00:00] 11:52:44 INFO - running event loop
[task 2025-07-25T11:52:44.091+00:00] 11:52:44 INFO - "CONSOLE_MESSAGE: (info) No chrome package registered for chrome://branding/locale/brand.properties"
[task 2025-07-25T11:52:44.091+00:00] 11:52:44 INFO - PID 6012 | Testing error returned by async XHR when the network is offline
[task 2025-07-25T11:52:44.092+00:00] 11:52:44 WARNING - TEST-UNEXPECTED-FAIL | dom/base/test/unit/test_error_codes.js | doAsyncRequest_onError - [doAsyncRequest_onError : 19] 2152398861 == 2152398864
[task 2025-07-25T11:52:44.092+00:00] 11:52:44 INFO - D:/task_175344212125030/build/tests/xpcshell/tests/dom/base/test/unit/test_error_codes.js:doAsyncRequest_onError:19
[task 2025-07-25T11:52:44.092+00:00] 11:52:44 INFO - D:\task_175344212125030\build\tests\xpcshell\head.js:_do_main:245
[task 2025-07-25T11:52:44.092+00:00] 11:52:44 INFO - D:\task_175344212125030\build\tests\xpcshell\head.js:_execute_test:607
[task 2025-07-25T11:52:44.092+00:00] 11:52:44 INFO - -e:null:1
[task 2025-07-25T11:52:44.092+00:00] 11:52:44 INFO - exiting test
[task 2025-07-25T11:52:44.093+00:00] 11:52:44 INFO - PID 6012 | JavaScript error: D:\\task_175344212125030\\build\\tests\\xpcshell\\head.js, line 880: NS_ERROR_ABORT:
[task 2025-07-25T11:52:44.093+00:00] 11:52:44 WARNING - TEST-UNEXPECTED-FAIL | dom/base/test/unit/test_error_codes.js | doAsyncRequest_onLoad - [doAsyncRequest_onLoad : 14] Should have received an error - false == true
[task 2025-07-25T11:52:44.094+00:00] 11:52:44 INFO - D:/task_175344212125030/build/tests/xpcshell/tests/dom/base/test/unit/test_error_codes.js:doAsyncRequest_onLoad:14
[task 2025-07-25T11:52:44.094+00:00] 11:52:44 INFO - D:\task_175344212125030\build\tests\xpcshell\head.js:_do_main:245
[task 2025-07-25T11:52:44.094+00:00] 11:52:44 INFO - D:\task_175344212125030\build\tests\xpcshell\head.js:_execute_test:607
Description
•