Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Greasemonkey HEAD + Tab Mix Plus incompatibility #1406

Closed
Martii opened this issue Aug 24, 2011 · 6 comments
Closed

Greasemonkey HEAD + Tab Mix Plus incompatibility #1406

Martii opened this issue Aug 24, 2011 · 6 comments
Milestone

Comments

@Martii
Copy link
Contributor

Martii commented Aug 24, 2011

Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20100101 Firefox/6.0
Greasemonkey HEAD
Tab Mix Plus 0.3.8.6

Greasemonkey has introduced a conflict with Tab Mix Plus when trying to open links in new tabs. It is unclear which add-on is responsible but it has been experienced by myself and at least one other at:

Anonymous wrote:
This version and the August 23 nightly have a bug that stops firefox 6 from being able to open links in a new tab when you middle click on them. DIsabling this or reverting to the previous version restores the functionality.
Anonymous wrote:
Same as Anonymous (23 August, 2011 16:58)

Opening links in new tabs (middle click) dont work in firefox 6. Downgrade to 0.9.8 solves problem for me.

Roland Spencer reviewed:
in version 0.9.10 and the August 23rd nightly, there is a bug which causes middle clicking of links to no longer function at all. Disabling GM or reverting to earlier versions (0.9.8 or the August 12th nightly) fixes the issue.

Temporary workaround is to disable TMP or revert to an earlier GM version.

See also:
TMP forum for cross-stream reporting.

@Martii
Copy link
Contributor Author

Martii commented Aug 24, 2011

Issue first appears in d6dd73a

@Martii
Copy link
Contributor Author

Martii commented Aug 24, 2011

Comment cross-stream

@makondo

I've returned false all the time in TMPs contentLinks.js and this seems to resolve the middle clicking and Ctrl+click issues with GM HEAD and TMP release.

function TMP_isGreasemonkeyScript(event, target) {
  if (event.button == 2)
    return false;

  if ("GM_BrowserUI" in window && GM_getEnabled()) {
    var url = target.getAttribute("href");
    if (url && url.match(/\.user\.js(\?|$)/i))
      return false; // return true;
  }

  return false;
}

I believe that this test is no longer necessary in the current GM HEAD and nightly builds from Anthony. Please confirm.

Thanks,

  • Marti -

See also greasemonkey#1406

@arantius
Please confirm as well.

Modified tabmixplus 0.3.8.6 with version bump to 8.0a2 (portions of TMP don't work in this alpha btw) can be found here.

@arantius
Copy link
Collaborator

Tentatively WONTFIXing this, because the error is purely inside TMP, not our code. I'm trying to reach out to their developer.

@arantius
Copy link
Collaborator

Confirmed with TMP developer, fix will be there.

arantius pushed a commit to arantius/greasemonkey that referenced this issue Sep 6, 2011
@pmorch
Copy link

pmorch commented Sep 7, 2011

I can confirm that Greasemonkey 0.9.10 + TMP 0.3.8.6 = broken middle-click but that Greasemonkey 0.9.11 + TMP 0.3.8.6 = working middle click

@arantius
Copy link
Collaborator

arantius commented Sep 7, 2011

So, for posterity:

As I said I mailed the TMP developer. I repeatedly tried to coach him into doing the right thing to fix this, and he repeatedly demonstrated a lack of ability to write working code. Thus, the .11 release to work around the issue.

(Specifically, he "just wanted to know if Greasemonkey is installed" and insisted that if ('undefined' != typeof GM_BrowserUI) ... was the way to do that. But that's exactly what caused this problem: detecting the presence of one thing (GM_BrowserUI) and making the assumption that some other weakly-coupled thing (GM_getEnabled) will thus work.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants