Closed Bug 1344340 Opened 7 years ago Closed 7 years ago

"An unknown error has occurred (804b000c)" appears in the statusbar when loading some sites

Categories

(Core :: Networking, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla55
Tracking Status
firefox51 --- unaffected
firefox52 --- unaffected
firefox-esr52 --- unaffected
firefox53 --- unaffected
firefox54 + fixed
firefox55 --- fixed

People

(Reporter: stephend, Assigned: dragana)

References

()

Details

(Keywords: regression, Whiteboard: [necko-active])

Attachments

(3 files, 1 obsolete file)

Attached image unknown-error.png
Sorry in advance for not getting a good, specific component; please triage as-needed!

Build ID: Build identifier: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0

STR:

1. Load http://www.wired.com (this happens on other sites, like wiki.mozilla.org)
2. Look at the statusbar on the bottom left (default)

Actual:

Seemingly in-between DNS lookup and the actual 1st connection to the website/resource, you see "An unknown error has occurred (hex)" in the statusbar

Expected:

Not really sure, to be honest
https://dxr.mozilla.org/mozilla-central/search?q=%22An+unknown+error+has+occurred%22
Severity: major → minor
Product: Toolkit → Firefox
Regression window:
https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=08df0e07f0ba02a27e532b25a0d3415166a6bba1&tochange=fb3c9156f1b99c4b08e7c35b98ac27756c357687

fb3c9156f1b9	Patrick McManus — Bug 1340655 - remove h1 pipeline support r=mayhemer
Blocks: 1340655
Severity: minor → normal
Has Regression Range: --- → yes
Has STR: --- → yes
Summary: "An unknown error has occurred" appears in the statusbar when loading some sites → "An unknown error has occurred (804b000c)" appears in the statusbar when loading some sites
Component: General → Networking
Product: Firefox → Core
0x804b000c is NS_ERROR_NOT_CONNECTED, by the way.
Thanks for the research, but I'm going to disagree with the regression analysis - my testing shows this was introduced with bug 1340164 - which makes a lot more sense based on what the patches changed.

using gecko-dev
git checkout a980860d80cca1a2418d46ee0be9f80a921e1e4e~1
this is the cset before 1340655 and I can still see the bug

git checkout 29f090a0d67b4108293a35f8afe4e6395df18209~1
this is the cset before 1340164 and I can't see the bug

(this is a bit confusing because a980860d80cca1a2418d46ee0be9f80a921e1e4e~1 is 29f090a0d67b4108293a35f8afe4e6395df18209 .. they were landed back to back by coincidence)
Blocks: 1340164
No longer blocks: 1340655
Flags: needinfo?(dd.mozilla)
The bug to blame is 1343600. I have added 2 new socket events: so 0x804b000c is NS_NET_STATUS_TLS_HANDSHAKE_STARTING ans 0x804b00d is NS_NET_STATUS_TLS_HANDSHAKE_ENDED.

I will update  the test shown.
Blocks: 1343600
No longer blocks: 1340164
Flags: needinfo?(dd.mozilla)
I am not sure about working. If you have a better suggestion I will change it.
Assignee: nobody → dd.mozilla
Status: NEW → ASSIGNED
Attachment #8843881 - Flags: review?(valentin.gosu)
Keywords: checkin-needed
Whiteboard: [necko-active]
(In reply to Masatoshi Kimura [:emk] from comment #7)
> Why did you use duplicated value with
> NS_ERROR_NOT_CONNECTED/NS_ERROR_CONNECTION_REFUSED?
> https://dxr.mozilla.org/mozilla-central/rev/
> 8d026c60151005ad942e3d4389318fe28a0c8c54/xpcom/base/ErrorList.h#207,210
> https://dxr.mozilla.org/mozilla-central/rev/
> 8d026c60151005ad942e3d4389318fe28a0c8c54/xpcom/base/ErrorList.h#337-338
> 
> Didn't it confuse the status UI?

Status codes do not have anything to do with errors. All almost all our status codes are some errors as well:
NS_NET_STATUS_RESOLVING_HOST is equal to NS_BINDING_REDIRECTED,
NS_NET_STATUS_CONNECTED_TO is equal to NS_BINDING_RETARGETED....

This status code are only different phases of a transaction and not the final status/error of a transaction.
This is a bit confusing, but that is a different bug.

And here is a comment saying that:
https://dxr.mozilla.org/mozilla-central/rev/8d026c60151005ad942e3d4389318fe28a0c8c54/xpcom/base/ErrorList.h#326
Flags: needinfo?(dd.mozilla)
I think the NS_NET_STATUS_ codes used to be associated to SUCCESS(code).
I don't remember when this changed, or why.
Pushed by cbook@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/96f98abacba4
add text for NS_NET_STATUS_TLS_HANDSHAKE_STARTING and NS_NET_STATUS_TLS_HANDSHAKE_ENDED tansport states. r=valentin
Keywords: checkin-needed
landed with correct bug number now, seems the patch here has the wrong one (bug 1343600)
(In reply to Carsten Book [:Tomcat] from comment #11)
> landed with correct bug number now, seems the patch here has the wrong one
> (bug 1343600)

Thanks!!!

Sorry, the other is the bug that caused the regression.
It looks like this have not made it into aurora 54 :(
https://hg.mozilla.org/mozilla-central/rev/96f98abacba4
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Comment on attachment 8843881 [details] [diff] [review]
bug_1344340.patch

Approval Request Comment
[Feature/Bug causing the regression]:1343600
[User impact if declined]: At the bottom right corner we show info about state of a connection,e.g. "Connecting to..", "Sending to..". I have added 2 new ones, tls started and tls ended, but I forgot to add text for it. Therefore users see "An unknown error has occurred (804b000c)" 
[Is this code covered by automated tests?]:no
[Has the fix been verified in Nightly?]:yes
[Needs manual test from QE? If yes, steps to reproduce]: It is easy to reproduce. I have verified it manually.
[List of other uplifts needed for the feature/fix]: None, this one just missed getting into 54 for a little
[Is the change risky?]: none
[Why is the change risky/not risky?]: This only adds 2 strings
[String changes made/needed]: adding 2 strings
Attachment #8843881 - Flags: approval-mozilla-aurora?
I wonder why we don't back that out from aurora instead, but I confess I don't fully understand the scope of bug 1343600 and if it needs to be available on 54.

If release drivers decide this needs to land in aurora, the sooner it happens the better.
(In reply to Francesco Lodolo [:flod] from comment #18)
> I wonder why we don't back that out from aurora instead, but I confess I
> don't fully understand the scope of bug 1343600 and if it needs to be
> available on 54.
> 
> If release drivers decide this needs to land in aurora, the sooner it
> happens the better.

We can back it out. Bug 1343600 is a small change and it is no risk to back it out.
Bug 1343600 fixes resource timing (https://www.w3.org/TR/resource-timing/), i.e. TLS handshake should be part of connect startStart-connectEnd time but it is not accounted at all.
The timing bug is there from beginning it is not a regression.
Hi :dragana, 
I prefer to backout bug 1343600, can you provie a patch to backout 1343600 from aurora?
Flags: needinfo?(dd.mozilla)
Flags: needinfo?(dd.mozilla)
Attachment #8843881 - Flags: approval-mozilla-aurora?
I am not sure if a review is required. This is only a backup of 1343600.
Attachment #8844855 - Attachment is obsolete: true
Attachment #8844856 - Flags: review?(valentin.gosu)
gary, dragana - you should take this uplift in aurora. it's a trivial followon to a real bugfix in the first 2 days of aurora. It doesn't make sense to make our users wait 6 additional weeks for the timing fix.
Comment on attachment 8844856 [details] [diff] [review]
bug_1344340_backup1343600_aurora.patch

Review of attachment 8844856 [details] [diff] [review]:
-----------------------------------------------------------------

typo in commit message backup -> backout
Attachment #8844856 - Flags: review?(valentin.gosu) → review+
Comment on attachment 8844856 [details] [diff] [review]
bug_1344340_backup1343600_aurora.patch

owner privilege - we need to be be flexible enough to fix stuff like this in the first couple days of aurora.
Attachment #8844856 - Flags: review+ → review-
Comment on attachment 8843881 [details] [diff] [review]
bug_1344340.patch

Approval Request Comment
[Feature/Bug causing the regression]:1343600
[User impact if declined]: At the bottom right corner we show info about state of a connection,e.g. "Connecting to..", "Sending to..". I have added 2 new ones, tls started and tls ended, but I forgot to add text for it. Therefore users see "An unknown error has occurred (804b000c)" 
[Is this code covered by automated tests?]:no
[Has the fix been verified in Nightly?]:yes
[Needs manual test from QE? If yes, steps to reproduce]: It is easy to reproduce. I have verified it manually.
[List of other uplifts needed for the feature/fix]: None, this one just missed getting into 54 for a little
[Is the change risky?]: none
[Why is the change risky/not risky?]: This only adds 2 strings
[String changes made/needed]: adding 2 strings
Attachment #8843881 - Flags: approval-mozilla-aurora?
Hi :flod,
There are 2 new strings added in the aurora cycle. If we need to take this, are you ok with it?
Flags: needinfo?(francesco.lodolo)
(In reply to Gerry Chang [:gchang] from comment #28)
> Hi :flod,
> There are 2 new strings added in the aurora cycle. If we need to take this,
> are you ok with it?

Your call at this point (see comment 18).
Flags: needinfo?(francesco.lodolo)
Comment on attachment 8843881 [details] [diff] [review]
bug_1344340.patch

Add strings to show the status at the bottom right corner. Aurora54+.
Attachment #8843881 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Track 54+ as regression.
Thanks all.
Verified FIXED using Build identifier: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: