diff options
author | Moonchild <moonchild@palemoon.org> | 2020-08-30 09:29:45 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-08-30 09:29:45 +0000 |
commit | a4780ebaeb123ce9c793b85bb38a1701fad8f7ac (patch) | |
tree | 6354d39f9cda4637b084c265befd88e895e74aa8 /dom/base/nsContentSink.cpp | |
parent | c384fa6e25b07b37e9cc406da0c0aef583c61513 (diff) | |
download | UXP-a4780ebaeb123ce9c793b85bb38a1701fad8f7ac.tar UXP-a4780ebaeb123ce9c793b85bb38a1701fad8f7ac.tar.gz UXP-a4780ebaeb123ce9c793b85bb38a1701fad8f7ac.tar.lz UXP-a4780ebaeb123ce9c793b85bb38a1701fad8f7ac.tar.xz UXP-a4780ebaeb123ce9c793b85bb38a1701fad8f7ac.zip |
Issue #1629 - Uplift implementation of <link disabled> behavior for stylesheets.
Diffstat (limited to 'dom/base/nsContentSink.cpp')
-rw-r--r-- | dom/base/nsContentSink.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dom/base/nsContentSink.cpp b/dom/base/nsContentSink.cpp index 1e6465a1b..59f4a9f9a 100644 --- a/dom/base/nsContentSink.cpp +++ b/dom/base/nsContentSink.cpp @@ -789,13 +789,14 @@ nsContentSink::ProcessStyleLink(nsIContent* aElement, // If this is a fragment parser, we don't want to observe. // We don't support CORS for processing instructions bool isAlternate; + bool isExplicitlyEnabled; rv = mCSSLoader->LoadStyleLink(aElement, url, aTitle, aMedia, aAlternate, CORS_NONE, mDocument->GetReferrerPolicy(), integrity, mRunsToCompletion ? nullptr : this, - &isAlternate); + &isAlternate, &isExplicitlyEnabled); NS_ENSURE_SUCCESS(rv, rv); - if (!isAlternate && !mRunsToCompletion) { + if ((!isAlternate || isExplicitlyEnabled) && !mRunsToCompletion) { ++mPendingSheetCount; mScriptLoader->AddParserBlockingScriptExecutionBlocker(); } |