Revert "Bug 1968202 - Generalize GlobalStyleSheetCache to support author stylesheets. r=smaug" for causing wpt failures in prefetch-transfer-size-executor.html.

This reverts commit e2ac38c2a8.
This commit is contained in:
Serban Stanca
2025-05-24 04:50:14 +03:00
committed by sstanca@mozilla.com
parent 0374590d23
commit 4c663869d9
18 changed files with 149 additions and 172 deletions

View File

@@ -997,8 +997,8 @@ class StyleSheetsManager extends EventEmitter {
// FIXME(bug 1826538): Make accessiblecaret.css and similar UA-widget
// sheets system sheets, then remove this special-case.
if (
href === "resource://gre-resources/accessiblecaret.css" ||
href === "resource://gre-resources/details.css" ||
href === "resource://content-accessible/accessiblecaret.css" ||
href === "resource://content-accessible/details.css" ||
(href === "resource://devtools-highlighter-styles/highlighters.css" &&
this.#targetActor.sessionContext.type !== "all")
) {