Closed
Bug 944049
Opened 11 years ago
Closed 11 years ago
Collect UITelemetry on bookmarks toolbar usage
Categories
(Firefox :: Toolbars and Customization, defect)
Tracking
()
RESOLVED
FIXED
Firefox 29
People
(Reporter: mconley, Assigned: mconley)
References
Details
(Whiteboard: [Australis:P-][good first verify])
Attachments
(2 files, 7 obsolete files)
5.15 KB,
patch
|
Gijs
:
review+
lsblakk
:
approval-mozilla-beta+
mconley
:
checkin+
|
Details | Diff | Splinter Review |
4.23 KB,
patch
|
jaws
:
review+
|
Details | Diff | Splinter Review |
In particular, we'd like to: * Collect a boolean of whether or not the bookmarks toolbar is open * Collect the number of times a bookmark is opened from clicking items within the bookmarks toolbar This is the first UITelemetry probe that will be applicable in Australis-land, so this'll give us a good excuse to land bug 942244 on mozilla-central as well.
Assignee | ||
Comment 1•11 years ago
|
||
Logs clicks on PersonalToolbar items that are containers and items that are not containers. mak - are there other things that can go inside PlacesToolbarItems that I'm not considering? So far, I'm just differentiating with the container attribute...
Flags: needinfo?(mak77)
Assignee | ||
Comment 2•11 years ago
|
||
Attachment #8339527 -
Attachment is obsolete: true
Assignee | ||
Updated•11 years ago
|
Assignee | ||
Updated•11 years ago
|
Comment 3•11 years ago
|
||
It depends if you care about measuring the chevron, it's an overflow of the toolbar, so if you care to measure the toolbar usage you should probably take it into account. That is also connected to whether you intend to count clicks on items that are inside containers on the toolbar, this code doesn't seem to differentiate at first glance (on Mac it may be more common to mousedown a menu and mouseup on an item inside it.
Flags: needinfo?(mak77)
Assignee | ||
Comment 4•11 years ago
|
||
Assignee | ||
Updated•11 years ago
|
Attachment #8340524 -
Attachment is obsolete: true
Assignee | ||
Comment 5•11 years ago
|
||
Attachment #8341888 -
Attachment is obsolete: true
Assignee | ||
Comment 6•11 years ago
|
||
Attachment #8343102 -
Attachment is obsolete: true
Assignee | ||
Updated•11 years ago
|
Attachment #8343108 -
Flags: review?(gijskruitbosch+bugs)
Comment 7•11 years ago
|
||
Comment on attachment 8343108 [details] [diff] [review] Patch v1.4 Review of attachment 8343108 [details] [diff] [review]: ----------------------------------------------------------------- This looks alright bar the issue below. r+ if you check that you're actually on/in an item. ::: browser/modules/BrowserUITelemetry.jsm @@ +337,5 @@ > + _PlacesToolbarItemsMouseUp: function(aEvent) { > + let target = aEvent.originalTarget; > + if (target.hasAttribute("container")) { > + this._countEvent("click-bookmarks-bar", "container"); > + } else { Is there nothing else in here? What if I click an empty part of the bookmarks toolbar?
Attachment #8343108 -
Flags: review?(gijskruitbosch+bugs) → review+
Comment 8•11 years ago
|
||
Oh, and it doesn't look like you've addressed comment #3... do we not care about items in the chevron?
Assignee | ||
Comment 9•11 years ago
|
||
(In reply to :Gijs Kruitbosch from comment #7) > Comment on attachment 8343108 [details] [diff] [review] > Patch v1.4 > > Review of attachment 8343108 [details] [diff] [review]: > ----------------------------------------------------------------- > > This looks alright bar the issue below. r+ if you check that you're actually > on/in an item. > > ::: browser/modules/BrowserUITelemetry.jsm > @@ +337,5 @@ > > + _PlacesToolbarItemsMouseUp: function(aEvent) { > > + let target = aEvent.originalTarget; > > + if (target.hasAttribute("container")) { > > + this._countEvent("click-bookmarks-bar", "container"); > > + } else { > > Is there nothing else in here? What if I click an empty part of the > bookmarks toolbar? I don't think we care about that case (we don't care about clicks on empty parts of the other toolbars either. (In reply to :Gijs Kruitbosch from comment #8) > Oh, and it doesn't look like you've addressed comment #3... do we not care > about items in the chevron? Ah, but we do care about that case. Thanks for reminding me!
Assignee | ||
Comment 10•11 years ago
|
||
Added monitoring for the chevron and friends.
Attachment #8343108 -
Attachment is obsolete: true
Comment 11•11 years ago
|
||
(In reply to Mike Conley (:mconley) from comment #9) > (In reply to :Gijs Kruitbosch from comment #7) > > Comment on attachment 8343108 [details] [diff] [review] > > Patch v1.4 > > > > Review of attachment 8343108 [details] [diff] [review]: > > ----------------------------------------------------------------- > > > > This looks alright bar the issue below. r+ if you check that you're actually > > on/in an item. > > > > ::: browser/modules/BrowserUITelemetry.jsm > > @@ +337,5 @@ > > > + _PlacesToolbarItemsMouseUp: function(aEvent) { > > > + let target = aEvent.originalTarget; > > > + if (target.hasAttribute("container")) { > > > + this._countEvent("click-bookmarks-bar", "container"); > > > + } else { > > > > Is there nothing else in here? What if I click an empty part of the > > bookmarks toolbar? > > I don't think we care about that case (we don't care about clicks on empty > parts of the other toolbars either. Sure, but you'd register the mouseup, end up in this handler, and register it as clicking an item, if I understand the current code correctly (unless the PlacesToolbarItems node has a container attribute, too).
Assignee | ||
Comment 12•11 years ago
|
||
Ignore items that don't have the bookmark-item class.
Attachment #8343174 -
Attachment is obsolete: true
Assignee | ||
Comment 13•11 years ago
|
||
Comment on attachment 8343183 [details] [diff] [review] Patch v1.6 - non-Australis Good call, Gijs - I was actually recording clicks on the empty space. This patch only reacts to clicks on bookmark-items in the bookmarks bar now.
Attachment #8343183 -
Flags: review?(gijskruitbosch+bugs)
Comment 14•11 years ago
|
||
Comment on attachment 8343183 [details] [diff] [review] Patch v1.6 - non-Australis Review of attachment 8343183 [details] [diff] [review]: ----------------------------------------------------------------- r=me, vague question below (preliminary testing says 'no', but hey...) ::: browser/modules/BrowserUITelemetry.jsm @@ +349,5 @@ > + if (!target.classList.contains("bookmark-item")) { > + return; > + } > + > + let result = target.hasAttribute("container") ? "container" : "item"; Dumb question: can a node have container="false" ? Otherwise, this seems fine.
Attachment #8343183 -
Flags: review?(gijskruitbosch+bugs) → review+
Assignee | ||
Comment 15•11 years ago
|
||
(In reply to :Gijs Kruitbosch from comment #14) > Comment on attachment 8343183 [details] [diff] [review] > Patch v1.6 > > Review of attachment 8343183 [details] [diff] [review]: > ----------------------------------------------------------------- > > r=me, vague question below (preliminary testing says 'no', but hey...) > > ::: browser/modules/BrowserUITelemetry.jsm > @@ +349,5 @@ > > + if (!target.classList.contains("bookmark-item")) { > > + return; > > + } > > + > > + let result = target.hasAttribute("container") ? "container" : "item"; > > Dumb question: can a node have container="false" ? Otherwise, this seems > fine. According to mak, it's just "true", or not present at all, so I think we're good here. Thanks for the review!
Assignee | ||
Comment 16•11 years ago
|
||
pre-Australis patch landed on Holly: https://hg.mozilla.org/projects/holly/rev/77afab7f892f
status-firefox28:
--- → fixed
Assignee | ||
Updated•11 years ago
|
Attachment #8343183 -
Flags: checkin+
Assignee | ||
Comment 17•11 years ago
|
||
Comment on attachment 8343183 [details] [diff] [review] Patch v1.6 - non-Australis [Approval Request Comment] Bug caused by (feature/regressing bug #): None. This just gives BrowserUITelemetry the capability of counting click events in the Bookmarks toolbar. User impact if declined: None. Testing completed (on m-c, etc.): Lots of manual testing on Holly, which has since merged to Aurora. Risk to taking this patch (and alternatives if risky): None. String or IDL/UUID changes made by this patch: None.
Attachment #8343183 -
Flags: approval-mozilla-beta?
Assignee | ||
Comment 18•11 years ago
|
||
Removing [Australis:P1] since these block a P1 already. Let's not be redundant and noisy.
Whiteboard: [Australis:P1]
Updated•11 years ago
|
Whiteboard: [Australis:P-]
Updated•11 years ago
|
Attachment #8343183 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Assignee | ||
Comment 19•11 years ago
|
||
Landed in mozilla-beta as https://hg.mozilla.org/releases/mozilla-beta/rev/4ebfdf4aa331
status-firefox27:
--- → fixed
Assignee | ||
Updated•11 years ago
|
Attachment #8343183 -
Attachment description: Patch v1.6 → Patch v1.6 - non-Australis
Assignee | ||
Comment 20•11 years ago
|
||
Assignee | ||
Comment 21•11 years ago
|
||
Comment on attachment 8348957 [details] [diff] [review] Patch v1 - for Australis Nope, got my signs flipped.
Attachment #8348957 -
Attachment description: Patch v1 - for non-Australis → Patch v1 - for Australis
Assignee | ||
Comment 22•11 years ago
|
||
Comment on attachment 8348957 [details] [diff] [review] Patch v1 - for Australis This is pretty much a straight-port.
Attachment #8348957 -
Flags: review?(jaws)
Assignee | ||
Comment 23•11 years ago
|
||
Fixing a whitespace issue.
Attachment #8348957 -
Attachment is obsolete: true
Attachment #8348957 -
Flags: review?(jaws)
Assignee | ||
Updated•11 years ago
|
Attachment #8348961 -
Flags: review?(jaws)
Updated•11 years ago
|
Attachment #8348961 -
Flags: review?(jaws) → review+
Assignee | ||
Comment 24•11 years ago
|
||
Thanks! Landed on fx-team as https://hg.mozilla.org/integration/fx-team/rev/60c16e794a14
https://hg.mozilla.org/mozilla-central/rev/60c16e794a14
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 29
You need to log in
before you can comment on or make changes to this bug.
Description
•