Android srcset bad craziness

Apparently a bunch of Android devices poop all over <img srcset>. I'm seeing nonsense in my logs where Android is trying to load the srcset as if it was src, e.g. from here it's doing:

GET /images/2017/inhuman-drywall1.jpg%20711w,%20https://www.jwz.org/images/scaled/640/2017/inhuman-drywall1.jpg%20640w,%20https://www.jwz.org/images/scaled/360/2017/inhuman-drywall1.jpg%20360w HTTP/1.1

The user agents look like

    "Dalvik/2.1.0 (Linux; U; Android 8.0.0; Pixel XL Build/OPR3.170623.008)"
and so on, with the version going down to 6.0.1.

But when I run an Android emulator, it has a more traditional user agent beginning with "Mozilla/5.0 (Linux; Android 8.0.0".

What is that other crap? And how is it so broken?


Update: The prime offender here seems to be NewsBlur, both their web site and their mobile apps. Several NewsBlur users have reported this bug to them, but they haven't done anything about it, so I guess I'll just start blocking them until they fix it.

Previously, previously.

Tags: , , ,

8 Responses:

  1. nmr says:

    Looks like it might be a WebView or similar, maybe in a newsreader

    • nmr says:

      Or maybe Samsung's browser, I take it all back I have no idea

    • Chad D Altenburg says:

      WebView. Where you need to create a WebChromeClient object in order to get more functionality out of JavaScript. Because creating a WebViewclient isn't sufficient enough!

      I know this doesn't answer the question though. I just wanted to look cool so that the next time I'm at the DNA Lounge, JWZ will tell me "It's nice to see that you've taken a break from writing useless responses on my blog."

  2. This is the sort of thing you would see from a non-browser program that makes HTTP requests.

  3. Steve Nordquist says:

    That other crap is a promise returned from a nifty modem juggler that considers itself a Java Bean and a lambda choocher. Why is dnetlambda.B never returning ART as its runtime, then pulling as though from mobile-optimized cache with don't care values? Mmm...REST A/B testing? Shadow DOM in ___ context pretends to be native, retro-native, etc. because brutal honesty on pieces' design date / don't blame a fully armed and operational Chrome?
    https://developers.google.com/web/updates/2017/09/abortable-fetch

    https://www.ebay.com/itm/Island-Trense-Dalvik-/182644835900?var=&epid=1744376742&hash=item2a867b063c:m:msvJMYbvCudEyj9eYuzh7AQ
    Oh yeah that's your Icelandic Snaffle. You gotta like, think in German Horse Common of they don' act right.

  • Previously