Closed Bug 1692066 Opened 5 years ago Closed 4 years ago

Save to Pocket button message response don't need panel ids in their name

Categories

(Firefox :: Pocket, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
92 Branch
Tracking Status
firefox92 --- fixed

People

(Reporter: thecount, Assigned: thecount)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Right now the messaging system for the save to Pocket button has an id in the response from the time when it was in an iframe to ensure no other events or panels may be listening. By putting the panel id right in the message response name, it made it unique.

The new messaging system is a 1 to 1 relationship, so there is no need to setup a unique event name, and it also means we can now allowlist all our event names because they are now static.

Depends on: 1688270
Assignee: nobody → sdowne
Priority: -- → P2
Blocks: 1699507

Steps to test:

  1. Open an article of some sort, a rec from newtab for example.
  2. Log into Pocket using the Pocket panel.
  3. Save the article, make sure it' saved to your Pocket.
  4. Click some of the on save recs in the panel.
  5. Delete the article, make sure it's now gone.
  6. Log out.

That should do it. It's just regression testing, really. If this is going to break something, it's likely to break it in very noticeable ways, and the panel would become non functional completely.

Pushed by sdowne@getpocket.com: https://hg.mozilla.org/integration/autoland/rev/d2d46aeb34e1 Pocket panels remove panel id from messaging. r=gvn
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 92 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: