Closed Bug 1274319 Opened 9 years ago Closed 9 years ago

[Elevated Update] Fast Elevation Cancel hangs Firefox

Categories

(Toolkit :: Application Update, defect)

Unspecified
macOS
defect
Not set
major

Tracking

()

RESOLVED FIXED
Tracking Status
firefox49 --- affected

People

(Reporter: aflorinescu, Assigned: spohl)

References

Details

Attachments

(1 file, 1 obsolete file)

[Description]: If at the point when the elevated authentication window is displayed a fast cancel is pressed, Nightly will hang. [Steps to Reproduce]: 1. Install Nightly from Admin account. 2. Switch to standard account. 3. Check for update, download and restart to update. 4. When the elevated authentication window is displayed press a fast Cancel. [Actual Result]: The loading panel remains stuck. [Expected Result]: The loading panel is closed and Nightly process doesn't hang.
Blocks: 394984
Attached patch Patch (obsolete) — Splinter Review
The issue is identical to what we've fixed in bug 1268475 for |ObtainUpdaterArguments|. This time it's |CleanupElevatedMacUpdate| that may fail to connect to the unelevated update process if the elevation dialog gets dismissed too quickly. These two functions are the only two that suffer from this problem. I've refactored the code a bit to make this cleaner.
Assignee: nobody → spohl.mozilla.bugs
Status: NEW → ASSIGNED
Attachment #8754510 - Flags: review?(mstange)
Attachment #8754510 - Flags: review?(mstange) → review+
https://hg.mozilla.org/projects/oak/rev/d0433d871cf8a7aa43dfbcbe245f2d41e9046a74 Bug 1274319: Allow elevated updater on OSX to make 10 IPC connection attempts to the unelevated updater. r=mstange CLOSED TREE
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Flags: needinfo?(adrian.florinescu)
Resolution: --- → FIXED
Verified the fix and the issue is still reproducible; reopening issue.
Status: RESOLVED → REOPENED
Flags: needinfo?(adrian.florinescu)
Resolution: FIXED → ---
Severity: normal → major
Attached patch PatchSplinter Review
The previous patch fixed the updater binary. However, in the case reported here, it is actually the Firefox process that tries to launch the privileged helper tool and causes the elevation dialog to display. Hence, it is Firefox's responsibility to clean up the unelevated updater process if the user cancels the elevation dialog. This patch adds the same fix to toolkit/xre/MacLaunchHelper.mm. Sorry to bother you again, Markus. We should be in the clear now.
Attachment #8754510 - Attachment is obsolete: true
Attachment #8755095 - Flags: review?(mstange)
https://hg.mozilla.org/projects/oak/rev/fac56d4f0fd7e86d04f5bd397dc576ef9ddf19ac Bug 1274319: Allow elevated updater on OSX to make 10 IPC connection attempts to the unelevated updater. r=mstange
Attachment #8755095 - Flags: review?(mstange) → review+
Status: REOPENED → RESOLVED
Closed: 9 years ago9 years ago
Flags: needinfo?(adrian.florinescu)
Resolution: --- → FIXED
Hi Stephen, I verified this issue on Mac OS 10.9, 10.10 and 10.11 with the build from comment 7. On OS 10.10 I couldn't reproduce the issue but on the other systems it can be reproduced. The actual results are the same: the loading panel remains stuck after the cancellation. Please note that I also tested OS 10.10 on MacBook and the issue doesn't reproduce!? I will retest this issue as soon as the feature becomes available in the Nightly build.
Flags: needinfo?(adrian.florinescu)
When you verify this on Nightly, please make sure to check the console and the update log for any messages if the issue reproduces.
https://hg.mozilla.org/integration/mozilla-inbound/rev/ba0982c4e30cfbc79ef1f4e25c4a1afb0766cfec Bug 1274319: Allow elevated updater and Firefox on OSX to make 10 IPC connection attempts to the unelevated updater. r=mstange
Cornel, can someone from your team re-test this with a newer build? Robert should this uplift after verification (to 49 aurora?)
Flags: needinfo?(robert.strong.bugs)
Flags: needinfo?(cornel.ionce)
This should already be on 49. Stephen, please confirm.
Flags: needinfo?(robert.strong.bugs) → needinfo?(spohl.mozilla.bugs)
Yes, this is in 49.
Flags: needinfo?(spohl.mozilla.bugs)
This is still reproducible only on Mac OS X 10.9.5 using both Nightly and Aurora from 2016-07-08. Same steps as in comment 0. Mac OS X 10.10.5 and 10.11 are not affected. Should we reopen this bug or log a new one?
Flags: needinfo?(cornel.ionce) → needinfo?(spohl.mozilla.bugs)
Since this only affects a subset of systems, please file a new bug. It probably also shouldn't have a rating of "major" anymore. It arguably never was a major issue, because most users wouldn't click cancel this fast. When you file the new bug, please make sure to follow comment 9.
Flags: needinfo?(spohl.mozilla.bugs)
Blocks: 1286490
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: