Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 91DCE17BA6 for ; Fri, 6 Feb 2015 16:40:40 +0000 (UTC) Received: (qmail 71341 invoked by uid 500); 6 Feb 2015 16:40:37 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 71301 invoked by uid 500); 6 Feb 2015 16:40:37 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 70781 invoked by uid 99); 6 Feb 2015 16:40:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Feb 2015 16:40:37 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of martin.c.glez.glez@gmail.com designates 209.85.216.44 as permitted sender) Received: from [209.85.216.44] (HELO mail-qa0-f44.google.com) (209.85.216.44) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Feb 2015 16:40:32 +0000 Received: by mail-qa0-f44.google.com with SMTP id w8so11628692qac.3 for ; Fri, 06 Feb 2015 08:40:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Dr2YsM89Nxqzhv0vWV5tT/sSDuqJLjgHGw3D2NQ+qNQ=; b=P1rjy3HO6ua2jM+2BCrNl3OZ0Xf26DBuUW68TDV7BJtQRJt8/QCYEYv3YifJEjLt/E hF/oZCA2fFhxzLTCAzOAcQ5kzHcISjnILkxFgERWtFl5BCCkFK2AroNe96HlJJDE2Y7r C3F2QcGYXzpYVXUtjRiIc8g4Q9XP4/KBXStxfV6euzyPQAbnACRZyZ4tvr4YZZJJNIPn 2VtbdCwUwF+8HvgWRdZ0IKyCjUWR8pfgcLsJvdb0/VE72Usi4vEu/lrynUOjfzH/W0ii lmEc/ZIgMQxxoUaHvVvw6m1V+vEN/6W89zpgIEItiPWt1NYqGz7okRu6sJQU9fYlt610 WpWw== MIME-Version: 1.0 X-Received: by 10.224.114.209 with SMTP id f17mr10157209qaq.68.1423240811841; Fri, 06 Feb 2015 08:40:11 -0800 (PST) Received: by 10.140.29.199 with HTTP; Fri, 6 Feb 2015 08:40:11 -0800 (PST) In-Reply-To: References: Date: Fri, 6 Feb 2015 10:40:11 -0600 Message-ID: Subject: Re: [cordova-android] Commit related to CB-8317 brings issue reported in CB-7371 From: Martin Gonzalez To: dev@cordova.apache.org Content-Type: multipart/alternative; boundary=047d7bdc19ac052a65050e6e132a X-Virus-Checked: Checked by ClamAV on apache.org --047d7bdc19ac052a65050e6e132a Content-Type: text/plain; charset=UTF-8 The initial problem was the whitelist letting pass something like 'about:blank' to be loaded into the view, when all network access was allowed(access="*"), currently that problems is not present. Although, the the recreation triggers always a destruction, and during that event, loadUrlNow method triggers the load to the super class, if passes the conditions(AndroidWebView.java 375 line - cordova-android master). With commit ccceaeaca, that condition passes, loads the about:blank in the view and the app exits. Stack trace about the process can be found in the issue itself: https://issues.apache.org/jira/browse/CB-7371 2015-02-04 19:08 GMT-06:00 Andrew Grieve : > Hmm, just had a look at the bug and it's not obvious to me what the problem > is? Is there a stack trace for the crash? Is there a known fix for it that > doesn't involve not sending the "exit" event? > > On Fri, Jan 23, 2015 at 7:24 PM, Martin Gonzalez < > martin.c.glez.glez@gmail.com> wrote: > > > Right, an automation test would avoid future breaks, it can be done by > > recreating those steps or verifying that an url such as "about:blank" > > doesn't get loaded or go through the conditions in line 457 of > > cordovawebview class. > > > > I can get some test for it, sure thing. > > On 23 Jan 2015 6:08 PM, "Joe Bowser" wrote: > > > > > OK, now how do you automate that? I don't think anyone is going to > > remember > > > to do this to test for regressions. > > > > > > On Fri Jan 23 2015 at 4:06:07 PM Martin Gonzalez < > > > martin.c.glez.glez@gmail.com> wrote: > > > > > > > It's pretty easy, create a project, add platform android taken from > > > master > > > > branch, run it, then once the app is launched, minimize it, go to > > > settings, > > > > select another language, and then resume the app, by using the home > > > button. > > > > You'll see the crash at that point. > > > > On 23 Jan 2015 5:42 PM, "Joe Bowser" wrote: > > > > > > > > > I re-opened the initial issue. Is it possible to test this? > > > > > > > > > > On Fri Jan 23 2015 at 3:24:54 PM Martin Gonzalez < > > > > > martin.c.glez.glez@gmail.com> wrote: > > > > > > > > > > > Hello team, > > > > > > > > > > > > Recently tested cordova-android, master branch, and I found out > > that > > > > this > > > > > > commit: > > > > > > ccceaeaca > > > > > > Link: > > > > > > > > > > > https://git-wip-us.apache.org/repos/asf?p=cordova-android.gi > > > > t;a=commit;h= > > > > > > ccceaeaca2d72fb9708100ab2f70adb903a27d66 > > > > > > > > > > > > brings back the issue about app crash after language is changed, > by > > > > > > allowing to load an url with 'about:blank' value, triggered by > the > > > app > > > > > > recreation on during onResume/OnDestroy events. > > > > > > > > > > > > See https://issues.apache.org/jira/browse/CB-7371 for more > details > > > > about > > > > > > that crash. > > > > > > > > > > > > Tested on LG G2, Android 4.4.2 > > > > > > > > > > > > -- > > > > > > Regards, > > > > > > Martin Gonzalez > > > > > > > > > > > > > > > > > > > > > -- Regards, Martin Gonzalez --047d7bdc19ac052a65050e6e132a--