Closed
Bug 1012526
Opened 11 years ago
Closed 11 years ago
UITour.jsm only registers with UITelemetry when it's lazily imported on-demand
Categories
(Firefox :: General, defect)
Tracking
()
VERIFIED
FIXED
Firefox 32
People
(Reporter: Unfocused, Assigned: Unfocused)
References
Details
(Whiteboard: p=3 s=it-32c-31a-30b.2 [qa-])
Attachments
(1 file, 1 obsolete file)
3.58 KB,
patch
|
Unfocused
:
review+
lsblakk
:
approval-mozilla-aurora+
lsblakk
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
So, UITour.jsm is lazily imported on-demand whenever:
* A page uses the mozUITour API
* The person uses the Tour menuitem from the Help menu
And as part of the initialization process of UITour, it registers with UITelemetry.jsm a simple measure function. This is a problem, because we *always* want that to be registered with UITelemetry, so the data from UITour can be collected.
Note: This *only* affects seenPageIDs, as that's the only telemetry data collected by UITour.jsm
I think this would explain why we may not be seeing seenPageIDs not show up in telemetry as often as expected.
Assignee | ||
Comment 1•11 years ago
|
||
Gavin: Will need this fixed ASAP, as it affects telemetry collection of data that we're trying to analyse *now*. Can you add this to the priority backlog?
status-firefox29:
--- → affected
status-firefox30:
--- → affected
status-firefox31:
--- → affected
status-firefox32:
--- → affected
Flags: needinfo?(gavin.sharp)
Flags: firefox-backlog+
Whiteboard: p=3
Comment 2•11 years ago
|
||
Marco, can you please add this to the current iteration?
Flags: needinfo?(gavin.sharp) → needinfo?(mmucci)
Comment 3•11 years ago
|
||
Added to Iteration 32.2
Flags: needinfo?(mmucci)
Whiteboard: p=3 → p=3 s=it-32c-31a-30b.2 [qa?]
Assignee | ||
Comment 4•11 years ago
|
||
This also lets UITour.jsm remain being lazy-loaded.
Sadly, I don't think we can test this. If it were testable via xpcshell, it'd be easy - as we get a new environment for each test. But we can only test this via mochitest... in which case we can't guarantee that some other test hasn't already caused UITour.jsm to be loaded beforehand :\
Attachment #8425170 -
Flags: review?(mconley)
Comment 5•11 years ago
|
||
Comment on attachment 8425170 [details] [diff] [review]
Patch v1
Review of attachment 8425170 [details] [diff] [review]:
-----------------------------------------------------------------
Bah, sorry for not catching this the first time. :( This looks good - just some minor things.
::: browser/modules/BrowserUITelemetry.jsm
@@ +171,5 @@
> init: function() {
> UITelemetry.addSimpleMeasureFunction("toolbars",
> this.getToolbarMeasures.bind(this));
> + // Ensure that UITour.jsm remains lazy-loaded, yet always registers its
> + // simple measure functiojn with UITelemetry.
Nit - typo: "functiojn" -> "function"
::: browser/modules/UITour.jsm
@@ +7,5 @@
> this.EXPORTED_SYMBOLS = ["UITour"];
>
> const {classes: Cc, interfaces: Ci, utils: Cu, results: Cr} = Components;
>
> +Cu.reportError("UITour.jsm loaded");
Please remove before landing.
Attachment #8425170 -
Flags: review?(mconley) → review+
Assignee | ||
Comment 6•11 years ago
|
||
Comment 7•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 32
Updated•11 years ago
|
Whiteboard: p=3 s=it-32c-31a-30b.2 [qa?] → p=3 s=it-32c-31a-30b.2 [qa-]
Updated•11 years ago
|
Status: RESOLVED → VERIFIED
Assignee | ||
Comment 8•11 years ago
|
||
[Approval Request Comment]
Bug caused by (feature/regressing bug #): Bug 952568
User impact if declined: No user impact. Impact is lack of/inconsistent Telemetry data. Unable to analyse anything but immediate (within 1 hour) impact of whats-new tour page on usage of UI, via Telemetry.
Testing completed (on m-c, etc.): Unable to automate test. Manually tested.
Risk to taking this patch (and alternatives if risky): Minimal - can only impact telemetry collection of what is already broken. Change to fix that is minimal low-risk change.
String or IDL/UUID changes made by this patch: None
Attachment #8425170 -
Attachment is obsolete: true
Attachment #8426728 -
Flags: review+
Attachment #8426728 -
Flags: approval-mozilla-beta?
Attachment #8426728 -
Flags: approval-mozilla-aurora?
Updated•11 years ago
|
Attachment #8426728 -
Flags: approval-mozilla-beta?
Attachment #8426728 -
Flags: approval-mozilla-beta+
Attachment #8426728 -
Flags: approval-mozilla-aurora?
Attachment #8426728 -
Flags: approval-mozilla-aurora+
Assignee | ||
Comment 9•11 years ago
|
||
Comment 10•11 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•