webcompat / web-bugs

A place to report bugs on websites.
https://webcompat.com
Mozilla Public License 2.0
746 stars 67 forks source link

www.sfchronicle.com - The sign-in page is not displayed #52447

Closed webcompat-bot closed 4 years ago

webcompat-bot commented 4 years ago

URL: https://www.sfchronicle.com/bayarea/article/Bay-Area-coronavirus-hospitalizations-ICU-cases-15242803.php

Browser / Version: Firefox Mobile 77.0 Operating System: Android Tested Another Browser: Yes Chrome

Problem type: Something else Description: Cannot log in. Tapping on Sign In on upper right part of page just opens a blank tab. Steps to Reproduce: Tapping on Sign In on upper right part of page just opens a blank tab. In Chrome, desktop Firefox, etc., Sign In goes to a log in page.

Browser Configuration
  • None

From webcompat.com with ❤️

cipriansv commented 4 years ago

Thanks for the report.

I was indeed able to reproduce the issue. A blank page is displayed instead of the login form.

Tested with: Browser / Version: Firefox Preview Nightly 200503 (🦎 77.0a1-20200430082621), Chrome Mobile 81.0.4044.117 Operating System: OnePlus6 (Android 10) - 1080 x 2280 pixels (~402 ppi pixel density)

This is the web page displayed in Firefox Preview Nightly:

image

And this is the web page displayed in Chrome:

image

Moving the issue to needsdiagnosis.

karlcow commented 4 years ago

On desktop this is managed by https://treg.hearstnp.com/oidc/oidc-client.min.js

i = r(1),
o = r(45);
var s = 500,
a = 'location=no,toolbar=no,width=500,height=500,left=100,top=100;',
u = '_blank';
e.PopupWindow = function () {
function PopupWindow(t) {
  var e = this;
  !function _classCallCheck(t, e) {
    if (!(t instanceof e)) throw new TypeError('Cannot call a class as a function')
  }(this, PopupWindow),
  this._promise = new Promise(function (t, r) {
    e._resolve = t,
    e._reject = r
  });
  var r = t.popupWindowTarget || u,
  n = t.popupWindowFeatures || a;
  this._popup = window.open('', r, n),
  this._popup && (i.Log.debug('PopupWindow.ctor: popup successfully created'), this._checkForPopupClosedTimer = window.setInterval(this._checkForPopupClosed.bind(this), s))
}
return PopupWindow.prototype.navigate = function navigate(t) {
  return this._popup ? t && t.url ? (i.Log.debug('PopupWindow.navigate: Setting URL in popup'), this._id = t.id, this._id && (window['popupCallback_' + t.id] = this._callback.bind(this)), this._popup.focus(), this._popup.window.location = t.url)  : (this._error('PopupWindow.navigate: no url provided'), this._error('No url provided'))  : this._error('PopupWindow.navigate: Error opening popup window'),
  this.promise
},

Let's see on the mobile.

so on mobile we also enter the PopupWindow() function.

and it worked, I got the window and the content.

Let's try again without breakpoints.

indeed it doesn't work without the breakpoints. It looks like a racing or performance issue.

karlcow commented 4 years ago

we had a couple of issues lately when the login window is blank… I wonder if they are all related and depends on the speed of communicating information in between the contexts.

karlcow commented 4 years ago

that looks similar to this for example. https://github.com/mozilla-mobile/fenix/issues/4918

karlcow commented 4 years ago

This is working for me in the latest firefox preview nightly.