# Firefox experiences Network Protocol Violation on Discourse based Websites

**URL:** https://meta.discourse.org/t/firefox-experiences-network-protocol-violation-on-discourse-based-websites/97308
**Category:** Support
**Created:** [9월 16, 2018, 9:23오후 UTC](https://meta.discourse.org/t/firefox-experiences-network-protocol-violation-on-discourse-based-websites/97308 "2018-09-16T21:23:30Z")
**Posts on this page:** 16
**Page:** 4

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [10월 26, 2018, 4:25오후 UTC](https://meta.discourse.org/t/firefox-experiences-network-protocol-violation-on-discourse-based-websites/97308/64 "2018-10-26T16:25:14Z")

</div>

@sloxy, please wrap the code/logs in code blocks, not quotes. Add 3 backticks on their own line above and below the code:

```
```
code goes here
more code
code
```
```

---

<div class="post-metadata">

### Author: ![sloxy](https://avatars.discourse-cdn.com/v4/letter/s/d2c977/32.png) [@sloxy](https://meta.discourse.org/u/sloxy)
#### Post date: [10월 26, 2018, 6:33오후 UTC](https://meta.discourse.org/t/firefox-experiences-network-protocol-violation-on-discourse-based-websites/97308/65 "2018-10-26T18:33:12Z")

</div>

I attempted to debug the service worker in FF by setting breakpoints in it to see if I could dig deeper.  
I gave up after 2 straight hours.  
Debugging service workers in Firefox is horribly broken…

---

<div class="post-metadata">

### Author: ![sloxy](https://avatars.discourse-cdn.com/v4/letter/s/d2c977/32.png) [@sloxy](https://meta.discourse.org/u/sloxy)
#### Post date: [10월 26, 2018, 8:33오후 UTC](https://meta.discourse.org/t/firefox-experiences-network-protocol-violation-on-discourse-based-websites/97308/66 "2018-10-26T20:33:42Z")

</div>

After some more testing, I am confident the issue I’m seeing is caused by the firefox extension ‘uMatrix’ just being enabled(even with clojureverse on whitelist).

In same session, have enabled & disabled the extension all the while loading google.com, then clojureverse.org

Without fail, I get that error everytime when uMatrix is enabled and never when it’s disabled.  
i can also consistently repro it against https://elixirforum.com

@OvermindDL1 you mentioned you had disabled uMatrix and still got message? is this 100%? i’ve been enabling & disabling it in same session(no browser restart needed) and only get that message when uMatrix is enabled (never when it’s disabled)

---

<div class="post-metadata">

### Author: ![GregoriusTech](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gregoriustech/32/111217_2.png) [@GregoriusTech](https://meta.discourse.org/u/GregoriusTech)
#### Post date: [10월 26, 2018, 8:54오후 UTC](https://meta.discourse.org/t/firefox-experiences-network-protocol-violation-on-discourse-based-websites/97308/67 "2018-10-26T20:54:40Z")

</div>

I have uMatrix too and it still happens when I disable it entirely (both with that “Power” looking button in it, and when I disable the extension from the Firefox Extension List), every time I check back on this Page to see how the Bug is being treated I have to spam click the bookmark just to get here because of the Corrupted Content Issue.

---

<div class="post-metadata">

### Author: ![sloxy](https://avatars.discourse-cdn.com/v4/letter/s/d2c977/32.png) [@sloxy](https://meta.discourse.org/u/sloxy)
#### Post date: [10월 26, 2018, 9:46오후 UTC](https://meta.discourse.org/t/firefox-experiences-network-protocol-violation-on-discourse-based-websites/97308/68 "2018-10-26T21:46:26Z")

</div>

> [@GregoriusTech](#):
>
> both with that “Power” looking button in it, and when I disable the extension from the Firefox Extension List)

i’m stepping through the uMatrix extension now - it’s net code will get called regardless of that power button switch.

@GregoriusTech just to humour me, can you do the exact following:

1. only have 1 firefox window with 2 tabs open (1 will be the ‘Add-Ons’ FF page, the other will be the tab we load pages in)
2. in tab1, open the firefox add-ons page (about:addons)  
in tab2, open up google.com
3. in tab1, ensure ‘uMatrix’ is **enabled**  
in tab2, go to whatever url causes issue (from here on, _urlX_)
4. in tab1, **disable** uMatrix  
in tab2, go to google.com
5. in tab2, go to _urlX_

does it load?  
if yes, repeat steps 2 to 5 to confirm.

you can use clojureverse.org as _urlX_ (issue happens with no login needed)

---

<div class="post-metadata">

### Author: ![GregoriusTech](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gregoriustech/32/111217_2.png) [@GregoriusTech](https://meta.discourse.org/u/GregoriusTech)
#### Post date: [10월 26, 2018, 10:45오후 UTC](https://meta.discourse.org/t/firefox-experiences-network-protocol-violation-on-discourse-based-websites/97308/69 "2018-10-26T22:45:23Z")

</div>

Interesting, it actually loads both that Site and meta.discourse when i disable uMatrix again. Now I’m confused as to why…

I wonder if it is for the same reason the whole Issue fixed itself on my own Discourse Site out of nowhere (without even updating Discourse since then), yet I still had it here on meta.

Maybe uMatrix updated in the meantime and that fixed a part of this Issue, but I dont get how my first uMatrix disabling Test (that also did the about:addons Stuff) did not fix the Issue when I did that a few weeks ago…

Well, right now it seems to be a pure uMatrix Issue, but a few weeks ago it wasn’t. You’re stepping through the whole code right now so I guess you will find something that can be fixed somehow to make it work again.

---

<div class="post-metadata">

### Author: ![sloxy](https://avatars.discourse-cdn.com/v4/letter/s/d2c977/32.png) [@sloxy](https://meta.discourse.org/u/sloxy)
#### Post date: [10월 26, 2018, 11:15오후 UTC](https://meta.discourse.org/t/firefox-experiences-network-protocol-violation-on-discourse-based-websites/97308/70 "2018-10-26T23:15:59Z")

</div>

i’m not sure - just back from a rabbit hole. it may be either:  
a) uMatrix  
b) Firefox (uMatrix may be innocent - see [uMatrix is causing iframe data to be mangled in the latest version of chrome · Issue #912 · gorhill/uMatrix · GitHub](https://github.com/gorhill/uMatrix/issues/912) which unearthed Chromium bug itself [https://bugs.chromium.org/p/chromium/issues/detail?id=801237](https://bugs.chromium.org/p/chromium/issues/detail?id=801237))  
d) the SSL setup for certain discourse sites that have multiple SANs (cloudflare?)  
e) discourse service worker

here’s a screencast for ref for non windows/FF people(can safely be watched at 2x speed): [https://www.youtube.com/watch?v=cU6OGHqxzDA](https://www.youtube.com/watch?v=cU6OGHqxzDA)

debugging FF extension is pretty easy: go to about:debugging, then for uMatrix, select ‘debug’. accept prompts. set breakpoints etc. and visit something. haven’t seen anything obvious.

---

<div class="post-metadata">

### Author: ![sloxy](https://avatars.discourse-cdn.com/v4/letter/s/d2c977/32.png) [@sloxy](https://meta.discourse.org/u/sloxy)
#### Post date: [10월 27, 2018, 9:14오전 UTC](https://meta.discourse.org/t/firefox-experiences-network-protocol-violation-on-discourse-based-websites/97308/71 "2018-10-27T09:14:22Z")

</div>

to add another data point: all those sites behave fine in Chrome with uMatrix.

edit:  
added bug to FF: [1502606 - Failed to load . A ServiceWorker passed a promise to FetchEvent.respondWith() that rejected with ‘Error: TypeError: NetworkError when attempting to fetch resource.’.](https://bugzilla.mozilla.org/show_bug.cgi?id=1502606)  
added bug to uMatrix: [Corrupted Content error when using uMatrix with Firefox on discourse forum websites · Issue #79 · uBlockOrigin/uMatrix-issues · GitHub](https://github.com/uBlockOrigin/uMatrix-issues/issues/79) which ended up being dupe of ["Corrupted Content Error" · Issue #72 · uBlockOrigin/uMatrix-issues · GitHub](https://github.com/uBlockOrigin/uMatrix-issues/issues/72) which is set to be included in next release of uMatrix  
uploaded video of new FF profile with just uMatrix add on installed: [https://youtu.be/1ap\_Fx3IK\_8](https://youtu.be/1ap_Fx3IK_8)

edit2:  
just tried the [1.3.15rc1] RC for uMatrix ([Releases · gorhill/uMatrix · GitHub](https://github.com/gorhill/uMatrix/releases)) and cannot repro issue. looks solved for me for now.

---

<div class="post-metadata">

### Author: ![GregoriusTech](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gregoriustech/32/111217_2.png) [@GregoriusTech](https://meta.discourse.org/u/GregoriusTech)
#### Post date: [10월 28, 2018, 12:41오후 UTC](https://meta.discourse.org/t/firefox-experiences-network-protocol-violation-on-discourse-based-websites/97308/72 "2018-10-28T12:41:37Z")

</div>

I guess I have to wait until uMatrix auto-updates the extension? It does auto-update, right? I really hope it does and I dont have to re-install it to get it, because that would mean that a lot of people with older versions of it would continue to get the same Issue.

Well, once the Update is out proper, and it works as described, I will come back and mark that Post as Solution.

Edit: Or not, I can wait regardless. 😉

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [10월 28, 2018, 12:44오후 UTC](https://meta.discourse.org/t/firefox-experiences-network-protocol-violation-on-discourse-based-websites/97308/73 "2018-10-28T12:44:53Z")

</div>

> [@GregoriusTech](#):
>
> that Post as Solution

No. That uMatrix extension might be _a_ cause, but it’s not the _only_ thing that is causing this.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [10월 28, 2018, 3:50오후 UTC](https://meta.discourse.org/t/firefox-experiences-network-protocol-violation-on-discourse-based-websites/97308/74 "2018-10-28T15:50:57Z")

</div>

I also managed to repro this issue by setting Firefox to use a SOCKS 4 proxy while the proxy service is off, so it’s impossible to load the page. I get the same corrupted content error. So one more point to:

> [@Falco](#):
>
> Firefox is throwing this error around (Corrupted Content) for any network level error that happens in a fetch inside a service worker

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [10월 29, 2018, 5:31오전 UTC](https://meta.discourse.org/t/firefox-experiences-network-protocol-violation-on-discourse-based-websites/97308/75 "2018-10-29T05:31:55Z")

</div>

Despite this not being our bug, I still feel our failure mode has regressed in the application for no real benefit.

I took steps now to only have `fetch` interception (where requests goes out via service worker) enabled only on Android which was the reason we built this in the first place.

Over the past 6 months or so this has generated way too much support so feel it is time to kill off the pain.

[https://github.com/discourse/discourse/commit/f8305f53c787ad0b6cd865d56a7b8b0f77f9dcc2](https://github.com/discourse/discourse/commit/f8305f53c787ad0b6cd865d56a7b8b0f77f9dcc2)

---

<div class="post-metadata">

### Author: ![sloxy](https://avatars.discourse-cdn.com/v4/letter/s/d2c977/32.png) [@sloxy](https://meta.discourse.org/u/sloxy)
#### Post date: [10월 29, 2018, 9:41오전 UTC](https://meta.discourse.org/t/firefox-experiences-network-protocol-violation-on-discourse-based-websites/97308/76 "2018-10-29T09:41:49Z")

</div>

> [@GregoriusTech](#):
>
> I guess I have to wait until uMatrix auto-updates the extension? It does auto-update, right?

yes, extensions, by default, are set to auto update.

from about:addons

 ![image](https://global.discourse-cdn.com/meta/original/3X/7/2/725d84c96193df430e091950e3cfcf432b531145.png)

entries with default value are not bolded in about:config

 ![image](https://global.discourse-cdn.com/meta/original/3X/f/0/f07484531c2514d429ff149a3bb63fd731154f18.png)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [10월 29, 2018, 10:01오전 UTC](https://meta.discourse.org/t/firefox-experiences-network-protocol-violation-on-discourse-based-websites/97308/77 "2018-10-29T10:01:21Z")

</div>

Either that or just update Discourse which bypassed Firefox for this feature

---

<div class="post-metadata">

### Author: ![GregoriusTech](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gregoriustech/32/111217_2.png) [@GregoriusTech](https://meta.discourse.org/u/GregoriusTech)
#### Post date: [10월 29, 2018, 12:17오후 UTC](https://meta.discourse.org/t/firefox-experiences-network-protocol-violation-on-discourse-based-websites/97308/79 "2018-10-29T12:17:18Z")

</div>

Yay it works now, and it wasn’t uMatrix that fixed it, because the first time I opened the Page it still errored (since it was the old Serviceworker from yesterday), but so far nothing broke after that, even after restarting Firefox just to make sure.

I guess this is safe to be marked as solved now, but since I got vetoed last time, I will leave it to the Moderators. 😉

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [10월 29, 2018, 3:24오후 UTC](https://meta.discourse.org/t/firefox-experiences-network-protocol-violation-on-discourse-based-websites/97308/80 "2018-10-29T15:24:17Z")

</div>



[이전 페이지](https://meta.discourse.org/t/firefox-experiences-network-protocol-violation-on-discourse-based-websites/97308.md?page=3)
