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 290020 0f821c314396155126f562b7bf7c8f89b62ab4ef
parent 290019 d4bafc568b6527350a86610046237e390fdbd91c
child 290021 a199a681419a9dd97268daa5db8eb1c54b8524bb
push id8654
push userraliiev@mozilla.com
push dateThu, 29 Oct 2015 11:48:40 +0000
treeherdermozilla-aurora@bc4551debe17 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssicking
bugs1216839
milestone44.0a1
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: