Bug 1802618 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

**Steps to reproduce**

 1. Do a local android device (arm) build of mozilla-central
 2. Attempt to run a test locally, for example `./mach geckoview-junit org.mozilla.geckoview.test.PanZoomControllerTest`

**Expected results**

The test runs successfully.

**Actual results**

Test run fails with (I've redacted the IP address which is my computer's public IP address):

> FATAL ERROR: Non-local network connections are disabled and a connection attempt to <redacted> (<redacted>) was made.
> You should only access hostnames available via the test networking proxy (if running mochitests) or from a test-specific httpd.js server (if running xpcshell tests). Browser services should be disabled or redirected to a local server.

A more detailed message in `adb logcat` suggests the problematic connection attempt is coming from [services/settings/Utils.jsm](https://searchfox.org/mozilla-central/rev/513d9c0f27c0c3fdc9ed6c5fb222a3f90ae69d70/services/settings/Utils.jsm#280):

> 11-25 21:54:23.886 15911 15932 F MOZ_CRASH: Hit MOZ_CRASH(Attempting to connect to non-local address! opener is [resource://services-settings/Utils.jsm:280:14], uri is [http://<redacted>:8888/dummy-kinto/v1/buckets/monitor/collections/changes/changeset?collection=anti-tracking-url-decoration&bucket=main&_expected=0]) at /home/botond/dev/projects/mozilla/refactoring/netwerk/protocol/http/nsHttpChannel.cpp:6943

This is a somewhat recent (last few weeks) regression, this used to work before. (However, it's not easy to find a regression window because the repro steps involve a local `mach` environment.)
**Steps to reproduce**

 1. Do a local android device (arm) build of mozilla-central
 2. Attempt to run a test locally, for example `./mach geckoview-junit org.mozilla.geckoview.test.PanZoomControllerTest`

**Expected results**

The test runs successfully.

**Actual results**

Test run fails with (I've redacted the IP address which is my computer's public IP address):

> FATAL ERROR: Non-local network connections are disabled and a connection attempt to <redacted> (<redacted>) was made.
> You should only access hostnames available via the test networking proxy (if running mochitests) or from a test-specific httpd.js server (if running xpcshell tests). Browser services should be disabled or redirected to a local server.

A more detailed message in `adb logcat` suggests the problematic connection attempt is coming from [services/settings/Utils.jsm](https://searchfox.org/mozilla-central/rev/513d9c0f27c0c3fdc9ed6c5fb222a3f90ae69d70/services/settings/Utils.jsm#280) (hence I'm filing the bug in the [associated component](https://searchfox.org/mozilla-central/rev/513d9c0f27c0c3fdc9ed6c5fb222a3f90ae69d70/services/settings/moz.build#6)):

> 11-25 21:54:23.886 15911 15932 F MOZ_CRASH: Hit MOZ_CRASH(Attempting to connect to non-local address! opener is [resource://services-settings/Utils.jsm:280:14], uri is [http://<redacted>:8888/dummy-kinto/v1/buckets/monitor/collections/changes/changeset?collection=anti-tracking-url-decoration&bucket=main&_expected=0]) at /home/botond/dev/projects/mozilla/refactoring/netwerk/protocol/http/nsHttpChannel.cpp:6943

This is a somewhat recent (last few weeks) regression, this used to work before. (However, it's not easy to find a regression window because the repro steps involve a local `mach` environment.)

Back to Bug 1802618 Comment 0