mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-04-02 12:32:55 +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 = {
|
let data = {
|
||||||
target: this,
|
target: this,
|
||||||
json: {
|
json: {
|
||||||
types: ["link-shareable"],
|
types: ["link-shareable", "link-openable"],
|
||||||
label: value,
|
label: value,
|
||||||
linkTitle: value,
|
linkTitle: value,
|
||||||
linkURL: url
|
linkURL: url
|
||||||
@ -573,7 +573,7 @@
|
|||||||
let data = {
|
let data = {
|
||||||
target: this,
|
target: this,
|
||||||
json: {
|
json: {
|
||||||
types: ["edit-bookmark", "link-shareable"],
|
types: ["edit-bookmark", "link-shareable", "link-openable"],
|
||||||
label: this.name,
|
label: this.name,
|
||||||
linkTitle: this.name,
|
linkTitle: this.name,
|
||||||
linkURL: this.spec
|
linkURL: this.spec
|
||||||
|
@ -555,7 +555,7 @@
|
|||||||
<richlistitem class="context-command" id="context-copy" type="copy" onclick="ContextCommands.copy();">
|
<richlistitem class="context-command" id="context-copy" type="copy" onclick="ContextCommands.copy();">
|
||||||
<label value="©.label;"/>
|
<label value="©.label;"/>
|
||||||
</richlistitem>
|
</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;"/>
|
<label value="&contextOpenInNewTab.label;"/>
|
||||||
</richlistitem>
|
</richlistitem>
|
||||||
<richlistitem class="context-command" id="context-savelink" type="link-saveable" onclick="ContextCommands.saveLink();">
|
<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");
|
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) {
|
ContextHandler.registerType("link-shareable", function(aState, aElement) {
|
||||||
return Util.isShareableScheme(aState.linkProtocol);
|
return Util.isShareableScheme(aState.linkProtocol);
|
||||||
});
|
});
|
||||||
|
@ -638,10 +638,10 @@ placeitem {
|
|||||||
min-height: 70px; /* row size */
|
min-height: 70px; /* row size */
|
||||||
}
|
}
|
||||||
|
|
||||||
autocompleteresult:hover:active,
|
#popup_autocomplete autocompleteresult:hover:active,
|
||||||
placelist placeitem:hover:active:not([selected="true"]),
|
placelist placeitem:hover:active:not([selected="true"]),
|
||||||
historylist placeitem:hover:active:not([selected="true"]):not([class="history-item-title"]),
|
historylist autocompleteresult:hover:active:not([selected="true"]):not([class="history-item-title"]),
|
||||||
remotetabslist placeitem:hover:active:not([selected="true"]):not([class="remotetabs-item-title"]),
|
remotetabslist autocompleteresult:hover:active:not([selected="true"]):not([class="remotetabs-item-title"]),
|
||||||
.autocompleteresult-selected {
|
.autocompleteresult-selected {
|
||||||
background-color: #8db8d8;
|
background-color: #8db8d8;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user