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   

Description fbeaufort 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');
}
Comment 1 Yoav Weiss 2017-07-06 02:38:48 PDT
Thanks for reporting! :) I created a patch at https://bugs.webkit.org/show_bug.cgi?id=174199
Comment 2 fbeaufort 2017-07-06 02:45:32 PDT
Should this patch apply to audio as well?
Comment 3 Yoav Weiss 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 :|)
Comment 4 fbeaufort 2017-07-06 03:02:48 PDT

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