Closed Bug 1091038 Opened 10 years ago Closed 10 years ago

Reduce the Robert Kieffer awesome uuid.js library (we only use the v4 to generate random UUIDs)

Categories

(Firefox OS Graveyard :: Gaia::Loop, defect)

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: crdlc, Assigned: crdlc)

References

Details

(Whiteboard: [mobile app][Loop not in v1.1])

Attachments

(1 file)

We are going to remove the Node.js specific parts of the code and the UUID version 1 generator (which we don't use)
Assignee: nobody → crdlc
Blocks: 1088519
Status: NEW → ASSIGNED
Whiteboard: [mobile app]
Attached file Github pull request
other one
Attachment #8513577 - Flags: review?(josea.olivera)
Comment on attachment 8513577 [details]
Github pull request

IMHO Let's keep third party libraries as they are. Lets discuss it if you disagree.
Attachment #8513577 - Flags: review?(josea.olivera)
Tokbox does the same [1], I mean, they remove that code which won't be used for the app anymore. What is the rationale to have more code if this is not used? More code to parse means higher start-up time. IMHO we have to be faster and this point would be good. And also we could use instead of the whole uuid.js

var url = window.URL.createObjectURL(new Blob());
var uuid = url.replace('blob:', '');
window.URL.revokeObjectURL(url);

return uuid;

[1] See app/libs/tokbox/v2.2.9.1/js/TB.js

(In reply to José Antonio Olivera Ortega [:jaoo] from comment #2)
> Comment on attachment 8513577 [details]
> Github pull request
> 
> IMHO Let's keep third party libraries as they are. Lets discuss it if you
> disagree.
Flags: needinfo?(josea.olivera)
(In reply to José Antonio Olivera Ortega [:jaoo] from comment #2)
> Comment on attachment 8513577 [details]
> Github pull request
> 
> IMHO Let's keep third party libraries as they are. Lets discuss it if you
> disagree.

Agreed offline we are taking this patch. Thanks Cristian! Please, request review at me.
Flags: needinfo?(josea.olivera)
Comment on attachment 8513577 [details]
Github pull request

10x
Attachment #8513577 - Flags: review?(josea.olivera)
Comment on attachment 8513577 [details]
Github pull request

LGTM. r=me

Thanks Cristian!
Attachment #8513577 - Flags: review?(josea.olivera) → review+
Merged in master:

https://github.com/mozilla-b2g/firefoxos-loop-client/commit/1b810de2ee33a8cc0a2833579428ea6f4e812453
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [mobile app] → [mobile app][Loop not in v1.1]
Tested. Loop applications still is working with this update
Flame
user
v2.0
Gecko-05f9775
Gaia-d3e4da3
Loop version: master , dd4862e
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: