GNOME Bugzilla – Bug 709570
Don't parse DOM if user denied request for spec-compliant services
Last modified: 2013-10-07 15:26:11 UTC
Currently we are parsing the DOM to figure out if the user clicked "deny" in the webview while adding an account (see bug 670298). There are better ways to do this than parsing the DOM if the service is following the specifications correctly. See 4.1.2.1 in https://tools.ietf.org/html/draft-ietf-oauth-v2-23 for the OAuth2 compliant way of doing this. Parsing the DOM is fragile because it will break if the provider changes the structure of the web pages, as it has now happened for Facebook. Ofcourse, there are some non-compliant implementations for which we need to fallback to parsing the DOM. eg., Flickr.
Created attachment 256628 [details] [review] oauth2: Don't parse the DOM to detect access_denied
Created attachment 256630 [details] [review] [gnome-3-10] oauth2: Don't parse the DOM to detect access_denied
Created attachment 256631 [details] [review] [gnome-3-8] oauth2: Don't parse the DOM to detect access_denied