Closed Bug 351857 Opened 18 years ago Closed 18 years ago

Implement stub verasion of window.external.IsSearchProviderInstalled

Categories

(Firefox :: Search, defect, P2)

2.0 Branch
defect

Tracking

()

RESOLVED FIXED
Firefox 2

People

(Reporter: mconnor, Assigned: pamg.bugs)

Details

(Keywords: fixed1.8.1)

Attachments

(2 files, 1 obsolete file)

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.
Flags: blocking-firefox2+
Assignee: gavin.sharp → bugs.mano
OS: Windows XP → All
Priority: -- → P2
Hardware: PC → All
Target Milestone: --- → Firefox 2
Status: NEW → ASSIGNED
Attached patch Implements stub (obsolete) — Splinter Review
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 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.
(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.)
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+
Attachment #237391 - Flags: superreview?(bzbarsky)
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+
Whiteboard: [has patch][checkin needed]
Landing on trunk to bake.
Whiteboard: [has patch][checkin needed] → [baking]
Attachment #237391 - Attachment is obsolete: true
Comment on attachment 237801 [details] [diff] [review] De-nitted, as checked in on trunk a=schrep for drivers.
Attachment #237801 - Flags: approval1.8.1+
Whiteboard: [baking] → [has patch][checkin needed (1.8 branch)]
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)]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: