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 304010 0f821c314396155126f562b7bf7c8f89b62ab4ef
parent 304009 d4bafc568b6527350a86610046237e390fdbd91c
child 304011 a199a681419a9dd97268daa5db8eb1c54b8524bb
push id1001
push userraliiev@mozilla.com
push dateMon, 18 Jan 2016 19:06:03 +0000
treeherdermozilla-release@8b89261f3ac4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
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: