Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 191D2200C1F for ; Fri, 3 Feb 2017 11:18:57 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 17CAB160B48; Fri, 3 Feb 2017 10:18:57 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 66BBB160B55 for ; Fri, 3 Feb 2017 11:18:56 +0100 (CET) Received: (qmail 51137 invoked by uid 500); 3 Feb 2017 10:18:55 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 51124 invoked by uid 99); 3 Feb 2017 10:18:55 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Feb 2017 10:18:55 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 07BF61A0111 for ; Fri, 3 Feb 2017 10:18:55 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.199 X-Spam-Level: X-Spam-Status: No, score=-1.199 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id VffDKVAo1RsI for ; Fri, 3 Feb 2017 10:18:53 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id AA2315FB9D for ; Fri, 3 Feb 2017 10:18:52 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 284EEE04DB for ; Fri, 3 Feb 2017 10:18:52 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 95F402528D for ; Fri, 3 Feb 2017 10:18:51 +0000 (UTC) Date: Fri, 3 Feb 2017 10:18:51 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-12421) The CoreAndroid's loadUrl method should load web pages in the UI thread MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 03 Feb 2017 10:18:57 -0000 [ https://issues.apache.org/jira/browse/CB-12421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15851294#comment-15851294 ] ASF GitHub Bot commented on CB-12421: ------------------------------------- GitHub user wlmzfx opened a pull request: https://github.com/apache/cordova-android/pull/356 The CoreAndroid's loadUrl method should load web pages in the UI thread ### Platforms affected Android ### What does this PR do? Upate CoreAndroid's loadUrl method to load web pages in the UI thread ### What testing has been done on this change? Built and run the generated application, calling {color:red}navigator.app.loadUrl('http://domain.com', { "clearHistory": true}){color} , verify that there is not more errors and navigation can be made successfully. ### Checklist - [x] [Reported an issue](http://cordova.apache.org/contribute/issues.html) in the JIRA database - [x] Commit message follows the format: "CB-12421: The CoreAndroid's loadUrl method should load web pages in the UI thread" - [x] Added automated test coverage as appropriate for this change. (don't know how?) You can merge this pull request into a Git repository by running: $ git pull https://github.com/wlmzfx/cordova-android app-load-url Alternatively you can review and apply these changes as the patch at: https://github.com/apache/cordova-android/pull/356.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #356 ---- commit eaeaf94f2f7b986bc2210fa65b95c2b3f55f157a Author: Pu Wang Date: 2017-02-03T09:47:32Z The CoreAndroid's loadUrl method will load web pages in the UI thread ---- > The CoreAndroid's loadUrl method should load web pages in the UI thread > ----------------------------------------------------------------------- > > Key: CB-12421 > URL: https://issues.apache.org/jira/browse/CB-12421 > Project: Apache Cordova > Issue Type: Bug > Components: Android > Affects Versions: Master > Environment: Using android cordova with the crosswalk webview engine: > https://www.npmjs.com/package/cordova-plugin-crosswalk-webview/ > Reporter: Pu Wang > Priority: Minor > > Calling {color:red}navigator.app.loadUrl('http://domain.com', { "clearHistory": true}){color} to open the remote url inside the crosswalk webview, > there will be an error reported at {color:red}CordovaWebViewImpl.showWebPage(...){color} method, which is requiring the {color:red}engine.clearHistory(){color} method to be run in the cordova UI thread. -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org