MozillaZine


Window.customElements unimplemented

Discussion of bugs in Seamonkey
zulc22
New Member
 
Posts: 1
Joined: September 18th, 2022, 8:13 pm

Post Posted September 18th, 2022, 9:24 pm

The Window.customElements API is unimplemented in SeaMonkey 2.53.13, specifially breaking GitHub release pages, removing the ability to view any assets (most of the time?)

Userscript fix for fixing GitHub specifically in case anyone else wants it -

Code: Select all
// ==UserScript==
// @name        Fix GH Releases for SeaMonkey
// @description zulc22, 2022. Only use if you see errors related to window.customElements in the console on GitHub. 0BSD
// @include     https://github.com/*/releases
// @version     1
// @grant       none
// ==/UserScript==

function getFragments() {
   [...document.getElementsByTagName("include-fragment")].forEach(async i => {
      if (!i.hasAttribute("loaded")) {
         src = i.getAttribute("src")
         console.log(src)
         i.innerHTML = await (await window.fetch(src)).text()
         i.setAttribute("loaded", "")
      }
   })
}

setInterval(getFragments, 1000)

frg
 
Posts: 1286
Joined: December 15th, 2015, 1:20 pm

Post Posted September 19th, 2022, 1:55 pm

2.53.14 and up have some more stuff in. Set dom.webcomponents.customelements.enabled and dom.webcomponents.enabled to true temporary. Helps with gitlab too and most stuff is ok. Seems they don't need shadow dom much or even for anything right now. Disable afterwards.

FRG

Return to SeaMonkey Bugs


Who is online

Users browsing this forum: No registered users and 0 guests