view icons/open-incognito.svg @ 3:89239e60d9e1 default tip

Enable on privileged pages There are contexts in Firefox (for example, the default new tab page) that contain links to http(s) resources but are considered privileged. In these contexts `menus.onShown` does not provide the link URL to the extension and Open Incognito disables the context menu entry. However, if the entry is not disabled, the `onClicked` listener will actually know the link URL because a user's click on the extension's menu item is considered to be an explicit permission, so Open Incognito could work. Keep the menu item enabled if the URL is not available. There is a drawback that the item will be enabled but do nothing if the actual link has an unknown/unsupported protocol, but this is probably a more rare situation.
author Denis Lisov <dennis.lissov@gmail.com>
date Sat, 09 Feb 2019 03:38:05 +0300
parents 3353f3c48b6b
children
line wrap: on
line source

<!--
Copyright (C) 2018 Guido Berhoerster <guido+open-incognito@berhoerster.name>

This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
-->
<svg version="1.1" viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
  <rect width="48" height="48" rx="9" ry="9" fill="#6200a4"/>
  <path d="m30 12-6-6m0 0-6 6m6 8v-14" fill="none" stroke="#ffffff" stroke-linecap="round" stroke-width="4"/>
  <path id="mask-left-half" d="m12 24c-4 0-8 0-8 6 0 4 2 12 8 12 8 0 6-4 12-4v-12c-4 0-3-2-12-2zm3 6c4 0 5 1 6 2.5-1.4 2-3.8 2-6 2-1 0-3 0-5-2 1.8-2.5 4-2.5 5-2.5z" fill="#ffffff"/>
  <use transform="matrix(-1,0,0,1,48,0)" xlink:href="#mask-left-half"/>
</svg>