Bug 174156
| Summary: | Preload link "as" value is not reflected properly | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | fbeaufort |
| Component: | New Bugs | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | yoav |
| Priority: | P2 | ||
| Version: | Safari Technology Preview | ||
| Hardware: | Mac | ||
| OS: | Unspecified | ||
fbeaufort
Code snippet below in Safari Technology Preview should return false as MediaPreloading is not enabled yet.
function preloadVideoSupported() {
const link = document.createElement('link');
link.as = 'video';
return (link.as === 'video');
}
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Yoav Weiss
Thanks for reporting! :) I created a patch at https://bugs.webkit.org/show_bug.cgi?id=174199
fbeaufort
Should this patch apply to audio as well?
Yoav Weiss
It should! Good catch. Corrected it now. Can you close this issue as a duplicate of the other one? (I should have uploaded here, but didn't :|)
fbeaufort
*** This bug has been marked as a duplicate of bug 174199 ***