Closed
Bug 568904
Opened 16 years ago
Closed 15 years ago
Don't perform a shell refresh when there are no shortcuts for the installation when updating app modal id's
Categories
(Firefox :: Installer, defect)
Tracking
()
RESOLVED
FIXED
mozilla2.0b7
People
(Reporter: robert.strong.bugs, Assigned: robert.strong.bugs)
References
Details
Attachments
(3 files)
|
843 bytes,
patch
|
robert.strong.bugs
:
review+
|
Details | Diff | Splinter Review |
|
5.93 KB,
patch
|
jimm
:
review+
mossop
:
approval2.0+
|
Details | Diff | Splinter Review |
|
6.12 KB,
patch
|
Details | Diff | Splinter Review |
or at the very least don't perform a shell refresh when there are no shortcuts to update. Seen while running mochitest-chrome tests
| Assignee | ||
Comment 1•16 years ago
|
||
Might be a good thing to not try to update the shortcut app modal id's on first run as well
Comment 2•16 years ago
|
||
Doesn't look like ${UnloadUAC} is needed either, as wel don't init it for this. So I just replaced Goto finish w/ Quit.
Assignee: nobody → jmathies
Attachment #448084 -
Flags: review?(robert.bugzilla)
| Assignee | ||
Comment 3•16 years ago
|
||
Comment on attachment 448084 [details] [diff] [review]
patch
>diff --git a/toolkit/mozapps/installer/windows/nsis/common.nsh b/toolkit/mozapps/installer/windows/nsis/common.nsh
>--- a/toolkit/mozapps/installer/windows/nsis/common.nsh
>+++ b/toolkit/mozapps/installer/windows/nsis/common.nsh
>@@ -4675,17 +4675,17 @@
>
> StrCmp "$R0" "" continue +1
>
> ; Update this user's shortcuts with the latest app user model id.
> ClearErrors
> ${GetOptions} "$R0" "/UpdateShortcutAppUserModelIds" $R2
> IfErrors hideshortcuts +1
> ${UpdateShortcutAppModelIDs} "$INSTDIR\${FileMainEXE}" "${AppUserModelID}"
>- GoTo finish
>+ Quit ; no need for any shutdown.
nit: Please use the same comment as used in the other cases.
; Nothing initialized so no need to call OnEndCommon
r=me with that and thanks!
Attachment #448084 -
Flags: review?(robert.bugzilla) → review+
| Assignee | ||
Comment 4•16 years ago
|
||
Hey Jim, just had a thought about this. I wonder if the shell keeps the previous value if the shortcut's value is changed and the shell isn't refreshed? If so, this approach won't work
Comment 5•16 years ago
|
||
(In reply to comment #4)
> Hey Jim, just had a thought about this. I wonder if the shell keeps the
> previous value if the shortcut's value is changed and the shell isn't
> refreshed? If so, this approach won't work
Not sure, I'll test before I land to be sure that isn't the case.
| Assignee | ||
Comment 6•16 years ago
|
||
Hey Jim, this patch makes it so the shell is only refreshed when shortcuts for this install location are found. I suspect this could be better optimized but this takes care of the case I keep running into which is running mochitest on Win7.
Attachment #453025 -
Flags: review?(jmathies)
Updated•16 years ago
|
Attachment #453025 -
Flags: review?(jmathies) → review+
| Assignee | ||
Updated•16 years ago
|
Summary: Don't perform a shell refresh when updating shortcut app modal id's → Don't perform a shell refresh when there are no shortcuts for the installation when updating app modal id's
| Assignee | ||
Updated•16 years ago
|
Assignee: jmathies → robert.bugzilla
Status: NEW → ASSIGNED
Comment 7•15 years ago
|
||
We should request blocking on one or both of these. Rob any preference?
| Assignee | ||
Comment 8•15 years ago
|
||
Comment on attachment 453025 [details] [diff] [review]
patch - only refresh when shortcuts for this install location are found
Jim, I haven't had a chance to check if the first patch is safe and since I know the second one is I'll request approval for it.
Attachment #453025 -
Flags: approval2.0?
Updated•15 years ago
|
Attachment #453025 -
Flags: approval2.0? → approval2.0+
| Assignee | ||
Comment 9•15 years ago
|
||
| Assignee | ||
Comment 10•15 years ago
|
||
Pushed to mozilla-central
http://hg.mozilla.org/mozilla-central/rev/661fff6dec75
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Flags: in-testsuite-
Flags: in-litmus-
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b7
Comment 11•15 years ago
|
||
I seem to have lost my jump lists on the taskbar. Wondering if this patch might have broken something.
Comment 12•15 years ago
|
||
(In reply to comment #11)
> I seem to have lost my jump lists on the taskbar. Wondering if this patch might
> have broken something.
Never mind, I had jl disabled for testing bug 594821. :S Sorry for the bug spam.
Updated•3 years ago
|
Component: NSIS Installer → Installer
Product: Toolkit → Firefox
You need to log in
before you can comment on or make changes to this bug.
Description
•