To retrieve user passwords I search for them at:
- (void)webView:(WebView *)webView decidePolicyForNavigationAction:(NSDictionary *)actionInformation request:(NSURLRequest *)request frame:(WebFrame *)frame decisionListener:(id )listener
this gets called, among others, when the user submits a login form..
However, I have come across following web-site: Store
Here, when the user submits the login, no event from the WebPolicyDelegate is raised. It seems as if no action is taking place. The way the passwords are saved works for all other web sites I have tested (20+).
Any1 knows what is happening here? How could I retrieve the password content at this site when the user submits the form??
UPDATE
I now get the event call thanks to UIWebViewDelegate not monitoring XMLHttpRequest?, however, I am not able to access the password element. How can I retrieve it?
The problem is that the call [actionInformation objectForKey:@"WebActionFormKey"]; within webView:decidePolicyForNavigationAction:(NSDictionary *)actionInformation request:frame:decisionListener: returns nil
The page you're revering to uses AJAX to logon.
The WebPolicyDelegate is however only invoked on a page load. AJAX calls are no typical page load, the URL in the address bar remains after all the same after submitting the logon form. In conclusion, the WebPolicyDelegate is not invoked because no typical navigation actions takes place.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With