Bug 1486659 - p1: conform SharedMemory.describeContents() to Android API spec. r=snorp
authorJohn Lin <jolin@mozilla.com>
Mon, 26 Nov 2018 19:40:37 +0000
changeset 504528 b0fdcebfd20dd1319ea589ec79afc7dcad8a6c85
parent 504527 5b79f38fa7eec7e493654f113c362ade06c4fae1
child 504529 5d897c0c7a25a155fae7347954d8dc9b58bb5703
push id10290
push userffxbld-merge
push dateMon, 03 Dec 2018 16:23:23 +0000
treeherdermozilla-beta@700bed2445e6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssnorp
bugs1486659
milestone65.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 1486659 - p1: conform SharedMemory.describeContents() to Android API spec. r=snorp Differential Revision: https://phabricator.services.mozilla.com/D11936
mobile/android/geckoview/src/main/java/org/mozilla/gecko/mozglue/SharedMemory.java
--- a/mobile/android/geckoview/src/main/java/org/mozilla/gecko/mozglue/SharedMemory.java
+++ b/mobile/android/geckoview/src/main/java/org/mozilla/gecko/mozglue/SharedMemory.java
@@ -50,17 +50,17 @@ public class SharedMemory implements Par
         @Override
         public SharedMemory[] newArray(int size) {
             return new SharedMemory[size];
         }
     };
 
     @Override
     public int describeContents() {
-        return 0;
+        return CONTENTS_FILE_DESCRIPTOR;
     }
 
     @Override
     public void writeToParcel(Parcel dest, int flags) {
         // We don't want ParcelFileDescriptor.writeToParcel() to close the fd.
         dest.writeFileDescriptor(mDescriptor.getFileDescriptor());
         dest.writeInt(mSize);
         dest.writeInt(mId);