Closed Bug 1261376 Opened 8 years ago Closed 8 years ago

'Undefined' item in the pocket list after 'saving link to pocket' on a Google search result

Categories

(Firefox :: Pocket, defect)

46 Branch
defect
Not set
normal

Tracking

()

VERIFIED FIXED
Firefox 49
Tracking Status
firefox45 --- affected
firefox46 - wontfix
firefox47 --- wontfix
firefox48 - wontfix
firefox49 --- verified

People

(Reporter: pauly, Assigned: mixedpuppy)

Details

Attachments

(2 files, 2 obsolete files)

[Affected versions]:
- 46b6

[Affected platforms]:
- all

[Steps to reproduce]:
1. Start FX with a new profile
2. Sign in to Pocket
3. Open google.com and search for "wikipedia"
4. Right click on a search result and click 'Save link to Pocket'
5. Open the Pocket list

[Expected result]:
- "Wikipedia" item should be displayed in the pocket list

[Actual result]:
- "Undefined" item in the pocket list

[Regression range]:
- reproduced on FX 45, 48.0a1 (2016-03-31)
[Tracking Requested - why for this release]:
Serious functionality issue

Paul, why is this blocking bug 1215694, which didn't land for 45? Did you try to use mozregression to figure out when this broke, or if it's even a regression?
Flags: needinfo?(paul.silaghi)
No longer blocks: 1215694
Pocked moved to a system add-on in bug 1215694, which landed on FX 46. So, I though all the new bugs should block bug 1215694. The 45 flag is set so people to know this is not a recent regression caused by the Pocket moving.
This is repro on FX 38, when Pocket landed first time, so it's not a regression at all.
Flags: needinfo?(paul.silaghi)
Too late for 46 as we're heading into beta 11 now. We could still take a patch for 47. 
Does this have something to do with the redirect link from a search result? I assume this isn't true for saving all links. 
Mike, Shane, is this a concern for release?
Flags: needinfo?(mixedpuppy)
Flags: needinfo?(mconnor)
Comment on attachment 8740941 [details] [diff] [review]
Add missing title parameter

I guess I made a mistake for this mechanism, sorry.
Attachment #8740941 - Attachment is obsolete: true
Attachment #8740941 - Flags: review?(jaws)
Attached patch fix typeof check (obsolete) — Splinter Review
This issue comes with two flavours.  One, a failed typeof check in the addon.  Two, the server side probably does the same since we're not sending the title when the typeof check is fixed.

Addon fix is simple, self reviewing.  

Will ni? Nate about a fix on their end.
Assignee: nobody → mixedpuppy
Flags: needinfo?(mixedpuppy)
Flags: needinfo?(mconnor)
Attachment #8744461 - Flags: review+
Nate, if the server does not receive a title, the title remains "undefined".  Not sure where to report that.
Flags: needinfo?(nate)
Attachment #8744461 - Flags: review?(jaws)
Comment on attachment 8744461 [details] [diff] [review]
fix typeof check

Review of attachment 8744461 [details] [diff] [review]:
-----------------------------------------------------------------

Please use MozReview in the future as it allows me to expand the diff without having to pull up the file separately.

::: browser/extensions/pocket/content/pktApi.jsm
@@ +341,5 @@
>              since: since ? since : 0
>          };
>  
>          var title = options.title;
> +        if (typeof title !== "undefined") {

This should just be simplified to:
if (options.title) {
  sendData.title = options.title;
}

and the `title` variable can be removed.

Also, can you update the javadoc for this function to fix the grammar for the `options` param? It currently says, "Can provide an title and have a success and error callbacks" which sounds very awkward. Please replace it with "Can provide a string-based title, a `success` callback and an `error` callback."
Attachment #8744461 - Flags: review?(jaws) → review+
Attached patch fix typeof checkSplinter Review
review comments addressed
Attachment #8744461 - Attachment is obsolete: true
Attachment #8745011 - Flags: review+
https://hg.mozilla.org/mozilla-central/rev/14952428292c
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 48
Target Milestone: Firefox 48 → Firefox 49
Verified fixed FX 49.0a1 (2016-04-28) Win 7, Ubuntu 14.04, OS X 10.9.5.
Status: RESOLVED → VERIFIED
Long standing minor issue for pocket but we can track for 48 to make sure it lands there.
Shane, want to request uplift to aurora? This seems minor enough that I'm wontfixing it for 47 beta unless you really want it to make it into 47.
I'm not sure it's worth uplifting.  While this patch is "correct" from the client side, the server side needs to be fixed regardless.
ok, not tracking anymore then, thanks
Flags: needinfo?(nate)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: