Closed Bug 338876 Opened 18 years ago Closed 18 years ago

Scriptable nsISocketProviderService returns noscript nsISocketProvider

Categories

(Core :: Networking, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jhpedemonte, Assigned: jhpedemonte)

References

Details

(Keywords: fixed1.8.1)

Attachments

(1 file, 1 obsolete file)

The scriptable interface nsISocketProviderService has a single method, which returns the non-scriptable interface nsISocketProvider.  There is no reason for the former interface for be scriptable, since none of the "scriptable" languages can make use of its sole method.
Attached patch patch (obsolete) — Splinter Review
Assignee: nobody → jhpedemonte
Status: NEW → ASSIGNED
Attachment #222924 - Flags: review?(darin)
Flags: blocking1.9a2?
perhaps the method should be made noscript.  the interface itself can still be used from script... script can call QueryInterface.  we shouldn't prevent script from passing around interfaces as variables just because they don't have any scriptable methods ;-)
another choice would be to make nsISocketProvider scriptable and make its method noscript.  that seems best to me.  it increases the ability for script to handle and pass around objects of these types.
Attached patch patch v2Splinter Review
Attachment #222924 - Attachment is obsolete: true
Attachment #222932 - Flags: review?(darin)
Attachment #222924 - Flags: review?(darin)
Comment on attachment 222932 [details] [diff] [review]
patch v2

you can land this on the 1.8 branch too if you like.
Attachment #222932 - Flags: review?(darin)
Attachment #222932 - Flags: review+
Attachment #222932 - Flags: approval-branch-1.8.1+
Checked in to trunk and 1.8 branch.  ->FIXED
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Keywords: fixed1.8.1
Resolution: --- → FIXED
Bug is fixed on trunk.
Flags: blocking1.9a2?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: