Closed
Bug 1072722
Opened 11 years ago
Closed 11 years ago
With older clients the new maintenance service checks the updated directory's updater.exe when verifying the updater.exe for replace requests
Categories
(Toolkit :: Application Update, defect)
Tracking
()
RESOLVED
FIXED
mozilla35
People
(Reporter: robert.strong.bugs, Assigned: robert.strong.bugs)
References
Details
Attachments
(1 file)
|
2.06 KB,
patch
|
spohl.mozilla.bugs
:
review+
|
Details | Diff | Splinter Review |
This prevents the service from completing the replace request. It does properly fallback to a UAC prompt but this needs to be fixed before landing the mac v2 signing changes. Glad I caught this!
| Assignee | ||
Comment 1•11 years ago
|
||
The maintenance service wasn't correctly checking the command line for old versions of Firefox for replace requests and hence was failing.
Attachment #8495045 -
Flags: review?(spohl.mozilla.bugs)
| Assignee | ||
Comment 2•11 years ago
|
||
Pushed to oak
https://hg.mozilla.org/projects/oak/rev/2050a94fd07e
| Assignee | ||
Comment 3•11 years ago
|
||
I verified this does the right thing with Firefox Beta and Thunderbird Release as well as still does the right thing with oak.
Comment 4•11 years ago
|
||
Comment on attachment 8495045 [details] [diff] [review]
patch rev1
Review of attachment 8495045 [details] [diff] [review]:
-----------------------------------------------------------------
Good catch! Just one nit below.
::: toolkit/components/maintenanceservice/workmonitor.cpp
@@ +124,5 @@
> static bool
> IsOldCommandline(int argc, LPWSTR *argv)
> {
> return argc == 4 && !wcscmp(argv[3], L"-1") ||
> + argc >= 4 && (wcsstr(argv[3], L"/replace") || IsDigits(argv[3]));
I would prefer if the |IsDigits| condition stayed on its own separate line to better conform with our coding style[1], namely: "Break long conditions after && and || logical connectives.". I think it makes the three conditions more obvious.
I'd also accept putting parenthesis around each condition to make the precedence between && and || obvious to new contributors, but it's your call and separate lines may already achieve this.
[1] https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Coding_Style#Control_Structures
Attachment #8495045 -
Flags: review?(spohl.mozilla.bugs) → review+
Comment 5•11 years ago
|
||
Comment on attachment 8495045 [details] [diff] [review]
patch rev1
Review of attachment 8495045 [details] [diff] [review]:
-----------------------------------------------------------------
::: toolkit/components/maintenanceservice/workmonitor.cpp
@@ +124,5 @@
> static bool
> IsOldCommandline(int argc, LPWSTR *argv)
> {
> return argc == 4 && !wcscmp(argv[3], L"-1") ||
> + argc >= 4 && (wcsstr(argv[3], L"/replace") || IsDigits(argv[3]));
I just realized that you made the |argc >= 4| apply to both |wcsstr| and |IsDigits| via the extra parenthesis around |wcsstr| and |IsDigits|, so please ignore my comment.
| Assignee | ||
Comment 6•11 years ago
|
||
Pushed to fx-team
https://hg.mozilla.org/integration/fx-team/rev/be53b555dda6
Comment 7•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla35
| Assignee | ||
Comment 8•11 years ago
|
||
Landed on aurora in the Mac V2 signing combined patch in bug 1047584
status-firefox34:
--- → fixed
status-firefox35:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•