Closed
Bug 213921
Opened 22 years ago
Closed 22 years ago
[FIX]Backwards assumptions in helper app service could be security issues
Categories
(Core Graveyard :: File Handling, defect, P1)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.5beta
People
(Reporter: bzbarsky, Assigned: bzbarsky)
Details
(Keywords: fixed1.4.4)
Attachments
(2 files)
5.08 KB,
patch
|
Biesinger
:
review+
darin.moz
:
superreview+
|
Details | Diff | Splinter Review |
5.50 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
The assumptions are:
1) Do not prompt unless the datasource says we should (this should be "prompt
unless the datasource says we should not")
2) If the action is unknown, that means we want to launch a helper app (this
should be "if the action is unknown, save to disk")
![]() |
Assignee | |
Comment 1•22 years ago
|
||
![]() |
Assignee | |
Updated•22 years ago
|
Attachment #128522 -
Flags: superreview?(darin)
Attachment #128522 -
Flags: review?(cbiesinger)
![]() |
Assignee | |
Updated•22 years ago
|
Priority: -- → P1
Summary: Backwards assumptions in helper app service could be security issues → [FIX]Backwards assumptions in helper app service could be security issues
Target Milestone: --- → mozilla1.5beta
Comment 2•22 years ago
|
||
Comment on attachment 128522 [details] [diff] [review]
Patch
+ NS_NAMED_LITERAL_STRING(trueString, "true" );
+ NS_NAMED_LITERAL_STRING(falseString, "false" );
could you remove the space before the )
r=biesi with that
Attachment #128522 -
Flags: review?(cbiesinger) → review+
Comment 3•22 years ago
|
||
Comment on attachment 128522 [details] [diff] [review]
Patch
>Index: uriloader/exthandler/nsExternalHelperAppService.cpp
>+ if (stringValue && falseString.Equals(stringValue))
> aMIMEInfo->SetAlwaysAskBeforeHandling(PR_FALSE);
>+ else
>+ aMIMEInfo->SetAlwaysAskBeforeHandling(PR_TRUE);
maybe make the conditional expression an argument to the function so we
don't generate code for two function calls?
aMIMEInfo->SetAlwaysAskBeforeHandling(!stringValue ||
!falseString.Equals(stringValue)));
sr=darin either way
Attachment #128522 -
Flags: superreview?(darin) → superreview+
![]() |
Assignee | |
Comment 4•22 years ago
|
||
Fixed, with darin's suggestion added.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Comment 5•20 years ago
|
||
This patch sort of slipped in during the 1.5 time frame, but I think I'd like
this for the 1.4 branch. Here's a Not much changed, but I'd just like a
sanity check, Boris.
Attachment #175069 -
Flags: review?(bzbarsky)
![]() |
Assignee | |
Updated•20 years ago
|
Attachment #175069 -
Flags: review?(bzbarsky) → review+
Updated•20 years ago
|
Keywords: fixed1.4.4
Updated•9 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•