[
https://issues.apache.org/jira/browse/CB-5235?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16291416#comment-16291416
]
ASF GitHub Bot commented on CB-5235:
------------------------------------
surajpindoria closed pull request #8: CB-5235 Resolved InAppBroswer failed test
case on WP8
URL: https://github.com/apache/cordova-plugin-inappbrowser/pull/8
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/src/wp/InAppBrowser.cs b/src/wp/InAppBrowser.cs
index 46e13849..c51ed587 100644
--- a/src/wp/InAppBrowser.cs
+++ b/src/wp/InAppBrowser.cs
@@ -47,17 +47,23 @@ public void open(string options)
_blank - always open in the InAppBrowser
_system - always open in the system web browser
*/
- switch (target)
+
+ if (null == target || target.Equals("_self"))
+ {
+ ShowCordovaBrowser(urlLoc);
+ }
+ else if (target.Equals("_system"))
{
- case "_blank":
- ShowInAppBrowser(urlLoc);
- break;
- case "_self":
- ShowCordovaBrowser(urlLoc);
- break;
- case "_system":
- ShowSystemBrowser(urlLoc);
- break;
+ ShowSystemBrowser(urlLoc);
+ }
+ else// new AppBrowser or anything else;
+ {
+ ShowInAppBrowser(urlLoc);
+ if (!target.Equals("_blank"))
+ {
+ //anything else
+ System.Diagnostics.Debug.WriteLine("InAppBrowser open
unkonw target: " + target + " ,with url: " + urlLoc);
+ }
}
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> Inappbrowser test case Default:CordovaWebView/Target=random don't response on
> WP8
> ---------------------------------------------------------------------------------
>
> Key: CB-5235
> URL: https://issues.apache.org/jira/browse/CB-5235
> Project: Apache Cordova
> Issue Type: Bug
> Components: cordova-plugin-inappbrowser
> Environment: windows phone8
> Reporter: puchen
> Labels: Inappbrowser, Triaged, wp8
>
> 1. create wp8 cordova project,add InappBrowser plugin;
> 2.add InappBrowser plugin test.
> 3. run this project.
> you will found the Default:CordovaWebView / target=random test case don't
> reponse on wp8.
> Default:CordovaWebView test case should open webConten in CordovaWebView ;
> target=random test case should be open in AppBrowser.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]