Bug 174156 - Preload link "as" value is not reflected properly
Summary: Preload link "as" value is not reflected properly
Status: RESOLVED DUPLICATE of bug 174199
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: Safari Technology Preview
Hardware: Mac Unspecified
: P2 Normal
Assignee: Nobody
Depends on:
Reported: 2017-07-05 05:32 PDT by fbeaufort
Modified: 2017-07-06 03:02 PDT (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
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 ***