Closed Bug 354467 Opened 18 years ago Closed 18 years ago

Refreshing file associations is very slow due to using SendMessageTimeout instead of SHChangeNotify

Categories

(Firefox :: Shell Integration, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: robert.strong.bugs, Assigned: robert.strong.bugs)

Details

Attachments

(1 file)

Found while working on Vista integration... annoyed by it too. ;)
Doug, just from counting while setting as default without this patch it took anywhere from 7 to 11 seconds and with this patch around a second.
Attachment #240305 - Flags: review?(dougt)
Version: 2.0 Branch → Trunk
Comment on attachment 240305 [details] [diff] [review] use SHChangeNotify The difference is that only the shell will not get the update message whereas before, every top level window got the change notification. I think this is reasonable and anyone depending on this sort of notification probably deserves to be broken. Can you also change the call in RestoreFileSettings() as well? Then you can also remove the MOZ_HWND_BROADCAST_MSG_TIMEOUT define. With that, or reasons not to, r=me.
Attachment #240305 - Flags: review?(dougt) → review+
(In reply to comment #2) > (From update of attachment 240305 [details] [diff] [review] [edit]) > The difference is that only the shell will not get the update message whereas > before, every top level window got the change notification. I think this is > reasonable and anyone depending on this sort of notification probably deserves > to be broken. > > Can you also change the call in RestoreFileSettings() as well? Then you can > also remove the MOZ_HWND_BROADCAST_MSG_TIMEOUT define. I've removed RestoreFileSettings() entirely in the Vista specific patch for setting OS defaults.
Checked in to trunk.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
I file bug 354546 for removing the RestoreFileSettings cruft
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: