Closed Bug 1135045 Opened 10 years ago Closed 10 years ago

Add infobar for when tab sharing is activated

Categories

(Hello (Loop) :: Client, defect, P2)

defect
Points:
5

Tracking

(firefox38+ verified, firefox39+ verified)

VERIFIED FIXED
mozilla39
Iteration:
39.2 - 23 Mar
Tracking Status
firefox38 + verified
firefox39 + verified
backlog backlog+

People

(Reporter: standard8, Assigned: mikedeboer)

References

()

Details

(Whiteboard: [strings][screensharing])

User Story

When a user activates tab sharing:

- An infobar across the browser window informs the user how sharing window works.
- The user can dismiss the infobar either each time or permanently.

Attachments

(4 files, 7 obsolete files)

2.23 KB, patch
standard8
: review+
Details | Diff | Splinter Review
4.37 KB, patch
standard8
: review+
Details | Diff | Splinter Review
5.11 KB, patch
standard8
: review+
Details | Diff | Splinter Review
13.31 KB, patch
standard8
: review+
Details | Diff | Splinter Review
No description provided.
Assignee: nobody → mdeboer
Status: NEW → ASSIGNED
Iteration: --- → 38.3 - 23 Feb
Points: --- → 5
Whiteboard: [strings][screensharing]
Attachment #8567098 - Flags: review?(standard8)
Forgot to add accesskeys
Attachment #8567098 - Attachment is obsolete: true
Attachment #8567098 - Flags: review?(standard8)
Attachment #8567113 - Flags: review?(standard8)
Comment on attachment 8567113 [details] [diff] [review] Patch 1.1: add strings for the Hello infobar to be added soon Review of attachment 8567113 [details] [diff] [review]: ----------------------------------------------------------------- Please drop the browser.css change. r=Standard8 with that fixed.
Attachment #8567113 - Flags: review?(standard8) → review+
Keywords: leave-open
backlog: --- → backlog+
Rank: 2
Flags: qe-verify+
Flags: firefox-backlog+
Priority: -- → P2
Depends on: 1131574
As per IRC wrt the icon shown in the notification bar: [17:00:32] <sevaan> mikedeboer: Sorry! We don't want to use that sharing icon...that was there because we didn't have a screen-sharing icon created at the time. [17:00:38] <sevaan> But I wonder if we should use a Firefox Hello logo instead [17:00:43] <sevaan> Let me look [17:01:48] <sevaan> Use the screen-sharing icon that we have in the Conversation window
Attachment #8573248 - Flags: review?(standard8)
Attachment #8573246 - Attachment is obsolete: true
Attachment #8573246 - Flags: review?(standard8)
Attachment #8573255 - Flags: review?(standard8)
[Tracking Requested - why for this release]: Loop/ Hello window & tab sharing is slated for Fx38, this requesting to track this bug for uplift when it's resolved.
Comment on attachment 8573255 [details] [diff] [review] Patch 2.1: support notification bar buttons of type menu-button with a custom menupopup Officially, I'm not a browser/ peer yet, so passing to Jared.
Attachment #8573255 - Flags: review?(standard8) → review?(jaws)
Comment on attachment 8573248 [details] [diff] [review] Patch 3: show an infobar when tab sharing is activated Review of attachment 8573248 [details] [diff] [review]: ----------------------------------------------------------------- ::: browser/base/content/browser-loop.js @@ +489,5 @@ > > + let wasVisible = false; > + // Hide the infobar from the previous tab. > + if (typeof event.fromIndex == "number" && event.fromIndex > 0) { > + wasVisible = this._hideBrowserSharingInfoBar(false, For some reason this swapping of tabs doesn't seem to work for me.
Attachment #8573248 - Flags: review?(standard8) → review-
Attachment #8573255 - Flags: review?(jaws) → review?(standard8)
Attachment #8575224 - Flags: review?(jaws) → review?(standard8)
Attachment #8573248 - Flags: review- → review?(standard8)
Attachment #8573255 - Attachment is obsolete: true
Attachment #8573255 - Flags: review?(standard8)
Attachment #8576025 - Flags: review?(standard8)
Attachment #8573248 - Attachment is obsolete: true
Attachment #8573248 - Flags: review?(standard8)
Attachment #8576026 - Flags: review?(standard8)
Attachment #8575224 - Attachment is obsolete: true
Attachment #8575224 - Flags: review?(standard8)
Attachment #8576027 - Flags: review?(standard8)
Now also works in non-e10s windows!
Attachment #8576026 - Attachment is obsolete: true
Attachment #8576026 - Flags: review?(standard8)
Attachment #8576064 - Flags: review?(standard8)
Looks like this is working _much_ better now. Mark, can you confirm that too?
Attachment #8576064 - Attachment is obsolete: true
Attachment #8576064 - Flags: review?(standard8)
Attachment #8576115 - Flags: review?(standard8)
Per Gavin's request - just updating bugs that carried over before they were 100% resolved to the next iteration.
Iteration: 38.3 - 23 Feb → 39.2 - 23 Mar
Attachment #8576025 - Flags: review?(standard8) → review+
Comment on attachment 8576027 [details] [diff] [review] Patch 4.1: add tests to confirm that the tab-sharing infoBar is working as expected Review of attachment 8576027 [details] [diff] [review]: ----------------------------------------------------------------- Looks good, one minor comment. ::: browser/components/loop/test/mochitest/browser_mozLoop_sharingListeners.js @@ +147,5 @@ > + }; > + > + let testBarProps = function() { > + // We now know that the second tab is selected and should be displaying the > + // infobar. I think this comment would be better situated at the first call to testBarProps()
Attachment #8576027 - Flags: review?(standard8) → review+
Comment on attachment 8576115 [details] [diff] [review] Patch 3.3: show an infobar when tab sharing is activated Review of attachment 8576115 [details] [diff] [review]: ----------------------------------------------------------------- Looking good, just a couple of minor things to clean up. ::: browser/base/content/browser-loop.js @@ +464,5 @@ > + _hideBrowserSharingInfoBar: function(permanently = false, browser) { > + browser = browser || gBrowser.selectedTab.linkedBrowser; > + let box = gBrowser.getNotificationBox(browser); > + let notification = box.getNotificationWithValue(kBrowserSharingNotificationId); > + let removed = false; You're not doing anything with the return value here, so I don't think you need to track whether or not it was removed. ::: toolkit/content/widgets/tabbox.xml @@ +662,5 @@ > if (val < 0 || val >= this.childNodes.length) > return val; > var panel = this._selectedPanel; > this._selectedPanel = this.childNodes[val]; > + var fromIndex = this.selectedIndex; This is now redundant.
Attachment #8576115 - Flags: review?(standard8) → review+
Tracking this for 38 based on comment 10.
Comment on attachment 8576025 [details] [diff] [review] Patch 2.2: support notification bar buttons of type menu-button with a custom menupopup Approval Request Comment [Feature/regressing bug #]: Loop/ Hello screensharing milestone [User impact if declined]: User will see a new option that allows her/ him to share a window or Firefox tabs inside a room (aka. conversation). [Describe test coverage new/current, TreeHerder]: landed on m-c, tests pass. [Risks and why]: minor [String/UUID change made/needed]: n/a
Attachment #8576025 - Flags: approval-mozilla-aurora?
Comment on attachment 8576027 [details] [diff] [review] Patch 4.1: add tests to confirm that the tab-sharing infoBar is working as expected Please see comment 25 for approval request.
Attachment #8576027 - Flags: approval-mozilla-aurora?
Comment on attachment 8576115 [details] [diff] [review] Patch 3.3: show an infobar when tab sharing is activated Please see comment 25 for approval request.
Attachment #8576115 - Flags: approval-mozilla-aurora?
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Keywords: leave-open
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
QA Contact: bogdan.maris
Attachment #8576025 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Attachment #8576027 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Attachment #8576115 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Verified that the tab sharing infobar was implemented and works as expected across platforms (Windows 7 64-bit, Mac OS X 10.9.5 and Ubuntu 14.04 32-bit) on latest Nightly. I`m gonna close this bug as verified but will get back to verify on Aurora tomorrow.
Status: RESOLVED → VERIFIED
Verified on Firefox Developer edition as well across platforms (Windows 8.1 64-bit, Mac OS X 10.9.5 and Ubuntu 14.04 32-bit).
Depends on: 1146252
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: