Closed Bug 1623284 Opened 6 years ago Closed 1 year ago

No error message for secure cookie denying overwriting by nonsecure cookie

Categories

(Core :: Networking: Cookies, defect, P3)

74 Branch
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: jab_creations, Unassigned)

References

Details

(Keywords: good-first-bug, Whiteboard: [necko-triaged])

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0 Waterfox/56.3

Steps to reproduce:

I filed bug 1617361 (https://bugzilla.mozilla.org/show_bug.cgi?id=1617361) and it was discovered that the error message "W/cookie rejected because cookie can't save because older cookie is secure cookie but newer cookie is non-secure cookie" is NOT displayed in the normal developer console at any point.

That bug apparently occurs when a nonsecure cookie attempts to override a secure cookie.

Actual results:

No error message is displayed and the developer only notices the bug if it afflicts behavior enough.

Expected results:

The developer console should issue an explicit error message.

In fact any errors happening in the advanced networking log (about:networking#logging) should ALWAYS be explicitly sent to the normal developer console (properly classified: errors to errors, warnings to warnings).

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Networking: Cookies
Product: Firefox → Core
Priority: -- → P3
Whiteboard: [necko-triaged]

Because this bug's Severity has not been changed from the default since it was filed, and it's Priority is P3 (Backlog,) indicating it has been triaged, the bug's Severity is being updated to S3 (normal.)

Severity: normal → S3

Probably good-first-bug

Keywords: good-first-bug

From what I can see, the issue may be resolved. Firefox 127.0 shows the appropriate message if a non-secure connection tries to override a cookie with Secure flag (see attachment):

Cookie “id” has been rejected because there is an existing “secure” cookie.

Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: