Closed
Bug 770548
Opened 14 years ago
Closed 13 years ago
frameworker: pare down exposed API
Categories
(Firefox Graveyard :: SocialAPI, defect)
Firefox Graveyard
SocialAPI
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: Gavin, Assigned: Gavin)
Details
Attachments
(1 file, 1 obsolete file)
|
2.17 KB,
patch
|
markh
:
feedback+
|
Details | Diff | Splinter Review |
- 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.
| Assignee | ||
Comment 1•14 years ago
|
||
| Assignee | ||
Comment 2•14 years ago
|
||
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)
Comment 3•14 years ago
|
||
(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.
| Assignee | ||
Comment 4•14 years ago
|
||
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
| Assignee | ||
Comment 5•14 years ago
|
||
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 6•14 years ago
|
||
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+
Comment 7•14 years ago
|
||
Is this something we want to get in for v1?
| Assignee | ||
Comment 8•14 years ago
|
||
No, it's not necessary.
Comment 9•13 years ago
|
||
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)
| Assignee | ||
Comment 10•13 years ago
|
||
Yeah, this got resolved in other bugs.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Flags: needinfo?(gavin.sharp)
Resolution: --- → WORKSFORME
| Assignee | ||
Comment 11•13 years ago
|
||
I guess the only other "obsolete" API that's still left is MozBlobBuilder (bug 736687) - I filed bug 817448 for that.
Updated•7 years ago
|
Product: Firefox → Firefox Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•