Opened 5 years ago

Closed 13 months ago

#3154 closed change (duplicate)

Extend handling of message in adblockplusui

Reported by: greiner Assignee:
Priority: P3 Milestone:
Module: User-Interface Keywords:
Cc: Blocked By:
Blocking: Platform: Unknown / Cross platform
Ready: yes Confidential: no
Tester: Unknown Verified working: no
Review URL(s):

Description (last modified by greiner)


The message responder already contains an "" message for opening pages such as the options page so it'd make sense to get rid of handling of "add-subscription" and extend "" instead. Furthermore the current options page introduced the "focus-section" message as part of #3024 which could also be added the same way.

What to change

In messageResponder.js:

  • Remove the handling of "add-subscription"
  • Let "" accept the additional message properties "focus" and "payload" where "payload" is optional data that should be forwarded to the specified page
  • Currently, the following values are in use:
    • "add-subscription" with the payload containing a "url" and "title" property describing the subscription that should be added
    • "configure-notifications"

Notes for dependency update

This change removes the handling of the "add-subscription" and "focus-section" messages with "". Therefore any occurence of those messages needs to be adapted accordingly.
Furthermore the optional callback parameter for ext.showOptions() can be removed since this was the only way it was used so far.

Change History (3)

comment:1 Changed 5 years ago by greiner

  • Priority changed from Unknown to P3

comment:2 Changed 5 years ago by greiner

  • Description modified (diff)

comment:3 Changed 13 months ago by greiner

  • Resolution set to duplicate
  • Status changed from new to closed

Closing this ticket in favor of webext#76.

Note: See TracTickets for help on using tickets.