зеркало из https://github.com/mozilla/gecko-dev.git
Make the sexy marklinkvisited hack work with _content links from old-style sidebar panels too.
This commit is contained in:
Родитель
006186e7fb
Коммит
e265a57ebb
|
@ -3819,13 +3819,14 @@ function asyncOpenWebPanel(event)
|
|||
}
|
||||
if (linkNode) {
|
||||
if (fieldNormalClicks && event.button == 0 && !event.ctrlKey && !event.shiftKey &&
|
||||
!event.altKey && !event.metaKey && !linkNode.getAttribute("target")) {
|
||||
!event.altKey && !event.metaKey &&
|
||||
(!linkNode.getAttribute("target") || linkNode.getAttribute("target") == "_content")) {
|
||||
var url = getShortcutOrURI(linkNode.href);
|
||||
if (!url)
|
||||
return false;
|
||||
markLinkVisited(linkNode.href, linkNode);
|
||||
loadURI(url);
|
||||
event.preventDefault();
|
||||
markLinkVisited(linkNode.href, linkNode);
|
||||
return false;
|
||||
}
|
||||
else
|
||||
|
|
Загрузка…
Ссылка в новой задаче