wordpress-mobile / WordPress-Android

WordPress for Android
http://android.wordpress.org
GNU General Public License v2.0
2.96k stars 1.31k forks source link

Post previews show black nav bar after user visits Unsupport Block Editor on Jetpack-connected sites #13133

Open guarani opened 3 years ago

guarani commented 3 years ago

Expected behavior

A black nav bar shouldn't be shown in post previews.

Actual behavior

Post previews sometimes show an unwanted black navigation bar. It looks like this happens after the user has used the Unsupported Block Editor.

Screenshot showing black nav bar in Unsupported Block Editor

Steps to reproduce the behavior

On a self-hosted site connected via Jetpack:

  1. Open a post containing an unsupported block (e.g. an Audio block at time of writing)
  2. Tap the (?) option to open the Unsupported Block Editor (UBE)
  3. Once the UBE is open, close it
  4. Close the post and tap the View button on the post list screen to preview the post
  5. Notice the black nav bar at the top of the preview
Tested on Samsung S10, Android 10, WPAndroid 15.8
marecar3 commented 3 years ago

We have closed PR: https://github.com/wordpress-mobile/WordPress-Android/pull/13142 because we want a different solution than we have in closed PR. (clear cookies)

At this moment we don't want to clear cookies because we don't want to user experience "Login with WordPress" flow each time when he tries to edit the block inside WebView.