mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 09:48:00 +01:00
Revert 93b0cf2a063b045268a55fbeac9473ce12234300's changes to hints.js
Until liberator.NEW_BACKGROUND_TAB operates differently based on the
setting of browser.tabs.loadInBackground, this code must remain. At
the moment, NEW_BACKGROUND_TAB only opens a true background tab if
loadInBackground=true. When loadInBackground=false, the meaning of
NEW_TAB and NEW_BACKGROUND_TAB flip. Hence, until they're invariant,
something like ;F (which must always load tabs in the background)
has to pay attention to loadInBackground.
This commit is contained in:
@@ -86,7 +86,13 @@ function Hints() //{{{
|
|||||||
// Used to open multiple hints
|
// Used to open multiple hints
|
||||||
function hintSequenceElement(elem)
|
function hintSequenceElement(elem)
|
||||||
{
|
{
|
||||||
buffer.followLink(elem, liberator.NEW_BACKGROUND_TAB);
|
// Want to always open sequence hints in background
|
||||||
|
// (remember: NEW_BACKGROUND_TAB and NEW_TAB semantics assume
|
||||||
|
// that loadInBackground=true)
|
||||||
|
if (options.getPref("browser.tabs.loadInBackground"))
|
||||||
|
buffer.followLink(elem, liberator.NEW_BACKGROUND_TAB);
|
||||||
|
else
|
||||||
|
buffer.followLink(elem, liberator.NEW_TAB);
|
||||||
|
|
||||||
// Move to next element in sequence
|
// Move to next element in sequence
|
||||||
// TODO: Maybe we find a *simple* way to keep the hints displayed rather than
|
// TODO: Maybe we find a *simple* way to keep the hints displayed rather than
|
||||||
|
|||||||
Reference in New Issue
Block a user