зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1555222 - Show the protections panel when meta+clicking the identity box. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D32951 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
749db71829
Коммит
0533c377b1
|
@ -868,10 +868,8 @@ var gIdentityHandler = {
|
|||
* Click handler for the identity-box element in primary chrome.
|
||||
*/
|
||||
handleIdentityButtonEvent(event) {
|
||||
// For Nightly users, show the WIP protections panel if the tracking
|
||||
// protection icon was clicked.
|
||||
if (this._protectionsPanelEnabled &&
|
||||
event.originalTarget.id == "tracking-protection-icon-animatable-image") {
|
||||
// For Nightly users, show the WIP protections panel if the meta key was held.
|
||||
if (this._protectionsPanelEnabled && event.metaKey) {
|
||||
gProtectionsHandler.handleProtectionsButtonEvent(event);
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -39,7 +39,7 @@ var gProtectionsHandler = {
|
|||
this.refreshProtectionsPopup();
|
||||
|
||||
// Now open the popup, anchored off the primary chrome element
|
||||
PanelMultiView.openPopup(this._protectionsPopup, this._protectionsIconBox, {
|
||||
PanelMultiView.openPopup(this._protectionsPopup, gIdentityHandler._identityIcon, {
|
||||
position: "bottomcenter topleft",
|
||||
triggerEvent: event,
|
||||
}).catch(Cu.reportError);
|
||||
|
|
Загрузка…
Ссылка в новой задаче