mirror of https://github.com/gorhill/uBlock.git
work around for #2734 until fixed in Nightly
This commit is contained in:
parent
20346ef0ed
commit
a8382e821d
|
@ -478,12 +478,12 @@ vAPI.tabs.open = function(details) {
|
|||
var targetURLWithoutHash = pos === -1 ? targetURL : targetURL.slice(0, pos);
|
||||
|
||||
chrome.tabs.query({ url: targetURLWithoutHash }, function(tabs) {
|
||||
if ( chrome.runtime.lastError ) { /* noop */ }
|
||||
var tab = tabs[0];
|
||||
if ( !tab ) {
|
||||
wrapper();
|
||||
return;
|
||||
}
|
||||
|
||||
var _details = {
|
||||
active: true,
|
||||
url: undefined
|
||||
|
|
|
@ -14,19 +14,16 @@
|
|||
"commands": {
|
||||
"launch-element-zapper": {
|
||||
"suggested_key": {
|
||||
"default": "Alt+Z"
|
||||
},
|
||||
"description": "__MSG_popupTipZapper__"
|
||||
},
|
||||
"launch-element-picker": {
|
||||
"suggested_key": {
|
||||
"default": "Alt+X"
|
||||
},
|
||||
"description": "__MSG_popupTipPicker__"
|
||||
},
|
||||
"launch-logger": {
|
||||
"suggested_key": {
|
||||
"default": "Alt+L"
|
||||
},
|
||||
"description": "__MSG_popupTipLog__"
|
||||
}
|
||||
|
|
|
@ -999,7 +999,6 @@ var onHideTooltip = function() {
|
|||
uDom('#switch').on('click', toggleNetFilteringSwitch);
|
||||
uDom('#gotoZap').on('click', gotoZap);
|
||||
uDom('#gotoPick').on('click', gotoPick);
|
||||
uDom('a[href]').on('click', gotoURL);
|
||||
uDom('h2').on('click', toggleFirewallPane);
|
||||
uDom('#refresh').on('click', reloadTab);
|
||||
uDom('.hnSwitch').on('click', toggleHostnameSwitch);
|
||||
|
@ -1009,6 +1008,18 @@ var onHideTooltip = function() {
|
|||
|
||||
uDom('body').on('mouseenter', '[data-tip]', onShowTooltip)
|
||||
.on('mouseleave', '[data-tip]', onHideTooltip);
|
||||
|
||||
// https://github.com/gorhill/uBlock/issues/2734
|
||||
// Workaround until fixed in Firefox Nightly.
|
||||
if ( typeof chrome.runtime.getBrowserInfo !== 'function' ) {
|
||||
uDom('a[href]').on('click', gotoURL);
|
||||
} else {
|
||||
chrome.runtime.getBrowserInfo().then(function(info) {
|
||||
if ( info.name !== 'Firefox' ) {
|
||||
uDom('a[href]').on('click', gotoURL);
|
||||
}
|
||||
});
|
||||
}
|
||||
})();
|
||||
|
||||
/******************************************************************************/
|
||||
|
|
|
@ -17,8 +17,8 @@
|
|||
<p id="basicTools">
|
||||
<span id="gotoZap" class="fa tool" data-i18n-tip="popupTipZapper" data-tip-position="under"></span>
|
||||
<span id="gotoPick" class="fa tool" data-i18n-tip="popupTipPicker" data-tip-position="under"></span>
|
||||
<a href="logger-ui.html" class="fa tool enabled" data-i18n-tip="popupTipLog" data-tip-position="under"></a>
|
||||
<a href="dashboard.html" class="fa tool enabled" data-i18n-tip="popupTipDashboard" data-tip-position="under"></a>
|
||||
<a href="logger-ui.html" class="fa tool enabled" data-i18n-tip="popupTipLog" data-tip-position="under" target="uBOLogger"></a>
|
||||
<a href="dashboard.html" class="fa tool enabled" data-i18n-tip="popupTipDashboard" data-tip-position="under" target="uBODashboard"></a>
|
||||
</p>
|
||||
<h2 id="dfToggler" data-i18n="popupBlockedRequestPrompt"> </h2>
|
||||
<p class="statName">
|
||||
|
|
Loading…
Reference in New Issue