Bug 118708 - Include disabled stylesheets in document.styleSheets
Summary: Include disabled stylesheets in document.styleSheets
Status: RESOLVED DUPLICATE of bug 56932
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: BlinkMergeCandidate
Depends on:
Blocks:
 
Reported: 2013-07-15 21:26 PDT by Ryosuke Niwa
Modified: 2022-08-20 15:21 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryosuke Niwa 2013-07-15 21:26:04 PDT
Consider merging https://chromium.googlesource.com/chromium/blink/+/ecb0f25278c990b2483ef78ed1612a5cb3cefd48

Stylesheets disabled through LinkStyle.disabled were not included in
Document.styleSheets, even if they existed as CSSStyleSheet objects.

Fixed LinkStyle::setDisabled so it propagates disabled state to the sheet
object when present.

According to the HTML5 spec, setting disabled on LinkStyle when the sheet is
not present should not have any effect and getting it should return false. I
did not dare to do any changes there in this CL.
Comment 1 Ryosuke Niwa 2022-08-20 15:21:21 PDT

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