Bug 234721

Summary: [GTK] imgur is broken
Product: WebKit Reporter: Michael Catanzaro <mcatanzaro>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: bugs-noreply, mcatanzaro, pedropaulosuzuki1
Priority: P2    
Version: WebKit Nightly Build   
Hardware: PC   
OS: Linux   

Description Michael Catanzaro 2021-12-28 06:10:03 PST
Imgur has been broken for several months now, e.g. https://imgur.com/cFJzvQn does not display any image.

I see some complaints in the web inspector:

[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (px.js.map, line 0)
[Error] Failed to load resource: the server responded with a status of 401 (Unauthorized) (me, line 0)
[Error] TypeError: undefined is not an object (evaluating 'navigator.credentials.get') — main.95adf28a1d5f6dc53a37.js:1:171055
	(anonymous function) (bundle.min.js:2:12635)
	ru (main.95adf28a1d5f6dc53a37.js:87:82447)
	(anonymous function) (main.95adf28a1d5f6dc53a37.js:87:89311)
	hi (main.95adf28a1d5f6dc53a37.js:87:48709)
	cu (main.95adf28a1d5f6dc53a37.js:87:83785)
	(anonymous function) (main.95adf28a1d5f6dc53a37.js:87:101437)
	(anonymous function)
	(anonymous function) (main.95adf28a1d5f6dc53a37.js:23:4082)
	Ec (main.95adf28a1d5f6dc53a37.js:87:97938)
	sc (main.95adf28a1d5f6dc53a37.js:87:94091)
	sc
	(anonymous function) (main.95adf28a1d5f6dc53a37.js:87:45487)
	(anonymous function) (main.95adf28a1d5f6dc53a37.js:23:4082)
	Zo (main.95adf28a1d5f6dc53a37.js:87:45426)
	Ko (main.95adf28a1d5f6dc53a37.js:87:45361)
	lc (main.95adf28a1d5f6dc53a37.js:87:94184)
	notify (main.95adf28a1d5f6dc53a37.js:1:21850)
	(anonymous function) (main.95adf28a1d5f6dc53a37.js:1:22489)
	(anonymous function) (main.95adf28a1d5f6dc53a37.js:1:22564)
	(anonymous function)
	d (main.95adf28a1d5f6dc53a37.js:1:291838)
	d (main.95adf28a1d5f6dc53a37.js:39:38826)
	(anonymous function) (main.95adf28a1d5f6dc53a37.js:1:135587)
	aa (main.95adf28a1d5f6dc53a37.js:1:135764)
	yt (main.95adf28a1d5f6dc53a37.js:1:64701)
	(anonymous function) (main.95adf28a1d5f6dc53a37.js:1:63674)
	(anonymous function) (main.95adf28a1d5f6dc53a37.js:1:57461)
	(anonymous function) (main.95adf28a1d5f6dc53a37.js:39:13570)
	(anonymous function) (main.95adf28a1d5f6dc53a37.js:1:21453)
	E (main.95adf28a1d5f6dc53a37.js:39:168225)
	dt (main.95adf28a1d5f6dc53a37.js:1:63202)
	c (main.95adf28a1d5f6dc53a37.js:28:39167)
	(anonymous function) (main.95adf28a1d5f6dc53a37.js:39:51316)
	u (main.95adf28a1d5f6dc53a37.js:47:4540)
	(anonymous function) (main.95adf28a1d5f6dc53a37.js:79:68864)
	qe (main.95adf28a1d5f6dc53a37.js:1:59987)
	h (main.95adf28a1d5f6dc53a37.js:1:19365)
	(anonymous function) (main.95adf28a1d5f6dc53a37.js:1:19957)
	promiseReactionJob
[Error] Unhandled Promise Rejection: TypeError: undefined is not an object (evaluating 'navigator.credentials.get')
	promiseEmptyOnRejected (main.95adf28a1d5f6dc53a37.js:1:171055)
	promiseReactionJob
[Info] Content blocker prevented frame displaying https://imgur.com/cFJzvQn from loading a resource from https://secure.adnxs.com/getuid?https%3A%2F%2Ftag-api-2-1.ccgateway.net%2Fv1%2Fevent%2Frecord%2Fuser-sync%3Fsrc%3Dxandr%26id%3Dimgur.com%26parentId%3De8a16a4090%26ccsid%3D655d7620-cd31-4bfe-9f98-7438512493d0%26ccuid%3D9ddcfa4e-ebe3-4f05-a4dc-8f5ab120a955%26ccpt%3D0%26pvid%3D928921a95c3a42c3aa8f26e500875754%26engid%3D16574736cc264a53b96b120e67de5625%26engcount%3D0%26engttl%3D60%26puid=$UID (bundle, line 154)
Comment 1 Pedro Paulo 2022-01-11 05:16:50 PST
Imgur uses a web structure like this:

```html
<!DOCTYPE html>
<html>
  <head> <!-- stuff here --> </head>
  <body>
    <div id="root"> <!-- all important stuff here --> </div>
  </body>
</html>
```

Everything is just appended to the "root" div, and it seems that on GNOME Web 41.3 nothing gets appended there. So it is probably some issue with the Javascript code on that website, which I didn't test yet.
Comment 2 Pedro Paulo 2022-01-11 05:31:24 PST
Also, this seems like a duplicate of #229923 <https://bugs.webkit.org/show_bug.cgi?id=229923>
Comment 3 Michael Catanzaro 2022-01-11 06:41:27 PST
(In reply to Pedro Paulo from comment #2)
> Also, this seems like a duplicate of #229923
> <https://bugs.webkit.org/show_bug.cgi?id=229923>

Yup

*** This bug has been marked as a duplicate of bug 229923 ***