summaryrefslogtreecommitdiff
path: root/data/patches/gnuzilla-bug-1055166.patch
diff options
context:
space:
mode:
authorRuben Rodriguez <ruben@gnu.org>2015-03-08 15:14:03 +0000
committerRuben Rodriguez <ruben@gnu.org>2015-03-08 15:14:03 +0000
commit9a0fd32cf6e2ada37675bc743532c5004b16e5e3 (patch)
treed66faa3279486d2e8ad72bf70e7ef522460372a0 /data/patches/gnuzilla-bug-1055166.patch
parent2732de330618bc29b7ab07f4004d8e84f698cf95 (diff)
Added patches to fix build bugs for Windows, MacOS and Android
Diffstat (limited to 'data/patches/gnuzilla-bug-1055166.patch')
-rw-r--r--data/patches/gnuzilla-bug-1055166.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/data/patches/gnuzilla-bug-1055166.patch b/data/patches/gnuzilla-bug-1055166.patch
new file mode 100644
index 0000000..51b8ee5
--- /dev/null
+++ b/data/patches/gnuzilla-bug-1055166.patch
@@ -0,0 +1,33 @@
+From: James Willcox <snorp@snorp.net>
+Bug 1055166 - Catch IllegalStateException when recycling Message
+
+
+
+diff --git a/mobile/android/base/GeckoAppShell.java b/mobile/android/base/GeckoAppShell.java
+index b06547f8c8135542d27713bb8e4c5d0e7496bb17..a50538e1b3449d3767ad78ed3fb8e596bc1acfbb 100644
+--- a/mobile/android/base/GeckoAppShell.java
++++ b/mobile/android/base/GeckoAppShell.java
+@@ -2478,17 +2478,22 @@ public class GeckoAppShell
+ // Our "queue is empty" message; see runGecko()
+ msg.recycle();
+ return false;
+ }
+ if (msg.getTarget() == null)
+ Looper.myLooper().quit();
+ else
+ msg.getTarget().dispatchMessage(msg);
+- msg.recycle();
++
++ try {
++ msg.recycle();
++ } catch (IllegalStateException e) {
++ // There is nothing we can do here so just eat it
++ }
+ return true;
+ }
+
+ @WrapElementForJNI
+ public static void notifyWakeLockChanged(String topic, String state) {
+ if (getGeckoInterface() != null)
+ getGeckoInterface().notifyWakeLockChanged(topic, state);
+ }