Bug 27965 - [iOS] WebView does not set CanGoBack or CanGoForward
Summary: [iOS] WebView does not set CanGoBack or CanGoForward
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.4.0
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-03-12 11:58 UTC by John Miller [MSFT]
Modified: 2015-07-29 13:48 UTC (History)
6 users (show)

Tags: AC ngf
Is this bug a regression?: ---
Last known good build:


Attachments
Test Case (206.70 KB, application/zip)
2015-03-12 11:58 UTC, John Miller [MSFT]
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description John Miller [MSFT] 2015-03-12 11:58:37 UTC
Created attachment 10299 [details]
Test Case

**Overview:**

   The attached sample reproduces an issue where the CanGoBack and CanGoForward properties of WebView are not returning the correct values. 

**Steps to Reproduce:**

   1. Run the sample on an iOS simulator
   2. Click the link to open a PDF. 
   3. Tap the Back button at the top.

**Actual Results:**

   Line 23 of TestPage.xaml.cs is expected to return true but it does not.

**Expected Results:**

   Line 23 of TestPage.xaml.cs is expected to return true and the WebView should navigate back.

**Build Date & Platform:**

   XF 1.4.0
Comment 1 Naqeeb 2015-03-12 13:39:10 UTC
I have checked this issue and able to reproduce this. To reproduce this issue I have followed steps given in bug description.

After deploying the application, I click on 'PDF', it open successfully but when I click on 'back' button I observed that it doesn't navigate back. 
Here is the screencast for the same: http://www.screencast.com/t/cY3KxhtjDU

Ide log: https://gist.github.com/saurabh360/e1010839b44aeae89a33
System log: https://gist.github.com/saurabh360/f4df3fa07d8964ce62bf
Build Output: https://gist.github.com/saurabh360/a1f717935648d70fa50e
Application Output: https://gist.github.com/saurabh360/a980a55078401ecd47ae

Environment info: 

Xamarin.Forms Version: 1.4.1.6342-pre1

=== Xamarin Studio ===

Version 5.9 (build 210)
Installation UUID: 2939b8b4-8977-42bd-82d6-100275ccd9cd
Runtime:
	Mono 3.12.0 ((detached/62a9629)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 312000083

=== Apple Developer Tools ===

Xcode 6.2 (6776)
Build 6C131e

=== Xamarin.Mac ===

Version: 1.12.0.14 (Enterprise Edition)

=== Xamarin.iOS ===

Version: 8.8.0.2 (Enterprise Edition)
Hash: ccfcd59
Branch: 
Build date: 2015-03-10 02:20:32-0400

=== Xamarin.Android ===

Version: 4.20.0.38 (Enterprise Edition)
Android SDK: /Users/360_macmini/Library/Developer/Xamarin/android-sdk-mac_x86
	Supported Android versions:
		1.6    (API level 4)
		2.1    (API level 7)
		2.2    (API level 8)
		2.3    (API level 10)
		3.1    (API level 12)
		4.0    (API level 14)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
Java SDK: /usr
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)

=== Xamarin Android Player ===

Version: Unknown version
Location: /Applications/Xamarin Android Player.app

=== Build Information ===

Release ID: 509000210
Git revision: f32ddb8c1f9836ba5e018ac51056008e9a1ac208
Build date: 2015-03-12 10:06:56-04
Xamarin addins: abfe34dd3ad6ef1a3b720d6cd74441c8e7aa22ff

=== Operating System ===

Mac OS X 10.9.4
Darwin 360-MACMINIs-Mac-mini-2.local 13.3.0 Darwin Kernel Version 13.3.0
    Tue Jun  3 21:27:35 PDT 2014
    root:xnu-2422.110.17~1/RELEASE_X86_64 x86_64