Bug 1216839 - Crash when loading icon from android:// protocol with xhr r=sicking
authorFabrice Desré <fabrice@mozilla.com>
Wed, 21 Oct 2015 13:53:08 -0700
changeset 289557 0f821c314396155126f562b7bf7c8f89b62ab4ef
parent 289556 d4bafc568b6527350a86610046237e390fdbd91c
child 289558 a199a681419a9dd97268daa5db8eb1c54b8524bb
push idunknown
push userunknown
push dateunknown
reviewerssicking
bugs1216839
milestone44.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1216839 - Crash when loading icon from android:// protocol with xhr r=sicking
widget/android/nsAndroidProtocolHandler.cpp
--- 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: