Closed
Bug 760680
Opened 13 years ago
Closed 13 years ago
Update shell integration default browser check for Windows 8
Categories
(Firefox :: Shell Integration, defect)
Tracking
()
RESOLVED
FIXED
Firefox 16
People
(Reporter: jimm, Assigned: bbondy)
References
Details
Attachments
(1 file, 1 obsolete file)
4.28 KB,
patch
|
jimm
:
review+
|
Details | Diff | Splinter Review |
Our current methods do not detect this properly. The shell code will need to be updated.
Assignee | ||
Updated•13 years ago
|
Assignee: nobody → netzen
Assignee | ||
Comment 1•13 years ago
|
||
I think the way to fix this is to check the ProgId for the default protocol in nsWindowsShellService::IsDefaultBrowserVista via IApplicationAssociationRegistration::QueryCurrentDefault
Assignee | ||
Comment 2•13 years ago
|
||
This review request is to land directly on m-c.
Registering http implies https by the way.
It pops up the same select browser window as when you install. The pref UI doesn't change at all. If you don't select Firefox in the popup it will not update the pref UI saying you set the default (I.e. it works correctly).
Attachment #630310 -
Flags: review?(jmathies)
![]() |
Reporter | |
Comment 3•13 years ago
|
||
Comment on attachment 630310 [details] [diff] [review]
Patch v1.
Review of attachment 630310 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/components/shell/src/nsWindowsShellService.cpp
@@ +582,5 @@
> + info.pcszClass = NULL;
> + info.oaifInFlags = OAIF_FORCE_REGISTRATION |
> + OAIF_URL_PROTOCOL |
> + OAIF_REGISTER_EXT;
> + if FAILED(SHOpenWithDialog(NULL, &info)) {
This api is Vista and up, we'll need to use GetProcAddress to avoid xp problems. :/
http://msdn.microsoft.com/en-us/library/windows/desktop/bb762234(v=vs.85).aspx
With a NULL parent window handle, are there any focus issues with the main fx desktop window?
Attachment #630310 -
Flags: review?(jmathies) → review-
Assignee | ||
Comment 4•13 years ago
|
||
Fixed the dynamic load.
We don't need to specify an HWND because the defaults dialog is dismissed automatically when focus is lost anyway. The call is blocking though in that the next line of code will not execute until the window loses focus or a selection is made.
I haven't pushed to try yet by the way but will before landing.
Attachment #630310 -
Attachment is obsolete: true
Attachment #630601 -
Flags: review?(jmathies)
![]() |
Reporter | |
Comment 5•13 years ago
|
||
Comment on attachment 630601 [details] [diff] [review]
Patch v2
Hrm, modal dialog calls are best avoided, but if the call throws up the right looking win8 interface I suppose it's worth it the risk.
Attachment #630601 -
Flags: review?(jmathies) → review+
Assignee | ||
Comment 6•13 years ago
|
||
Target Milestone: --- → Firefox 16
Comment 7•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•