Closed Bug 140149 Opened 22 years ago Closed 22 years ago

Disable cookies pref for MailNews disappears on 2nd app launch (MAC OS X ONLY).

Categories

(MailNews Core :: Security, defect)

PowerPC
macOS
defect
Not set
major

Tracking

(Not tracked)

VERIFIED FIXED
mozilla1.0.1

People

(Reporter: stephend, Assigned: naving)

Details

(Whiteboard: [adt2 rtm])

Attachments

(1 file)

Build ID: 2002-04-25-08 Trunk Mozilla, Mac OS X 10.1.4

Summary: Disable cookies pref for Mailnews disappears on 2nd app launch (MAC ONLY).

This is _so_ strange, but here goes:

Steps to Reproduce:

After deleting both the Documents:Mozilla folder on OS X and my profile, then
running Mozilla, the 1st time I've launched the build, the preference 'Disable
cookies in Mail & Newsgroups' and the checkbox are both existent.

However, the 2nd time I launch the app, that whole pref just disappears from the
UI.  The pref isn't gone - it still exists in all.js.

For some reason, this JS routine is failing to find out if we have Mail
installed on Mac OS X 10.1.3 and Mac OS 9.2.2

pref-cookies.xul:

+    // if mailnews is installed then we will have
networkCookieBehaviorForMailNews checkbox
+    if (document.getElementById('networkDisableCookieForMailNews'))
+    {
+      var networkDisableCookieForMailNews =
document.getElementById("networkDisableCookieForMailNews");
+      networkDisableCookieForMailNews.disabled = cookieBehavior.value ==
cookies_disabled; 
+    }

I'm also wondering if there is some mac-centricness going on with:

mailPrefsOverlay.xul

where once we've gotten the pref's state, we insert this into the UI:

+  <page id="cookiesPanel">
+    <checkbox id="networkDisableCookieForMailNews"
+              label="&disableCookieForMailNews.label;"
accesskey="&disableCookieForMailNews.accesskey;"
+              pref="true" preftype="bool"
prefstring="network.cookie.disableCookieForMailNews"
+              prefattribute="checked"
insertafter="networkCookieBehaviorSeparator"/>
+  </page>

Sorry to ramble/guess - here's the full patch:

http://bugzilla.mozilla.org/showattachment.cgi?attach_id=78375
Over to Navin who implemented this feature. 
Assignee: mstoltz → naving
QA Contact: junruh → stephend
Is this just MAC OSX or Mac OS 9 also ?
From comment 1 - 

For some reason, this JS routine is failing to find out if we have Mail
installed on Mac OS X 10.1.3 and Mac OS 9.2.2

Both.
nsbeta1+ per mail triage.  Is this happening on the branch using an NS build? 
If not, please remove the nsbeta1+ and adt markings.
Keywords: nsbeta1nsbeta1+
Whiteboard: [adt2 rtm]
Yes, still occuring with the 5-17 Mozilla1.0.0 Commercial Branch build on OS X
10.1.4.
Attached patch proposed fixSplinter Review
This patch fixes the problem on MAC OS X commercial. I think it is because pref
by default is false on commerical build and MAC does not like this(it seems).
cavin, can I get a review, thx.
bhuvan, can I get r=? thx
Comment on attachment 84687 [details] [diff] [review]
proposed fix

r=bhuvan
Attachment #84687 - Flags: review+
Comment on attachment 84687 [details] [diff] [review]
proposed fix

sr=mscott
Attachment #84687 - Flags: superreview+
fixed on trunk
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Keywords: adt1.0.0
Sorry, this still isn't fixed on trunk builds:

Mac OS 9.2.2 - 2002-05-24-03
Mac OS X 10.1.4 - 2002-05-24-08

In fact, I no longer ever see the pref, as opposed to seeing it manifest the 1st
time, then disappear upon app relaunch.

Re-opening.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
removing the nomination since it isn't fixed on the trunk.
Keywords: adt1.0.0
This is fixed on mac os 9.x. I will have to try MAC OS X. 
Summary: Disable cookies pref for MailNews disappears on 2nd app launch (MAC ONLY). → Disable cookies pref for MailNews disappears on 2nd app launch (MAC OS X ONLY).
Only on the trunk - on the branch, OS 9.2.2 displays this pref the 1st time, but
on relaunch it disappears, as well.  Sigh.
This fix was never checked on the branch.
ah, yes, right!  good thing it works now on OS 9.2.2 then.
It sounds like this actually works on the trunk, so I think this can marked
verified.  Nominating for branch.
Indeed it is, I'll now mark it as such.  What happened to make this work all of
a sudden?
Status: REOPENED → RESOLVED
Closed: 22 years ago22 years ago
Resolution: --- → FIXED
Verified on trunk with build:

2002-06-05-08, Mac OS X 10.1.5
Status: RESOLVED → VERIFIED
adding adt1.0.1+.  Please get drivers approval before checking into the branch.
Keywords: adt1.0.1adt1.0.1+
Attachment #84687 - Flags: approval+
Target Milestone: --- → mozilla1.0.1
Navin, can you check this in ASAP to the branch.
The branch is currently closed. I'll check it in, once it reopens.
fixed on branch.
Verified FIXED with:

Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.0.0) Gecko/20020613
Netscape/7.0b1

on Mac OS X 10.1.5
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: