Bug 608266 - [Regression] Can't open a link in new tab from the awesome panels [r=mfinkle]

This commit is contained in:
Vivien Nicolas 2010-11-03 14:48:01 +01:00
parent 9a23219760
commit f8bbf211ce
4 changed files with 11 additions and 6 deletions

View File

@ -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

View File

@ -555,7 +555,7 @@
<richlistitem class="context-command" id="context-copy" type="copy" onclick="ContextCommands.copy();">
<label value="&copy.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();">

View File

@ -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);
});

View File

@ -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;
}