mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-09 04:25:38 +00:00
Bug 608266 - [Regression] Can't open a link in new tab from the awesome panels [r=mfinkle]
This commit is contained in:
parent
9a23219760
commit
f8bbf211ce
@ -135,7 +135,7 @@
|
||||
let data = {
|
||||
target: this,
|
||||
json: {
|
||||
types: ["link-shareable"],
|
||||
types: ["link-shareable", "link-openable"],
|
||||
label: value,
|
||||
linkTitle: value,
|
||||
linkURL: url
|
||||
@ -573,7 +573,7 @@
|
||||
let data = {
|
||||
target: this,
|
||||
json: {
|
||||
types: ["edit-bookmark", "link-shareable"],
|
||||
types: ["edit-bookmark", "link-shareable", "link-openable"],
|
||||
label: this.name,
|
||||
linkTitle: this.name,
|
||||
linkURL: this.spec
|
||||
|
@ -555,7 +555,7 @@
|
||||
<richlistitem class="context-command" id="context-copy" type="copy" onclick="ContextCommands.copy();">
|
||||
<label value="©.label;"/>
|
||||
</richlistitem>
|
||||
<richlistitem class="context-command" id="context-openinnewtab" type="link-saveable" onclick="ContextCommands.openInNewTab();">
|
||||
<richlistitem class="context-command" id="context-openinnewtab" type="link-openable" onclick="ContextCommands.openInNewTab();">
|
||||
<label value="&contextOpenInNewTab.label;"/>
|
||||
</richlistitem>
|
||||
<richlistitem class="context-command" id="context-savelink" type="link-saveable" onclick="ContextCommands.saveLink();">
|
||||
|
@ -820,6 +820,11 @@ ContextHandler.registerType("link-saveable", function(aState, aElement) {
|
||||
return (protocol && protocol != "mailto" && protocol != "javascript" && protocol != "news" && protocol != "snews");
|
||||
});
|
||||
|
||||
ContextHandler.registerType("link-openable", function(aState, aElement) {
|
||||
let protocol = aState.linkProtocol;
|
||||
return (protocol && protocol != "mailto" && protocol != "javascript" && protocol != "news" && protocol != "snews");
|
||||
});
|
||||
|
||||
ContextHandler.registerType("link-shareable", function(aState, aElement) {
|
||||
return Util.isShareableScheme(aState.linkProtocol);
|
||||
});
|
||||
|
@ -638,10 +638,10 @@ placeitem {
|
||||
min-height: 70px; /* row size */
|
||||
}
|
||||
|
||||
autocompleteresult:hover:active,
|
||||
#popup_autocomplete autocompleteresult:hover:active,
|
||||
placelist placeitem:hover:active:not([selected="true"]),
|
||||
historylist placeitem:hover:active:not([selected="true"]):not([class="history-item-title"]),
|
||||
remotetabslist placeitem:hover:active:not([selected="true"]):not([class="remotetabs-item-title"]),
|
||||
historylist autocompleteresult:hover:active:not([selected="true"]):not([class="history-item-title"]),
|
||||
remotetabslist autocompleteresult:hover:active:not([selected="true"]):not([class="remotetabs-item-title"]),
|
||||
.autocompleteresult-selected {
|
||||
background-color: #8db8d8;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user