Bug 174156

Summary: Preload link "as" value is not reflected properly
Product: WebKit Reporter: fbeaufort
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: yoav
Priority: P2    
Version: Safari Technology Preview   
Hardware: Mac   
OS: Unspecified   

fbeaufort
Reported 2017-07-05 05:32:27 PDT
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
Yoav Weiss
Comment 1 2017-07-06 02:38:48 PDT
Thanks for reporting! :) I created a patch at https://bugs.webkit.org/show_bug.cgi?id=174199
fbeaufort
Comment 2 2017-07-06 02:45:32 PDT
Should this patch apply to audio as well?
Yoav Weiss
Comment 3 2017-07-06 02:57:30 PDT
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
Comment 4 2017-07-06 03:02:48 PDT
*** This bug has been marked as a duplicate of bug 174199 ***
Note You need to log in before you can comment on or make changes to this bug.