web-bugs icon indicating copy to clipboard operation
web-bugs copied to clipboard

m.futureshop.ca - site is entirely hosed under our mobile UA

Open AaronMT opened this issue 11 years ago • 12 comments

URL: http://m.futureshop.ca/?lang=en Browser / Version: Firefox Mobile 38.0 Operating System: Android Problem type: Looks like the website has a bug. Site owner: No

Steps to Reproduce

  1. Navigate to: http://m.futureshop.ca/?lang=en
  2. …

Expected Behavior: a working site Actual Behavior: site is hosed, nothing is displayed

AaronMT avatar Jan 29 '15 15:01 AaronMT

Hmm, weird. It's blank in Firefox desktop as well--no matter what UA string I use. Need to dig in.

miketaylr avatar Jan 29 '15 20:01 miketaylr

In bootstrap.css:

body {
    display: none;
    font-size: 12px;
}

And in Chrome you can see there's an inline style which overrides that: <body style="display: block;">

miketaylr avatar Jan 29 '15 21:01 miketaylr

Looking in script.min.js, in e.init() you can see where they call $('body').show()

$(document).ready(function() {
  var e = new mwa();
  ...
  e.init({setupAjaxPages: h.ajaxPages,onAppStart: function() {
      $("body").show();
      f.loadingAnimation();
      util.eraseCookie("bbyca_mob_optout_fs")
    }});
  ...
});

mwa.onAppStart is firing correctly--but for some reason $("body").show() doesn't do what I expect (even in the console). Running $("body").css("display", "block") gets the page to render. Still looking...

miketaylr avatar Jan 29 '15 22:01 miketaylr

Ah, OK. So it turns out this was a bug in jQuery that was fixed in 1.8.3. This site is using 1.7.1.

You can read up on http://bugs.jquery.com/ticket/10227 for more details, or https://bugzilla.mozilla.org/show_bug.cgi?id=797029 for even more details for the interested.

The suggested fix would be to update to jQuery >= 1.8.3, OR to change $("body").show(); to $("body").css("display", "block");

miketaylr avatar Jan 29 '15 22:01 miketaylr

I pointed them at this bug: https://twitter.com/miketaylr/status/560927278360559616

miketaylr avatar Jan 29 '15 22:01 miketaylr

duplicate of #626 and #610

karlcow avatar Jan 29 '15 22:01 karlcow

Thanks @karlcow -- had missed those.

miketaylr avatar Jan 29 '15 22:01 miketaylr

They replied that they passed it along to their developers: https://twitter.com/FutureShop/status/560933304267182081

We've passed that along. Thanks! :)

miketaylr avatar Jan 29 '15 22:01 miketaylr

Futureshop.ca URL feels OK, what's the problem?

sagrid avatar Feb 18 '15 09:02 sagrid

@sagrid which mobile device are you using?

karlcow avatar Feb 18 '15 14:02 karlcow

Still blank for me in Firefox for Android.

miketaylr avatar Mar 03 '15 21:03 miketaylr

m.futureshop.ca now redirects to m.bestbuy.ca (which still is blank, but they're working on it).

miketaylr avatar Sep 08 '15 20:09 miketaylr