What could be wrong?

Debugging sites in Firefox Android

2016-05-16 / Firefox Android

WebIDE helps debugging web pages in Firefox on Android, but I’ve been missing simple ways to inject code that can help me debug issues. Debugging can be very time consuming, and one is always looking for shortcuts. If it’s possible to throw in a script that, say, throws whenever IFRAME.src is set it can allow me to zoom in on a method I need to find.

In Presto-based Opera, the User JavaScript API was an excellent debugging aid, as was the “Refresh from cache” command. Good, old days. Well, I’ve been exploring ways to inject debug code and find similar shortcuts in Firefox on Android, and here’s an addon that promises enabling similar stuff. See the readme for details.

(It’s admittedly a little more painful that it should be to keep editing/removing/re-installing the addon - for now - so it should probably be rewritten to just read “patch” files from the file system and evaluate them inside the page - or something. That way, just adb push-ing a file to the phone would change the debug output. Maybe someone can help implementing that?)

Bug safari w18/2016

It took me quite a while to find the actual problem in Webcompat 2406. It turns out to be a nice reminder that the world isn’t black and white: it takes two to tango, and here the JavaScript author makes one mistake (forgets listing all his Ext requirements) and Firefox another (doesn’t suppress script onload during sync XHR). Things that could be better on both sides. Keep fixing things..

Apology module!?

2016-05-03 / Found code

Website markup can hide many odd or funny things. Look at this inspector screenshot:

Spotted in the devtools inspector: comment saying Apology module

This is from a big, global site’s local presence in a country well known for politeness. I guess adding an “apology module” is a sign the devs at weather.yahoo.co.jp are very well attuned to local customs..

Bug safari w17/2016

So Firefox Devtools uses an open source library called Code Mirror for syntax highlighting - and it turns out it uses browser detection and breaks devtools if you spoof Firefox’s User-Agent. Ooops..

Bug safari w15/2016

Do you know how Google docs maps keys to actions? That’s a nifty trick..

Not a bug report, but it might be a good idea to not automatically turn smileys into emoticons when your website contains articles about the history of the internet..