Closed
Bug 1066506
Opened 10 years ago
Closed 10 years ago
Allow easy debugging of websockets and sdk
Categories
(Hello (Loop) :: Client, defect)
Hello (Loop)
Client
Tracking
(firefox34 fixed, firefox35 fixed)
RESOLVED
FIXED
mozilla35
People
(Reporter: standard8, Assigned: standard8)
Details
(Whiteboard: [loop-uplift])
Attachments
(1 file, 1 obsolete file)
7.55 KB,
patch
|
NiKo
:
review+
lmandel
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
Currently, there is no way that the standalone client can easily have debugging for websockets and/or the sdk turned on - the only way is to alter the code itself. Additionally, the desktop has no way for debugging the sdk easily since bug 1066219 landed which turned off debugging. I think the best way to do this is to either get the preference value from mozLoop, or fallback to using localStorage. That way, developers can either set a preference in Firefox (for the built-in components), or adjust localStorage via the console.
Assignee | ||
Comment 1•10 years ago
|
||
This makes it so that either devs can set a pref for built-in components, or tweak via localStorage if in the standalone UI.
Attachment #8488544 -
Flags: review?(nperriault)
Assignee | ||
Comment 2•10 years ago
|
||
Now with the missing test file.
Attachment #8488544 -
Attachment is obsolete: true
Attachment #8488544 -
Flags: review?(nperriault)
Attachment #8488620 -
Flags: review?(nperriault)
Comment on attachment 8488620 [details] [diff] [review] Allow easy debugging of websockets and sdk for Loop. Review of attachment 8488620 [details] [diff] [review]: ----------------------------------------------------------------- LGTM with minor comments for tests to be addressed before landing. ::: browser/components/loop/test/shared/utils_test.js @@ +24,5 @@ > + describe("#getBoolPreference", function() { > + var savedMozLoop = navigator.mozLoop; > + > + beforeEach(function() { > + savedMozLoop = navigator.mozLoop; I don't see the point of storing and reverting this; in a test page, mozLoop is most likely to be undefined… @@ +28,5 @@ > + savedMozLoop = navigator.mozLoop; > + }); > + > + afterEach(function() { > + navigator.mozLoop = savedMozLoop; So this is undeeded. @@ +39,5 @@ > + getLoopBoolPref: function(prefName) { > + return prefName === "test.true"; > + } > + }; > + }); Here you'll want an afterEach() resetting navigator.mozLoop to undefined. @@ +42,5 @@ > + }; > + }); > + > + it("should return the mozLoop preference", function() { > + expect(sharedUtils.getBoolPreference("test.true")).to.be.true; Nit: .eql(true) @@ +48,5 @@ > + > + it("should not use the localStorage value", function() { > + localStorage.setItem("test.false", true); > + > + expect(sharedUtils.getBoolPreference("test.false")).to.be.false; Nit: eql(false) @@ +54,5 @@ > + }); > + > + describe("mozLoop not set", function() { > + beforeEach(function() { > + navigator.mozLoop = undefined; Unneeded. @@ +60,5 @@ > + > + it("should return the localStorage value", function() { > + localStorage.setItem("test.true", true); > + > + expect(sharedUtils.getBoolPreference("test.true")).to.be.true; Nit: eql(true)
Attachment #8488620 -
Flags: review?(nperriault) → review+
Assignee | ||
Comment 4•10 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/e0bfb21715fe
Target Milestone: --- → mozilla35
Comment 5•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/e0bfb21715fe
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Untracking for QE verification. Please needinfo me to request testing.
Flags: qe-verify-
Assignee | ||
Comment 7•10 years ago
|
||
Pushed a bugfix for the ui-showcase with rs=dmose over irc: https://hg.mozilla.org/integration/fx-team/rev/3be4f9ecef3c
Comment 10•10 years ago
|
||
Comment on attachment 8488620 [details] [diff] [review] Allow easy debugging of websockets and sdk for Loop. Approval Request Comment Uplift request for patches staged and tested on Fig
Attachment #8488620 -
Flags: approval-mozilla-aurora?
Comment 11•10 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/d4797a01c3a8 https://hg.mozilla.org/releases/mozilla-aurora/rev/98b285915390
Updated•10 years ago
|
status-firefox34:
--- → fixed
status-firefox35:
--- → fixed
Comment 12•10 years ago
|
||
Comment on attachment 8488620 [details] [diff] [review] Allow easy debugging of websockets and sdk for Loop. I worked with Randell and Maire on uplifting a large number of Loop bugs at once. All of the bugs have been staged on Fig and tested by QE before uplift to Aurora. As well, all of the bugs are isolated to the Loop client. Randell handled the uplift with my approval. I am adding approval to the bug after the fact for bookkeeping.
Attachment #8488620 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
You need to log in
before you can comment on or make changes to this bug.
Description
•