Work around a platform issue with XHRs and app:// URLs

r? @asutherland: Here's a workaround for the yahoo.es issue. Hopefully we'll be able to remove it before 1.0.