Page MenuHomePhabricator

"Uncaught TypeError: Cannot read property 'insertRule' of undefined" from MwEmbedSupport/Spinner.js
Closed, ResolvedPublic

Description

Viewing https://commons.wikimedia.org/wiki/Main_Page or https://en.wikipedia.org/wiki/Elizabeth_II and various pages on other wikis I often get this error in the console as of late:

Uncaught TypeError: Cannot read property 'insertRule' of undefined

https://github.com/wikimedia/mediawiki-extensions-MwEmbedSupport/blob/4c5eef784b/MwEmbedModules/MwEmbedSupport/jquery.loadingSpinner/Spinner.js#L66

Whenever this happens, the JavaScript runtime is broken very early on. So things like search suggestions, table of contents, sortable tables, centralnotice banners etc all do not operate.

Event Timeline

Krinkle raised the priority of this task from to Needs Triage.
Krinkle updated the task description. (Show Details)
Krinkle added subscribers: Krinkle, TheDJ, brooke.

I get this (blocking) error on any page on enwiki with an .ogg file on it. Chrome does not like somthing about the embedded player (that replaces the native player).

It's interesting that this suddenly started occurring...

Really, we should dump that entire spinner in favor of our core spinner module, but I'm wary about investing too much effort into it.

Change 255804 had a related patch set uploaded (by TheDJ):
Use mediawiki.util to insert style tags

https://gerrit.wikimedia.org/r/255804

Krinkle triaged this task as Medium priority.

Change 255804 merged by jenkins-bot:
Use mediawiki.util to insert style tags

https://gerrit.wikimedia.org/r/255804

Change 256446 had a related patch set uploaded (by Krinkle):
Use mediawiki.util to insert style tags

https://gerrit.wikimedia.org/r/256446

Change 256446 merged by jenkins-bot:
Use mediawiki.util to insert style tags

https://gerrit.wikimedia.org/r/256446

I wonder if this issue was the result of async loading and is thus also present in 1.26....