Closed
Bug 351857
Opened 18 years ago
Closed 18 years ago
Implement stub verasion of window.external.IsSearchProviderInstalled
Categories
(Firefox :: Search, defect, P2)
Tracking
()
RESOLVED
FIXED
Firefox 2
People
(Reporter: mconnor, Assigned: pamg.bugs)
Details
(Keywords: fixed1.8.1)
Attachments
(2 files, 1 obsolete file)
3.00 KB,
patch
|
mtschrep
:
approval1.8.1+
|
Details | Diff | Splinter Review |
2.83 KB,
patch
|
Details | Diff | Splinter Review |
Bug 340604 comment 11 points out a problem with partially implementing IE's API. We should stub this out and just return false, instead of throwing.
Reporter | ||
Updated•18 years ago
|
Flags: blocking-firefox2+
Updated•18 years ago
|
Assignee: gavin.sharp → bugs.mano
OS: Windows XP → All
Priority: -- → P2
Hardware: PC → All
Target Milestone: --- → Firefox 2
Updated•18 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•18 years ago
|
||
Although I'm not sure whether adding a stub is the right thing to do (see bug 340604 comment #16), here's a patch in case we decide to go with it.
Assignee: bugs.mano → pamg.bugs
Attachment #237391 -
Flags: review?(mconnor)
Comment 2•18 years ago
|
||
Comment on attachment 237391 [details] [diff] [review]
Implements stub
Semantically, you don't need to note the method isn't implemented inside the iface itself. It would be nice to put a link to the MS documentation for this methods though.
Any reason this isn't a "boolean" method (or, at the very least - "unsigned long")?
Note you need a dom/ peer review on this too.
Assignee | ||
Comment 3•18 years ago
|
||
(In reply to comment #2)
> (From update of attachment 237391 [details] [diff] [review] [edit])
> Semantically, you don't need to note the method isn't implemented inside the
> iface itself. It would be nice to put a link to the MS documentation for this
> methods though.
Okay. Put that link in the IDL, or in the JS?
> Any reason this isn't a "boolean" method (or, at the very least - "unsigned
> long")?
It isn't boolean because Microsoft's isn't boolean, and we might decide to support their full range of return values. I used PRUint32 because I've used that in IDL files before, and JS doesn't much care. (Neither do I, if someone prefers something else.)
Reporter | ||
Comment 4•18 years ago
|
||
Comment on attachment 237391 [details] [diff] [review]
Implements stub
IsSearchProviderInstalled returns 0 1 or 2 per the MS docs, so it can't be a boolean.
Attachment #237391 -
Flags: review?(mconnor) → review+
Assignee | ||
Updated•18 years ago
|
Attachment #237391 -
Flags: superreview?(bzbarsky)
Comment 5•18 years ago
|
||
Comment on attachment 237391 [details] [diff] [review]
Implements stub
>Index: dom/public/idl/sidebar/nsISidebar.idl
> interface nsISidebarExternal : nsISupports
Please add a link to the Microsoft documentation of this interface's methods.
>+ PRUint32 IsSearchProviderInstalled(in string aSearchURL);
unsigned long, please.
sr=bzbarsky with those nits picked.
Attachment #237391 -
Flags: superreview?(bzbarsky) → superreview+
Reporter | ||
Updated•18 years ago
|
Whiteboard: [has patch][checkin needed]
Assignee | ||
Comment 6•18 years ago
|
||
Landing on trunk to bake.
Assignee | ||
Updated•18 years ago
|
Whiteboard: [has patch][checkin needed] → [baking]
Updated•18 years ago
|
Attachment #237391 -
Attachment is obsolete: true
Comment 7•18 years ago
|
||
Comment on attachment 237801 [details] [diff] [review]
De-nitted, as checked in on trunk
a=schrep for drivers.
Attachment #237801 -
Flags: approval1.8.1+
Reporter | ||
Updated•18 years ago
|
Whiteboard: [baking] → [has patch][checkin needed (1.8 branch)]
Assignee | ||
Comment 8•18 years ago
|
||
Landing on 1.8.1 branch.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Keywords: fixed1.8.1
Resolution: --- → FIXED
Summary: Implement stub version of window.external.IsSearchProviderInstalled → Implement stub verasion of window.external.IsSearchProviderInstalled
Whiteboard: [has patch][checkin needed (1.8 branch)]
Assignee | ||
Comment 9•18 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•