Bug 1216839 - Crash when loading icon from android:// protocol with xhr r=sicking
--- a/widget/android/nsAndroidProtocolHandler.cpp
+++ b/widget/android/nsAndroidProtocolHandler.cpp
@@ -64,17 +64,17 @@ NS_IMETHODIMP AndroidInputStream::IsNonB
}
class AndroidChannel : public nsBaseChannel
{
private:
AndroidChannel(nsIURI *aURI, jni::Object::Param aConnection) {
mConnection = aConnection;
- mURI = aURI;
+ SetURI(aURI);
auto type = widget::GeckoAppShell::ConnectionGetMimeType(mConnection);
if (type) {
SetContentType(nsCString(type));
}
}
public: