Closed
Bug 1227743
Opened 9 years ago
Closed 9 years ago
Remove snippet (id) from rotation after the user clicks on it
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(firefox45 fixed, firefox46 fixed, firefox47 fixed)
RESOLVED
FIXED
Firefox 47
People
(Reporter: jcollings, Assigned: Margaret)
References
Details
Attachments
(1 file, 1 obsolete file)
|
58 bytes,
text/x-review-board-request
|
mfinkle
:
review+
Sylvestre
:
approval-mozilla-aurora+
Sylvestre
:
approval-mozilla-beta+
|
Details |
Right now we don't have any logic in place to remove the snippet from the rotation after the user clicks on it. Users shouldn't see that snippet if they've taken action on it.
Since we also re-use snippet IDs (swapping copy), please make sure we re-introduce that id after a given period of time (similar logic to: https://bugzilla.mozilla.org/show_bug.cgi?id=1221768)
Margaret, let me know if I filed this bug incorrectly!
Hi Margaret,
Happy New Year! I wanted to follow-up on this bug to see if there are any updates on progress thus far?
Thank you,
Jessica
Flags: needinfo?(margaret.leibovic)
| Assignee | ||
Comment 2•9 years ago
|
||
(In reply to Jessica from comment #1)
> Hi Margaret,
>
> Happy New Year! I wanted to follow-up on this bug to see if there are any
> updates on progress thus far?
>
> Thank you,
> Jessica
Sorry for the slow response! I haven't had time to get around to working on this, but I'll try to write a patch some time this week (and bug 1221768).
Is there a certain Firefox release you're targeting for these changes? I could probably uplift these patches if they're not too big, but even with that the earliest we could have this is probably Fx 45 or 46.
Flags: needinfo?(margaret.leibovic) → needinfo?(jvondrak)
(In reply to :Margaret Leibovic from comment #2)
> (In reply to Jessica from comment #1)
> > Hi Margaret,
> >
> > Happy New Year! I wanted to follow-up on this bug to see if there are any
> > updates on progress thus far?
> >
> > Thank you,
> > Jessica
>
> Sorry for the slow response! I haven't had time to get around to working on
> this, but I'll try to write a patch some time this week (and bug 1221768).
>
> Is there a certain Firefox release you're targeting for these changes? I
> could probably uplift these patches if they're not too big, but even with
> that the earliest we could have this is probably Fx 45 or 46.
Hi Margaret,
Let's plan to include these patches as a part of FX 45 if possible. I am happy to jump on vidyo as well and explain or chat through this further. Thanks so much!
Jessica
Flags: needinfo?(jvondrak)
| Assignee | ||
Comment 4•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/34057/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/34057/
Attachment #8717136 -
Flags: review?(mark.finkle)
| Assignee | ||
Comment 5•9 years ago
|
||
I'm having trouble testing this locally, but this seems pretty straightforward... I want to work on writing some snippets tests, maybe I can get those done this week.
Updated•9 years ago
|
Attachment #8717136 -
Flags: review?(mark.finkle) → review+
Comment 6•9 years ago
|
||
Comment on attachment 8717136 [details]
MozReview Request: Bug 1227743 - Remove snippet (id) from rotation after the user clicks on it. r=mfinkle
https://reviewboard.mozilla.org/r/34057/#review30821
Assuming this patch is only supposed to handle removing the snippet from the rotation after the user clicks on it. Looks like a separate bug was filed to unexpire IDs.
| Assignee | ||
Comment 7•9 years ago
|
||
| Assignee | ||
Comment 8•9 years ago
|
||
Comment on attachment 8717136 [details]
MozReview Request: Bug 1227743 - Remove snippet (id) from rotation after the user clicks on it. r=mfinkle
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/34057/diff/1-2/
| Assignee | ||
Comment 9•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/34555/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/34555/
Attachment #8718401 -
Flags: review?(mark.finkle)
Comment 11•9 years ago
|
||
Comment on attachment 8718401 [details]
MozReview Request: Bug 1227743 - Create test for snippets. r=mfinkle
https://reviewboard.mozilla.org/r/34555/#review31237
Snippets.js is already an XPCOM component, so adding an IDL interface isn't a big deal.
LGTM
Attachment #8718401 -
Flags: review?(mark.finkle) → review+
| Assignee | ||
Comment 12•9 years ago
|
||
(In reply to :Margaret Leibovic from comment #7)
> https://treeherder.mozilla.org/#/jobs?repo=try&revision=51bf830bc6d5
The test is timing out here... in the log I see this:
02-11 10:57:24.479 4851 4862 I GeckoDump: ⰲ겿{"action":"test_start","time":1455217044469,"thread":null,"pid":null,"source":"mochitest","test":"chrome://mochitests/content/chrome/mobile/android/tests/browser/chrome/test_snippets.html","js_source":"TestRunner.js"}ⰲ겿
02-11 10:57:27.225 4851 4862 I GeckoDump: ⰲ겿{"action":"log","time":1455217047226,"thread":null,"pid":null,"source":"mochitest","level":"INFO","message":"Now waiting for Snippets:UpdatedBanner notification from Gecko","js_source":"TestRunner.js"}ⰲ겿
02-11 10:57:28.130 4851 4862 I GeckoDump: ⰲ겿{"action":"log","time":1455217048120,"thread":null,"pid":null,"source":"mochitest","level":"INFO","message":"Received Snippets:UpdatedBanner notification from Gecko","js_source":"TestRunner.js"}ⰲ겿
02-11 10:57:28.524 4851 4862 I GeckoDump: ⰲ겿{"action":"test_status","time":1455217048512,"thread":null,"pid":null,"source":"mochitest","test":"chrome://mochitests/content/chrome/mobile/android/tests/browser/chrome/test_snippets.html","subtest":"Found message 1","status":"PASS","js_source":"TestRunner.js"}ⰲ겿
02-11 10:57:28.564 4851 4862 I GeckoDump: ⰲ겿{"action":"test_status","time":1455217048531,"thread":null,"pid":null,"source":"mochitest","test":"chrome://mochitests/content/chrome/mobile/android/tests/browser/chrome/test_snippets.html","subtest":"Found message 2","status":"PASS","js_source":"TestRunner.js"}ⰲ겿
02-11 10:57:28.604 4851 4862 D GeckoTabs: handleMessage: Content:StateChange
02-11 10:57:28.614 4851 4851 D GeckoToolbar: onTabChanged: START
02-11 10:57:28.614 4851 4851 I GeckoToolbarDisplayLayout: zerdatime 3374842 - Throbber start
02-11 10:57:28.614 4851 4851 D GeckoBrowserApp: BrowserApp.onTabChanged: 0: START
02-11 10:57:28.614 4851 4851 V GeckoDynamicToolbarAnimator: Requested toolbar animation to translation 0.0
02-11 10:57:28.614 4851 4851 V GeckoDynamicToolbarAnimator: Changing animation to immediate jump
02-11 10:57:28.714 4851 4862 I GeckoDump: ⰲ겿{"action":"test_status","time":1455217048715,"thread":null,"pid":null,"source":"mochitest","test":"chrome://mochitests/content/chrome/mobile/android/tests/browser/chrome/test_snippets.html","subtest":"Didn't find message 1 after clicking on it","status":"PASS","js_source":"TestRunner.js"}ⰲ겿
02-11 10:57:28.864 4851 4862 I GeckoDump: ⰲ겿{"action":"test_status","time":1455217048827,"thread":null,"pid":null,"source":"mochitest","test":"chrome://mochitests/content/chrome/mobile/android/tests/browser/chrome/test_snippets.html","subtest":"Didn't find message 1 after refreshing snippets","status":"PASS","js_source":"TestRunner.js"}ⰲ겿
02-11 10:57:29.784 4851 4862 I GeckoDump: MEMORY STAT | vsize 672MB | residentFast 218MB | heapAllocated 88MB
02-11 10:57:31.045 4851 4862 E GeckoConsole: [JavaScript Error: "Error parsing snippets responseText: Home.banner: Can't remove message that doesn't exist: id = {85b3e2b7-f5c2-4072-a81b-9e58ec3a0968}" {file: "jar:jar:file:///data/app/org.mozilla.fennec-1.apk!/assets/omni.ja!/components/Snippets.js" line: 128}]
02-11 10:57:31.045 4851 4862 E GeckoConsole: updateSnippets/<@jar:jar:file:///data/app/org.mozilla.fennec-1.apk!/assets/omni.ja!/components/Snippets.js:128:7
02-11 10:57:31.045 4851 4862 E GeckoConsole: onload@jar:jar:file:///data/app/org.mozilla.fennec-1.apk!/assets/omni.ja!/components/Snippets.js:341:7
So it looks like the test is passing, but then it's running into a JS error and dying. It's strange that this passes for me locally. I'll have to debug.
| Assignee | ||
Comment 13•9 years ago
|
||
| Assignee | ||
Comment 14•9 years ago
|
||
Well, I fixed that JS error (which is actually a real error), but that wasn't the cause of these timeout problems.
gbrown, do you have any idea what could be causing this problem? The test passes fine for me locally on the emulator.
Flags: needinfo?(gbrown)
Comment 15•9 years ago
|
||
That's puzzling. I see "Didn't find message 1 after refreshing snippets" as though the test has finished...but it is waiting for something. Maybe something related to the cleanup function? I'd add some info() calls in the cleanup function...see if it's getting called?
Flags: needinfo?(gbrown)
| Assignee | ||
Comment 16•9 years ago
|
||
| Assignee | ||
Comment 17•9 years ago
|
||
(In reply to Geoff Brown [:gbrown] from comment #15)
> That's puzzling. I see "Didn't find message 1 after refreshing snippets" as
> though the test has finished...but it is waiting for something. Maybe
> something related to the cleanup function? I'd add some info() calls in the
> cleanup function...see if it's getting called?
I updated the test to put the cleanup registration inside the task, because I was wondering if that was causing the problem, and I added info statements. I see that the cleanup function is getting called, but still for some reason the test is timing out:
http://mozilla-releng-blobs.s3.amazonaws.com/blobs/try/sha512/c33b64400e9847e9c8ff17761a867f70c917cad01a75ba1b26d4bae585e1adde11ab69d6a3954945a9c6a1d92844c666e5f19130196c414c8cd67d913715ff04
Any other ideas?
Flags: needinfo?(gbrown)
Comment 18•9 years ago
|
||
Not really. It looks like a very normal test -- I don't know why it isn't acting normal!
I notice defineLazyServiceGetter() is used here, and not in any of the other Android chrome tests -- could that be related?
Maybe try commenting out parts of the test?
Flags: needinfo?(gbrown)
| Assignee | ||
Comment 19•9 years ago
|
||
Comment on attachment 8717136 [details]
MozReview Request: Bug 1227743 - Remove snippet (id) from rotation after the user clicks on it. r=mfinkle
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/34057/diff/2-3/
| Assignee | ||
Updated•9 years ago
|
Attachment #8718401 -
Attachment is obsolete: true
| Assignee | ||
Comment 20•9 years ago
|
||
I'll deal with fixing the tests in bug 971107, I don't want to block landing this.
The tests pass locally, so at least that gives me confidence in the logic.
Blocks: 971107
| Assignee | ||
Comment 21•9 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/7ba6d7255327b319ada588bfa65787cb1b5acba3
Bug 1227743 - Remove snippet (id) from rotation after the user clicks on it. r=mfinkle
| Assignee | ||
Comment 22•9 years ago
|
||
Comment on attachment 8717136 [details]
MozReview Request: Bug 1227743 - Remove snippet (id) from rotation after the user clicks on it. r=mfinkle
Approval Request Comment
[Feature/regressing bug #]: Not a regression, but we suspect this will help fix the issue we're seeing with recent snippets campaigns in bug 1249260.
[User impact if declined]: Snippet message that was clicked will keep appearing until user clicks "x" button.
[Describe test coverage new/current, TreeHerder]: I wrote an automated test that passes locally, but I'm having issues landing it on automation. This code is well isolated, so unlikely to encounter a regression without a change to this file.
[Risks and why]: Low-risk. If anything breaks, it would be snippets, but it would be in the direction of *not* showing users snippets, which I'm fine with.
[String/UUID change made/needed]: None.
Attachment #8717136 -
Flags: approval-mozilla-beta?
Attachment #8717136 -
Flags: approval-mozilla-aurora?
Comment 23•9 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox47:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 47
Updated•9 years ago
|
status-firefox45:
--- → affected
status-firefox46:
--- → affected
Comment 24•9 years ago
|
||
Comment on attachment 8717136 [details]
MozReview Request: Bug 1227743 - Remove snippet (id) from rotation after the user clicks on it. r=mfinkle
Sure, should be in 45 beta 9.
Attachment #8717136 -
Flags: approval-mozilla-beta?
Attachment #8717136 -
Flags: approval-mozilla-beta+
Attachment #8717136 -
Flags: approval-mozilla-aurora?
Attachment #8717136 -
Flags: approval-mozilla-aurora+
Comment 25•9 years ago
|
||
Comment 26•9 years ago
|
||
has problems uplifting to beta :
warning: conflicts while merging mobile/android/components/Snippets.js! (edit, then use 'hg resolve --mark')
Flags: needinfo?(margaret.leibovic)
| Assignee | ||
Comment 27•9 years ago
|
||
Flags: needinfo?(margaret.leibovic)
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•