cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sanjeewa kumara (JIRA)" <>
Subject [jira] [Commented] (CB-11665) Navigation to Fragment locations within Webview are parsed as an error
Date Mon, 22 Aug 2016 12:23:20 GMT


sanjeewa kumara commented on CB-11665:

My intention is to fix this bug. Can you assign this to me fix?

> Navigation to Fragment locations within Webview are parsed as an error
> ----------------------------------------------------------------------
>                 Key: CB-11665
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>         Environment: cordova-ios
>            Reporter: Brian Anderson
>              Labels: easyfix
>   Original Estimate: 1h
>  Remaining Estimate: 1h
> In the CDVUIWebviewDelegate if a fragment is loaded on a url the shouldStartLoadWithRequest
gets called and sets the _state to STATE_WAITING_FOR_LOAD_START. Being that when a fragment
is loaded the didStartLoading and didFinishLoading callbacks are not called, the next time
a link is clicked within our WebView the _state doesn't match any cases, falls into the default
case which then handles the request as an error by explicitly calling didFailLoadWithError.
I am curious if this is by design as I do notice that STATE_IOS5_POLLING_FOR_LOAD_START is
handled in shouldStartLoadWithRequest. Is there a specific case that we would actually want
to throw an error?
> My suggestion for fixing this would be to add STATE_WAITING_FOR_LOAD_START to the same
would basically just reset the state and loadCount seeing as we have essentially 'cancelled'
that pending request from the eyes of cordova. 
> Hoping to get more information about these decisions.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message