Closed Bug 84241 Opened 23 years ago Closed 23 years ago

Need to disable auto-launch of helper apps by pref

Categories

(SeaMonkey :: General, defect, P1)

x86
Windows NT
defect

Tracking

(Not tracked)

RESOLVED FIXED
mozilla0.9.1

People

(Reporter: phil, Assigned: samir_bugzilla)

Details

(Whiteboard: MUST HAVE; patch; r=vishy; sr=mscott; a=asa)

Attachments

(1 file)

For unfortunate reasons, Netscape needs our commercial builds to ask users before launching helper apps for files downloaded from web servers. The reasons are outlined in http://bugscape.mcom.com/show_bug.cgi?id=5503 and asa@mozilla.org understands them. For mozilla builds, we turn this misfeature off by default, leaving the current behavior in place. So mozilla users can auto-launch apps.
Target Milestone: --- → mozilla0.9.1
mscott sr'd. asa approved. need r=
r=vishy. this is now good to go in.
Keywords: nsbeta1+
Phil and I pre-cleared this with Asa, please check in when ready.
Whiteboard: MUST HAVE; patch; r=vishy; sr=mscott; a=asa
i didn't sr the latest patch that samir posted so it shouldn't say sr=mscott yet =). I have some comments: 1) can you remove the dump statement 2) can you remove the empty function you added called: getForceAlwaysAskPref() 3) It probably doesn't matter much but I wonder if we should default the initialization of alwaysAsk to PR_TRUE instead of false just in case mMimeInfo->GetAlwaysAskBeforeHandling returns an error for some un-expected reason. Better to err on the side of caution in such a scenario. sr=mscott
Scott, Already addressed 1 and 2. I gave item 3 some thought but was not sure what the rationale for initializing it to false was. I agree with the argument we should err on the side of caution. Will incorporate the latter into the next patch and will assume the r, sr, a unless someone feels strongly about seeing the next rev of the patch.
Status: NEW → ASSIGNED
Priority: -- → P1
Checked in to both trunk and branch. Mozilla will remain unaffected since the pref "browser.helperApps.alwaysAsk.force" defaults to false for mozilla.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
+ gAskBeforeOpen.checked = handlerInfo.alwaysAsk == "true" ? true : false; What's the point of the unnecessarily complex ternary operator? Why not just gAskBeforeOpen.checked = handlerInfo.alwaysAsk == "true"?
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: