Closed Bug 1234875 Opened 9 years ago Closed 8 years ago

Remove alwaysAcceptSessionCookies pref

Categories

(Core :: Networking: Cookies, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla47
Tracking Status
firefox47 --- fixed

People

(Reporter: mak, Assigned: malayaleecoder, Mentored)

References

Details

(Keywords: dev-doc-needed, Whiteboard: [good first bug][lang=cpp])

Attachments

(1 file, 2 obsolete files)

This pref is unused and especially after bug 606655 it makes a lot of sense to just remove it. Indeed mCookiesAlwaysAcceptSession is now only assigned to, but never used.
No longer blocks: 1235199
See Also: → 1235199
Is this bug fixed? Else I would like to work on it!
It is not fixed yet, so feel free to work on it.
Do you already have a working build environment?

The scope here is to remove mCookiesAlwaysAcceptSession and any supporting code:
http://mxr.mozilla.org/mozilla-central/search?string=CookiesAlwaysAcceptSession

plus remove network.cookie.alwaysAcceptSessionCookies from all.js
http://mxr.mozilla.org/mozilla-central/search?string=network.cookie.alwaysAcceptSessionCookies
Assignee: nobody → malayaleecoder
I have got the working environment now. Will fix it as soon as possible and will ping you back!

(In reply to Marco Bonardo [::mak] from comment #2)
> It is not fixed yet, so feel free to work on it.
> Do you already have a working build environment?
> 
> The scope here is to remove mCookiesAlwaysAcceptSession and any supporting
> code:
> http://mxr.mozilla.org/mozilla-central/
> search?string=CookiesAlwaysAcceptSession
> 
> plus remove network.cookie.alwaysAcceptSessionCookies from all.js
> http://mxr.mozilla.org/mozilla-central/search?string=network.cookie.
> alwaysAcceptSessionCookies
Attached patch Bug1234875.diff (obsolete) — Splinter Review
Fix-Version_1
Attachment #8710863 - Flags: review?(mak77)
@marco I have submitted my first patch. Please suggest me some improvements.
Comment on attachment 8710863 [details] [diff] [review]
Bug1234875.diff

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

Please, also remove mCookiesAlwaysAcceptSession from nsCookiePermission.h
Attachment #8710863 - Flags: review?(mak77)
Attached patch Bug1234875-v2.diff (obsolete) — Splinter Review
Bug #1234875 - Version 2
Attachment #8710863 - Attachment is obsolete: true
Attachment #8711129 - Flags: review?(mak77)
@Marco, Very sorry, I had forgotten about nsCookiePermission.h completely. I have added a new patch with author and commit message. Please have a look at it!
Status: NEW → ASSIGNED
Comment on attachment 8711129 [details] [diff] [review]
Bug1234875-v2.diff

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

Thank you, from a code pooint of view this now looks good.
But the patch is still missing author information and the commit message is not in the expected format.

Notice that setting -U in mercurial.ini qnew defaults works only for newly created queue patches.
To properly assign an author to an existing qdiff you should do an hg qref -U (provided you properly set username in Mercurial.ini)
In the final diff file you should see something like:
# HG changeset patch
# User someuser <someuser@somedomain.com>

Also please check again the commit message conventions we use:
https://developer.mozilla.org/en-US/docs/Mercurial/Using_Mercurial#Commit_Message_Conventions

Please attach an updated diff with the missing data, you don't need a further r+.
Attachment #8711129 - Flags: review?(mak77) → review+
Final patch
Thank You Marco for correcting me! I have submitted the final patch.
Attachment #8711129 - Attachment is obsolete: true
Thanks. The author was not correct yet, did you set it manually in the commit message? For the next patch please go through the documentation and try to figure how to do it properly, you really need to set Mercurial.ini correctly or use hg qref -U or hg qref -u "user <user@mail>" when necessary.

I corrected those minor details and pushed the patch.
Yes, I did set it in the commit message. I am still having problems configuring my mercurial. Will fix that ASAP. Thank you very much, @Marco, for getting me started into Bugzilla.
https://hg.mozilla.org/mozilla-central/rev/c79c550405c8
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: