# Button with drop-marker

**URL:** <https://discourse.mozilla.org/t/button-with-drop-marker/13184>\
**Category:** Development\
**Created:** [January 25, 2017, 4:08pm UTC](https://discourse.mozilla.org/t/button-with-drop-marker/13184 "2017-01-25T16:08:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sdar](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@sdar](https://discourse.mozilla.org/u/sdar)\
**Post date:** [January 25, 2017, 4:08pm UTC](https://discourse.mozilla.org/t/button-with-drop-marker/13184/1 "2017-01-25T16:08:55Z")

</div>

Hi, I want to port my extension to web-extensions but i can’t find a way to add a drop-marker on the side of an addon button like a lot of the old,and not so old, extensions do  
ie: Pick & Save Images, greasemonkey, stylish or my own:  
[https://addons.mozilla.org/en-US/firefox/addon/multiple-highlighter/](https://addons.mozilla.org/en-US/firefox/addon/multiple-highlighter/)  
 ![](https://us1.discourse-cdn.com/flex001/uploads/mozilla/original/2X/b/be4695a41683ad7460c6f580e5ccaf6ddeebb3d3.PNG)

Is there a way to do this using web-extensions?

---

<div class="post-metadata">

**Author:** ![noitidart](https://avatars.discourse-cdn.com/v4/letter/n/9f8e36/32.png) [@noitidart](https://discourse.mozilla.org/u/noitidart)\
**Post date:** [January 27, 2017, 8:04am UTC](https://discourse.mozilla.org/t/button-with-drop-marker/13184/2 "2017-01-27T08:04:25Z")

</div>

You can’t use drop markers anymore. The only option you have, is in Firefox 54+ we can now attach context menu to the browserAction. So you would create your browser action then use context menu API from background script with this code:

> **[menus](https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/menus)**
>
> Add items to the browser's menu system.

```
chrome.contextMenus.create({
  id: "clickme-radio-2",
  type: "radio",
  title: "Choose me - radio 2!",
  contexts: ["browser_action"],
  checked: false
});
```

---

<div class="post-metadata">

**Author:** ![sdar](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@sdar](https://discourse.mozilla.org/u/sdar)\
**Post date:** [January 28, 2017, 2:51am UTC](https://discourse.mozilla.org/t/button-with-drop-marker/13184/3 "2017-01-28T02:51:58Z")

</div>

Yeah I’ve already some context menus on the addon for some options that were useful in that position but i feel like the functionality in the button should be preserved cause is a way better place and it will annoy some of my users otherwise, this type of button is used in lots of addons so it’ll be cool if this can be added on web extensions too.

Whom should i ask about this?

---

<div class="post-metadata">

**Author:** ![freaktechnik](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/freaktechnik/32/37766_2.png) [@freaktechnik](https://discourse.mozilla.org/u/freaktechnik)\
**Post date:** [January 28, 2017, 10:11am UTC](https://discourse.mozilla.org/t/button-with-drop-marker/13184/4 "2017-01-28T10:11:36Z")

</div>

See [https://bugzilla.mozilla.org/show\_bug.cgi?id=1253419](https://bugzilla.mozilla.org/show_bug.cgi?id=1253419)

---

<div class="post-metadata">

**Author:** ![sdar](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@sdar](https://discourse.mozilla.org/u/sdar)\
**Post date:** [January 28, 2017, 1:54pm UTC](https://discourse.mozilla.org/t/button-with-drop-marker/13184/5 "2017-01-28T13:54:41Z")

</div>

Oh, that’s some great news for me, I’ll wait for this then before porting the addon.

---

<div class="post-metadata">

**Author:** ![kjemmo](https://avatars.discourse-cdn.com/v4/letter/k/439d5e/32.png) [@kjemmo](https://discourse.mozilla.org/u/kjemmo)\
**Post date:** [January 31, 2017, 2:33pm UTC](https://discourse.mozilla.org/t/button-with-drop-marker/13184/6 "2017-01-31T14:33:18Z")

</div>

I need this feature too. You can vote for the feature to help push it forward.
