Open Bug 1977997 Opened 20 days ago Updated 13 days ago

Remove `network.proxy.testing_localhost_is_secure_when_hijacked` to simplify testing

Categories

(Core :: Networking, task, P2)

task

Tracking

()

ASSIGNED

People

(Reporter: freddy, Assigned: freddy, NeedInfo)

References

Details

(Whiteboard: [necko-triaged])

Attachments

(1 file, 1 obsolete file)

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: nobody → fbraun
Status: NEW → ASSIGNED
Pushed by fbraun@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/83542923f965 https://hg.mozilla.org/integration/autoland/rev/a4763f31fcc8 remove pref network_proxy_testing_localhost_is_secure_when_hijacked r=kershaw,necko-reviewers
Pushed by chorotan@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/61abc5ae450e https://hg.mozilla.org/integration/autoland/rev/cea08b0fc91a Revert "Bug 1977997 - remove pref network_proxy_testing_localhost_is_secure_when_hijacked r=kershaw,necko-reviewers" for causing netwerk related failures

Backed out for causing xpcshell failures

Backout link

Push with failures

Failure log

Flags: needinfo?(fbraun)

Looks like this breaks too much tests. Let's default it to true before we remove it.

Flags: needinfo?(fbraun)
Attachment #9501472 - Attachment is obsolete: true
Pushed by fbraun@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/715d24501242 https://hg.mozilla.org/integration/autoland/rev/fa2581954aba default pref network_proxy_testing_localhost_is_secure_when_hijacked to true r=kershaw,necko-reviewers
Pushed by chorotan@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/8628d0d99841 https://hg.mozilla.org/integration/autoland/rev/a81b1baa12b9 Revert "Bug 1977997 - default pref network_proxy_testing_localhost_is_secure_when_hijacked to true r=kershaw,necko-reviewers" for causing xpcshell failures on test_dns_override_for_localhost.js

Backed out for causing xpcshell failures on test_dns_override_for_localhost.js

Backout link

Push with failures

Failure log

Flags: needinfo?(fbraun)

Huh, I can't reproduce the failure locally. It just works here flawlessly. Any idea why this shouldn't break on macOS, Kershaw?

Flags: needinfo?(fbraun) → needinfo?(kershaw)

(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.

Flags: needinfo?(kershaw)
Pushed by fbraun@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/47dedd5d27d2 https://hg.mozilla.org/integration/autoland/rev/4c5aafeb4340 default pref network_proxy_testing_localhost_is_secure_when_hijacked to true r=kershaw,necko-reviewers
Severity: -- → N/A
Priority: -- → P2
Whiteboard: [necko-triaged]
Pushed by archaeopteryx@coole-files.de: https://github.com/mozilla-firefox/firefox/commit/a663649b6874 https://hg.mozilla.org/integration/autoland/rev/e5b608577ef5 Revert "Bug 1977997 - default pref network_proxy_testing_localhost_is_secure_when_hijacked to true r=kershaw,necko-reviewers" for failing xpcshell's dom/base/test/unit/test_error_codes.js

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
Flags: needinfo?(fbraun)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: