Skip to content

Webviews: Not logged in state for comment box that needs authentication #16542

Description

@reginabally

This is a follow-up issue for #16278 and an additional bug discovered when viewing a post with a comment box that needs authentication.

Ticket: 4003515-zd-woothemes

Expected behavior

For issue reported in #16278, the user expects to be logged in to the webview since they're already logged in to the app. Also, they should be able to comment on the post that requires authentication without the need to log in twice on the same post.

Actual behavior

We need to log in twice to be able to like and comment on the same post through webview.

Steps to reproduce the behavior

  1. Go to Reader, select a post that has a custom domain mapped to the site and with the comment box option "Users must be registered and logged in to comment" enabled.
  2. Open up the post on webview.
  3. Tap the "Like" button and see the log in prompt.
  4. Log in with WordPress.com account.
  5. Tap the "Like" button again and see the action is registered.
  6. Scroll down to the comment box and notice I need to log in again to comment.
  7. Tap the log in link to login with WordPress.com.
  8. Now I can comment on the post.
  9. Close the app and repeat step 1 again. Notice that I need to log in again to like and comment.

It was also worth noting that the user who reported the issue was sometimes seeing the same notice requesting a log in to comment even after they performed step 7. You can see more description of the issue in the blog post linked in the ticket.

Screen recording: https://d.pr/v/X8NyDF/UaukldCFYM

Tested on iPhone SE, iOS 14.5.1, WPiOS 17.3

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions