[Webkit-unassigned] [Bug 89313] New: "disabled" elements are not loaded when enabled
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Jun 17 12:08:24 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=89313
Summary: "disabled" elements are not loaded when enabled
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: WebCore Misc.
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: ilya at igvita.com
CC: tonyg at chromium.org
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Press+Start+2P" title="font" disabled>
Marking the element as disabled in the document skips the download on the initial load (which makes sense). However, if we toggle the element later, the resource is not downloaded. To reproduce: http://jsbin.com/3/omulof/2/quiet
It's interesting to note that enable/disable behavior *does work* for sub-resources. Ex:
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Press+Start+2P" title="font">
<script type="text/javascript">
document.styleSheets.item('slow').disabled = true;
</script>
The above will result in the load of the stlylesheet, but the linked fonts will not be fetched. However, if we later toggle the stylesheet as enabled, then the sub-resources are loaded: http://jsbin.com/3/omulof/3/quiet
--- Behavior we want:
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Press+Start+2P" title="font" disabled>
- Above should not be downloaded on page load.
- If we toggle above stylesheet via JS later, the resource fetch should happen (plus its sub-resources.. @imports, url(), etc)
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list