Closed
Bug 1101494
Opened 9 years ago
Closed 9 years ago
Guest mode doesn't work for rooms on a fresh profile (or if you haven't copied a url for 30 days)
Categories
(Hello (Loop) :: Client, defect, P1)
Hello (Loop)
Client
Tracking
(firefox34 unaffected, firefox35? verified, firefox36 verified)
Tracking | Status | |
---|---|---|
firefox34 | --- | unaffected |
firefox35 | ? | verified |
firefox36 | --- | verified |
backlog | Fx35+ |
People
(Reporter: standard8, Assigned: standard8)
References
Details
Attachments
(2 files, 2 obsolete files)
3.45 KB,
patch
|
mikedeboer
:
review+
lsblakk
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
31.38 KB,
patch
|
MattN
:
review+
lsblakk
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
STR: 1) Start up Firefox with a fresh profile 2) Try and create a room -> It fails, no error message is displayed. It will fail for any user that is using Loop in guest mode and haven't copied a call url in the last 30 days.
Assignee | ||
Comment 1•9 years ago
|
||
This fixes joining a room in guest mode by using the guest string if we're not logged in.
Attachment #8525379 -
Flags: review?(mdeboer)
Comment 2•9 years ago
|
||
Comment on attachment 8525379 [details] [diff] [review] [checked in] Fix joining a room in guest mode Review of attachment 8525379 [details] [diff] [review]: ----------------------------------------------------------------- r=me with comments addressed. ::: browser/components/loop/LoopRooms.jsm @@ +5,5 @@ > > const {classes: Cc, interfaces: Ci, utils: Cu} = Components; > > Cu.import("resource://gre/modules/XPCOMUtils.jsm"); > +Cu.import("resource://gre/modules/Services.jsm"); I *think* this belongs to a different patch... @@ +332,5 @@ > + if (MozLoopService.userProfile && MozLoopService.userProfile.email) { > + displayName = MozLoopService.userProfile.email; > + } else { > + let stringBundle = > + Services.strings.createBundle('chrome://browser/locale/loop/loop.properties'); Can you make this a global lazyGetter called 'gLoopBundle'? Oh, and double quotes are the preferred taste around these parts ;) ::: browser/components/loop/test/xpcshell/test_looprooms.js @@ +340,5 @@ > +add_task(function* test_joinRoomGuest() { > + // We need these set up for getting the email address. > + let roomToken = "_nxD4V4FflQ"; > + let joinedData = yield LoopRooms.promise("join", roomToken); > + Assert.equal(joinedData.action, "join"); We also forgot to do `clearUserPref` for the test below... can you add that, please?
Attachment #8525379 -
Flags: review?(mdeboer) → review+
Assignee | ||
Comment 3•9 years ago
|
||
This is a tidied up patch of what I worked on with Mike earlier. Just have to finish fixing up the unit tests.
Comment 5•9 years ago
|
||
This was introduced with the new Rooms code. We will want to uplift this to Fx35, but Beta (Fx34) is unaffected.
Flags: needinfo?(standard8)
[Tracking Requested - why for this release]: needed for Firefox Hello 35
backlog: --- → Fx35?
status-firefox34:
--- → unaffected
status-firefox35:
--- → affected
status-firefox36:
--- → affected
tracking-firefox35:
--- → ?
Assignee | ||
Comment 7•9 years ago
|
||
(In reply to Mike de Boer [:mikedeboer] from comment #2) > > Cu.import("resource://gre/modules/XPCOMUtils.jsm"); > > +Cu.import("resource://gre/modules/Services.jsm"); > > I *think* this belongs to a different patch... I'm landing this one first, and we need it for the Services.strings part addition ;-)
Assignee | ||
Updated•9 years ago
|
Attachment #8525379 -
Attachment description: Fix joining a room in guest mode → [checked in] Fix joining a room in guest mode
Assignee | ||
Comment 8•9 years ago
|
||
First part landed: https://hg.mozilla.org/integration/fx-team/rev/90307470c347
Keywords: leave-open
Assignee | ||
Comment 10•9 years ago
|
||
Updated patch that fixes tests and gets them working.
Attachment #8525595 -
Attachment is obsolete: true
Attachment #8525607 -
Flags: review?(MattN+bmo)
Comment 11•9 years ago
|
||
Comment on attachment 8525607 [details] [diff] [review] Guest mode doesn't work for rooms on a fresh profile - handle late guest registration, and keep track of when rooms are created to know if to automatically register or not. r=me on the interdiff
Attachment #8525607 -
Flags: review?(MattN+bmo) → review+
Comment 12•9 years ago
|
||
Comment on attachment 8525607 [details] [diff] [review] Guest mode doesn't work for rooms on a fresh profile - handle late guest registration, and keep track of when rooms are created to know if to automatically register or not. Review of attachment 8525607 [details] [diff] [review]: ----------------------------------------------------------------- \o/
Comment 13•9 years ago
|
||
Try run might be wise, before we land this ;)
Assignee | ||
Comment 14•9 years ago
|
||
Pushed: https://hg.mozilla.org/integration/fx-team/rev/ef7bfca8a59f Maire & Randell are going to watch this.
Updated•9 years ago
|
Priority: -- → P1
Assignee | ||
Updated•9 years ago
|
Comment 16•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/ef7bfca8a59f
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Comment 17•9 years ago
|
||
Comment on attachment 8525379 [details] [diff] [review] [checked in] Fix joining a room in guest mode Approval Request Comment [Feature/regressing bug #]: N/A Mus-have fix for Rooms code for 35 [Describe test coverage new/current, TBPL]: on m-c, tested manually [Risks and why]: low risk [String/UUID change made/needed]: none
Attachment #8525379 -
Flags: approval-mozilla-aurora?
Comment 18•9 years ago
|
||
Comment on attachment 8525607 [details] [diff] [review] Guest mode doesn't work for rooms on a fresh profile - handle late guest registration, and keep track of when rooms are created to know if to automatically register or not. Approval Request Comment [Feature/regressing bug #]: N/A Mus-have fix for Rooms code for 35 [Describe test coverage new/current, TBPL]: on m-c, tested manually [Risks and why]: low risk [String/UUID change made/needed]: none
Attachment #8525607 -
Flags: approval-mozilla-aurora?
Updated•9 years ago
|
Attachment #8525379 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Updated•9 years ago
|
Attachment #8525607 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 19•8 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/54ff7db0635f https://hg.mozilla.org/releases/mozilla-aurora/rev/6908b4d5326e
Flags: in-testsuite+
Comment 20•8 years ago
|
||
Verified fixed 36.0a2 (2014-12-17), 35b4 Win 7
You need to log in
before you can comment on or make changes to this bug.
Description
•