Closed Bug 770548 Opened 14 years ago Closed 13 years ago

frameworker: pare down exposed API

Categories

(Firefox Graveyard :: SocialAPI, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: Gavin, Assigned: Gavin)

Details

Attachments

(1 file, 1 obsolete file)

- MozWebSocket and MozBlobBuilder are deprecated - What are the use cases for Blob/FileReader? - Why are "location" and "navigator" exposed? This also simplifies the localStorage test a bit (I had unnecessarily copied the XHR test rather than using makeWorkerURL), and adds tests for timeouts, base64, and a very basic test for websockets.
Attached patch patch (obsolete) — Splinter Review
Assignee: nobody → gavin.sharp
Status: NEW → ASSIGNED
Attachment #638742 - Flags: review?(mhammond)
Comment on attachment 638742 [details] [diff] [review] patch Oops, filereader/blob are needed in some tests, and I forgot to remove those references. Treat this as a feedback request!
Attachment #638742 - Flags: review?(mhammond) → feedback?(mhammond)
(In reply to :Gavin Sharp (use gavin@gavinsharp.com for email) from comment #0) > - MozWebSocket and MozBlobBuilder are deprecated > - What are the use cases for Blob/FileReader? MozBlobBuilder is in use, as well as FileReader > - Why are "location" and "navigator" exposed? They are part of the W3C Worker api, though they probably should be wrapped, and I believe that "navigator" is a limited version in the Worker.
I just went ahead and landed the additional tests on inbound: https://hg.mozilla.org/integration/mozilla-inbound/rev/242ce0073d97
Summary: frameworker: add additional test coverage, further pare down exposed API → frameworker: pare down exposed API
Attached patch patchSplinter Review
removes: - MozWebSocket (all the worker code I've seen handles just having WebSocket) - "location", since that seems to be unused MozBlobBuilder and navigator seem to be relied on by some worker code. This also limits the unwrapping hack to XMLHTTPRequest, since the other functions seem to work without it.
Attachment #638742 - Attachment is obsolete: true
Attachment #638742 - Flags: feedback?(mhammond)
Attachment #638868 - Flags: feedback?(mhammond)
Comment on attachment 638868 [details] [diff] [review] patch 'navigator' should probably be stripped down - the spec says that the only attributes it needs are appName, appVersion, platform, userAgent and onLine. But I'll call that a nit, so f+
Attachment #638868 - Flags: feedback?(mhammond) → feedback+
Is this something we want to get in for v1?
No, it's not necessary.
Is this bug still valid? I think we have the worker API as minimal as we can make it at the moment...
Flags: needinfo?(gavin.sharp)
Yeah, this got resolved in other bugs.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Flags: needinfo?(gavin.sharp)
Resolution: --- → WORKSFORME
I guess the only other "obsolete" API that's still left is MozBlobBuilder (bug 736687) - I filed bug 817448 for that.
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: