Closed Bug 1389721 Opened 6 years ago Closed 6 years ago

Right-click > Save Link to Pocket doesn't work

Categories

(Firefox :: Pocket, defect, P1)

57 Branch
defect

Tracking

()

VERIFIED FIXED
Firefox 58
Tracking Status
firefox-esr52 --- unaffected
firefox55 --- unaffected
firefox56 --- disabled
firefox57 --- verified
firefox58 --- verified

People

(Reporter: emmybaylove, Assigned: Gijs)

References

Details

(Keywords: regression, Whiteboard: [reserve-photon-structure])

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0
Build ID: 20170811100330

Steps to reproduce:

– Right-click a link on a webpage
– Select "Save Link to Pocket" in context menu


Actual results:

There is no indication that the action has been completed, and upon checking the Pocket list, the link is not present.


Expected results:

The link should be saved to the user's Pocket list.
Component: Untriaged → Pocket
the issue is reproducible and running mozregression on it points to bug 1355922 as the source of the regression.

the browser console logs the following while attempting to save a link to pocket through the context menu:
TypeError: event is undefined  browser-pageActions.js:464:1
	doCommandForAction chrome://browser/content/browser-pageActions.js:464:1
	doCommand resource:///modules/PageActions.jsm:705:5
	savePage chrome://pocket/content/Pocket.jsm:106:7
	oncommand chrome://browser/content/browser.xul:1:1
Blocks: 1355922
Status: UNCONFIRMED → NEW
Has Regression Range: --- → yes
Has STR: --- → yes
Ever confirmed: true
Version: 57 Branch → 56 Branch
Keywords: regression
Flags: needinfo?(gijskruitbosch+bugs)
Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
Flags: needinfo?(gijskruitbosch+bugs)
Priority: -- → P1
Whiteboard: [reserve-photon-structure]
Photon is disabled and Philipp confirmed this doesn't actually reproduce on release, so updating some tracking info. :-)
Version: 56 Branch → 57 Branch
Flags: qe-verify+
QA Contact: gwimberly
Comment on attachment 8914479 [details]
Bug 1389721 - fix page action menu to deal with not being passed an event, so the 'save link to pocket' context menu works,

https://reviewboard.mozilla.org/r/185808/#review190900

Thanks for fixing this and sorry for breaking it :(

::: commit-message-97efd:1
(Diff revision 1)
> +Bug 1389721 - fix 'save link as' pocket context menu functionality, r?jaws

Please change the commit message to be more descriptive.
Attachment #8914479 - Flags: review?(jaws) → review+
Pushed by gijskruitbosch@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/63c7cfadae7b
fix page action menu to deal with not being passed an event, so the 'save link to pocket' context menu works, r=jaws
https://hg.mozilla.org/mozilla-central/rev/63c7cfadae7b
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 58
Comment on attachment 8914479 [details]
Bug 1389721 - fix page action menu to deal with not being passed an event, so the 'save link to pocket' context menu works,

Approval Request Comment
[Feature/Bug causing the regression]: bug 1355922 and then some other photon-related changes
[User impact if declined]: completely broken context menu item (save page/link to pocket)
[Is this code covered by automated tests?]: no. pocket code doesn't have enough automated tests, unfortunately. I'll file a follow-up for this. We shouldn't be able to break things this badly without the tests yelling at us.
[Has the fix been verified in Nightly?]: not yet.
[Needs manual test from QE? If yes, steps to reproduce]: see comment #0
[List of other uplifts needed for the feature/fix]: none
[Is the change risky?]: no
[Why is the change risky/not risky?]: well, it's hard to get more broken than completely broken. I guess crashing the browser... In all seriousness, this is a straightforward small nullcheck in the right place, plus removing some dead code. Happily, I'm not trying to crashland this into rc either, but even then I'd be pretty OK with saying we should take this (!).
[String changes made/needed]: none
Attachment #8914479 - Flags: approval-mozilla-beta?
See Also: → 1405477
I filed bug 1405477 for adding more automated tests for pocket functionality.
Comment on attachment 8914479 [details]
Bug 1389721 - fix page action menu to deal with not being passed an event, so the 'save link to pocket' context menu works,

We probably want that to be fixed for 57. Taking it to 57b
Attachment #8914479 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
I have reproduced the issue mentioned in comment 0, using an affected Firefox 57.0a1 build (BuildId:20170811100330).

I have verified that the issue is not reproducible using Firefox 57.0b6 (Build Id:20171005195903) and Firefox 58.0a1 (BuildId:20171009100134) on Windows 10 64bit, macOS 10.11.6 and Ubuntu 16.04 64bit.
Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.