1. Bitbucket
  2. Public Issue Tracker
  3. master

Issues

Issue #8896 resolved

All links in Bitbucket site needs to be clicked twice using Firefox

Martin Kjellberg
created an issue

Recently (2-3 weeks ago?) bitbucket.org started behaving strange.

  • If I start FF with bitbucket in a tab, it won't load and the address bar is blank. The favicon is still there, though.

  • Almost everytime I click a link within Bitbucket, nothing happens. Clicking the second time works. Opening a link in a new tab or window produces a blank tab. Opening the link in another tab again works.

Different things I tried to resolve it:

  • I have tried FF26 and 27
  • Safe mode (that is, no addons)
  • Clear cache, cookies etc
  • Reset FF (which made me have to install all the addons again :))

One thing I'm wondering, is if you've started using some JS library for click tracking or something? Or updated one recently?

Comments (18)

  1. Brian Nguyen

    Hi Martin,

    We haven't implemented any click tracking on Bitbucket. I have tested this on FF 27.0 (Mac OSX 10.8.5) and haven't been able to reproduce this either.

    Are you able to see anything in the console? Perhaps you could see if the browser is downloading any scripts that are not Bitbucket related?

    Cheers, Brian

  2. Martin Kjellberg reporter

    Thanks for looking into this, Brian!

    I tried to mention earlier that I'm on Windows 7 (but couldn't post the comment).

    Nothing extraordinary is happening in the Firebug console. These two calls are often aborted but it doesn't seem to be the issue, except that the first one makes the repository button on top of the page empty: https://bitbucket.org/!api/1.0/user/repositories/overview/?max=5&;=1391693099411 (main.js, line 4) https://bitbucket.org/account/xhr/header_information/?=1391693099439 (main.js, line 4)

    which probably is because of the quite slow connection here in Galapagos (hardly reaches 30kb/s). Yesterday I got a timeout in some script at resourcejs.org (line 1), but couldn't reproduce it again.

    Here's a log from th built-in console in Firefox, I clicked links 6 times (click 2 and 6 are the ones that doesn't do anything):

    1:
    08:02:54.887 GET https://bitbucket.org/marty3d/casholas/commits [HTTP/1.1 200 OK 14629ms]
    08:03:12.578 Use of getUserData() or setUserData() is deprecated.  Use WeakMap or element.dataset instead. requestNotifier.js:64
    08:03:15.851 GET https://secure.gravatar.com/avatar/cf93a17a89646351d1911d740158eea9 [HTTP/1.1 304 Not Modified 8567ms]
    08:03:16.005 GET https://secure.gravatar.com/avatar/cf93a17a89646351d1911d740158eea9 [HTTP/1.1 304 Not Modified 11379ms]
    08:03:14.974 SyntaxError: Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead main.js:19
    08:03:14.974 Error: https://d3oaxc4q5k2d6q.cloudfront.net/m/05e7c301c7e8/amd/build/main.js is being assigned a //# sourceMappingURL, but already has one
    08:03:16.007 GET https://bitbucket.org/!api/1.0/user/repositories/overview/ [1ms]
    08:03:16.007 GET https://bitbucket.org/account/xhr/header_information/ [HTTP/1.1 200 OK 11176ms]
    08:03:15.571 SyntaxError: Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead index.js:13
    08:03:16.009 GET https://ssl.google-analytics.com/__utm.gif [HTTP/1.1 200 OK 13072ms]
    08:03:16.009 GET https://ssl.google-analytics.com/__utm.gif [HTTP/1.1 200 OK 15528ms]
    08:03:24.919 Use of getPreventDefault() is deprecated.  Use defaultPrevented instead. main.js:2
    08:03:31.534 GET https://beacon-2.newrelic.com/1/a2cef8c3d3 [HTTP/1.1 200 OK 3072ms]
    
    2:
    08:04:06.819 GET https://bitbucket.org/marty3d/casholas/issues [1ms]
    
    3:
    08:04:49.190 GET https://bitbucket.org/marty3d/casholas/issues [HTTP/1.1 200 OK 41576ms]
    08:05:35.255 Use of getUserData() or setUserData() is deprecated.  Use WeakMap or element.dataset instead. requestNotifier.js:64
    08:05:38.822 SyntaxError: Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead main.js:19
    08:05:38.822 Error: https://d3oaxc4q5k2d6q.cloudfront.net/m/05e7c301c7e8/amd/build/main.js is being assigned a //# sourceMappingURL, but already has one
    08:05:39.185 GET https://bitbucket.org/!api/1.0/user/repositories/overview/ [1ms]
    08:05:39.186 GET https://bitbucket.org/account/xhr/header_information/ [HTTP/1.1 200 OK 22525ms]
    08:05:39.385 SyntaxError: Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead index.js:13
    08:05:39.571 GET https://ssl.google-analytics.com/__utm.gif [1ms]
    08:05:39.571 GET https://ssl.google-analytics.com/__utm.gif [0ms]
    08:06:03.533 GET https://beacon-2.newrelic.com/1/a2cef8c3d3 [HTTP/1.1 200 OK 16703ms]
    08:06:09.090 Use of getPreventDefault() is deprecated.  Use defaultPrevented instead. main.js:2
    
    4:
    08:06:50.131 GET https://bitbucket.org/marty3d/casholas/overview [HTTP/1.1 200 OK 31835ms]
    08:07:28.311 Use of getUserData() or setUserData() is deprecated.  Use WeakMap or element.dataset instead. requestNotifier.js:64
    08:07:30.277 SyntaxError: Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead main.js:19
    08:07:30.277 Error: https://d3oaxc4q5k2d6q.cloudfront.net/m/05e7c301c7e8/amd/build/main.js is being assigned a //# sourceMappingURL, but already has one
    08:07:31.660 GET https://bitbucket.org/!api/1.0/user/repositories/overview/ [0ms]
    08:07:31.661 GET https://bitbucket.org/account/xhr/header_information/ [0ms]
    08:07:31.282 SyntaxError: Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead index.js:13
    08:07:31.748 GET https://ssl.google-analytics.com/__utm.gif [HTTP/1.1 200 OK 4260ms]
    08:07:31.749 GET https://ssl.google-analytics.com/__utm.gif [HTTP/1.1 200 OK 4273ms]
    08:07:36.213 GET https://beacon-2.newrelic.com/1/a2cef8c3d3 [HTTP/1.1 200 OK 5395ms]
    08:07:40.872 Use of getPreventDefault() is deprecated.  Use defaultPrevented instead. main.js:2
    
    5:
    08:08:17.350 GET https://bitbucket.org/marty3d/casholas/issues [HTTP/1.1 200 OK 38286ms]
    08:09:00.027 Use of getUserData() or setUserData() is deprecated.  Use WeakMap or element.dataset instead. requestNotifier.js:64
    08:09:03.257 GET https://secure.gravatar.com/avatar/cf93a17a89646351d1911d740158eea9 [HTTP/1.1 304 Not Modified 18264ms]
    08:09:02.437 SyntaxError: Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead main.js:19
    08:09:02.437 Error: https://d3oaxc4q5k2d6q.cloudfront.net/m/05e7c301c7e8/amd/build/main.js is being assigned a //# sourceMappingURL, but already has one
    08:09:03.259 GET https://bitbucket.org/!api/1.0/user/repositories/overview/ [1ms]
    08:09:03.259 GET https://bitbucket.org/account/xhr/header_information/ [HTTP/1.1 200 OK 22312ms]
    08:09:02.873 SyntaxError: Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead index.js:13
    08:09:03.628 GET https://ssl.google-analytics.com/__utm.gif [HTTP/1.1 200 OK 5814ms]
    08:09:03.629 GET https://ssl.google-analytics.com/__utm.gif [HTTP/1.1 200 OK 5837ms]
    08:09:20.607 GET https://beacon-2.newrelic.com/1/a2cef8c3d3 [1ms]
    08:09:23.835 Use of getPreventDefault() is deprecated.  Use defaultPrevented instead. main.js:2
    
    6:
    08:09:48.406 GET https://bitbucket.org/marty3d/casholas/src [0ms]
    

    Cheers, /Martin

    EDIT: Made the log a bit easier to read..

  3. Brian Nguyen

    Hi Martin,

    Looking at the log, I don't see anything untoward (apart from it being very slow). Unfortunately, without anything obviously wrong we'll have to try a lot of different things until something sticks.

    One possibility is that some of the links need javascript to work (the header menu for example). The time it takes to load in the javascript may mean that initially the links don't work. That said, that should only affect a handful of links and not all of them.

    One thing that does track clicks is google analytics but that has been running on Bitbucket for a few years now.

    I've tested this on Windows 7 and haven't been able to reproduce this either. Do you have this problem on IE or Chrome? I assume you only have this problem with Bitbucket? For example, do you have this issue using www.atlassian.com?

    Cheers, Brian

  4. Martin Kjellberg reporter

    The slowness is because I'm on a really shitty connection here, so that's to be expected.

    The funny thing is that even opening the link to this issue in Gmail returned an empty page..I actually had to click on it twice for Bitbucket to load!

    And yes, Bitbucket is the only site I've ever seen this with, using Firefox, it works perfectly in Chrome (haven't used IE for years). But I'm starting to suspect there is something else with my computer..have no idea what it could be, but I'll dig around and see if I can find anything related. Perhaps a conflict with SourceTree or some other 3rd party software that has ties to Bitbucket for some weird reason? I don't know..

    Anyway, if you don't have any suggestions on what to do except for the usual stuff (clearing cache, cookies etc), then I'll poke around and if I find it, I'll let you know!

    Meanwhile, sorry for taking your time on this and have a great weekend!

    Cheers, /Martin

  5. Peter Petreski

    Hi, FYI - I also see the same behaviour as that described by Martin Kjellberg. Every link on the bitbucket site needs to be clicked twice most of the time when using FF. (My version of FF is 28.0) This started happening a couple of weeks ago and still continues.

  6. Matt Baluyos

    Hi all,

    Confirming this behavior on my end also (Firefox 27.0.1 on OS X Mavericks - tested with all extensions disabled).

    No issue using another browser like Safari.

    Regards, Matt

  7. Jon Mooring staff

    Hi all,

    We think we've narrowed down the cause of the issue to a slow client connection + having SPDY enabled on our servers. We've disabled SPDY for the time being while we work through this. Can anyone confirm that this issue appears to be resolved now?

    Thanks,
    Jon

  8. Log in to comment