This bug is not in the unity-scopes-{shell,api}, although they could
somehow (but not easily) work around it.

The problem is that when an application (or scope, in this case) asks
Online Accounts for an OAuth token, in the best case it gets a cached
token, but sometimes (if the cached token does not exist or is expired)
we need to go through the full OAuth process. This involves firing up a
WebView, but showing it is not always necessary -- on the contrary,
since we are caching the cookies, often the remote websites immediately
redirects us to the callback URL from which we can obtain the OAuth
token. When this redirection happens immediately, we don't call show()
on the QQuickWindow which runs the Webview, and we immediately return
the result to the caller application.

However, due to bug 1352251,  even though we never call show() on the
QQuickWindow, a splash screen is shown. And unfortunately, we need to
instantiate a QGuiApplication in order to run the WebView, so I'm afraid
there is no way we can easily workaround this in Online Accounts.

So, the solution is to fix bug 1352251; on the other hand, since this
would be a risky change (and possibly with lots of unwanted side-
effects), I would propose to <hack>only (and always) disable the splash
screen for /usr/bin/online-accounts-ui</hack>.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1374394

Title:
  When logged into YouTube scope the video aggregator some sometimes
  pops up the OA loading screen, then the results go blank

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-system-settings-online-accounts/+bug/1374394/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to