<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Add Link Preload as an off-by-default experimental feature menu item."
   href="https://bugs.webkit.org/show_bug.cgi?id=167201#c8">Comment # 8</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Add Link Preload as an off-by-default experimental feature menu item."
   href="https://bugs.webkit.org/show_bug.cgi?id=167201">bug 167201</a>
              from <span class="vcard"><a class="email" href="mailto:yoav&#64;yoav.ws" title="Yoav Weiss &lt;yoav&#64;yoav.ws&gt;"> <span class="fn">Yoav Weiss</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=167201#c5">comment #5</a>)
<span class="quote">&gt; Comment on <span class="bz_obsolete"><a href="attachment.cgi?id=299690&amp;action=diff" name="attach_299690" title="Patch">attachment 299690</a> <a href="attachment.cgi?id=299690&amp;action=edit" title="Patch">[details]</a></span>
&gt; Patch
&gt; 
&gt; View in context:
&gt; <a href="https://bugs.webkit.org/attachment.cgi?id=299690&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=299690&amp;action=review</a>
&gt; 
&gt; Neat!</span >

Thanks! :)

<span class="quote">&gt; 
&gt; r- only because I think there is some additional cleanup you should do when
&gt; switching to an experimental feature.
&gt; 
&gt; 1. Remove the legacy way to enable the feature for tests (since test runners
&gt; will auto-enable it now!)
&gt; 
&gt;     Source/WebCore/testing/InternalSettings.cpp
&gt;     187:   
&gt; RuntimeEnabledFeatures::sharedFeatures().
&gt; setLinkPreloadEnabled(m_linkPreloadEnabled);
&gt;     674:void InternalSettings::setLinkPreloadEnabled(bool enabled)
&gt;     676:   
&gt; RuntimeEnabledFeatures::sharedFeatures().setLinkPreloadEnabled(enabled);
&gt; 
&gt;     Source/WebCore/testing/InternalSettings.h
&gt;     113:    static void setLinkPreloadEnabled(bool);
&gt;     191:        bool m_linkPreloadEnabled;
&gt; 
&gt;     Source/WebCore/testing/InternalSettings.idl
&gt;     86:    void setLinkPreloadEnabled(boolean enabled);</span >

Removed

<span class="quote">&gt; 
&gt; 2. Remove uses of `internal.settings.setLinkPreloadEnabled` in tests:
&gt; 
&gt;     http/tests/fetch/redirectmode-and-preload.html
&gt;     http/tests/preload/delaying_onload_link_preload_after_discovery.html
&gt;    
&gt; http/tests/preload/delaying_onload_link_preload_after_discovery_image.html
&gt;     http/tests/preload/download_resources.html
&gt;     http/tests/preload/download_resources_from_header_iframe.html
&gt;     http/tests/preload/download_resources_from_invalid_headers.html
&gt;     http/tests/preload/dynamic_adding_preload.html
&gt;     http/tests/preload/dynamic_remove_preload_href.html
&gt;     http/tests/preload/not_delaying_window_onload_before_discovery.html
&gt;     http/tests/preload/onerror_event.html
&gt;     http/tests/preload/onload_event.html
&gt;     http/tests/preload/resources/download_resources_from_header.php
&gt;     http/tests/preload/resources/invalid_resources_from_header.php
&gt;     http/tests/preload/single_download_preload_runner.html
&gt;     http/tests/security/cached-cross-origin-preloaded-css-stylesheet.html
&gt;     http/tests/security/cached-cross-origin-preloading-css-stylesheet.html
&gt; </span >

Removed

<span class="quote">&gt; Some tests might need updates based on line numbers once you simplify.
&gt; </span >

Updated

<span class="quote">&gt; 3. Add to the experimental features test page a way to quick test the
&gt; experimental features menu (can be tested in MiniBrowser).
&gt; 
&gt;     Websites/webkit.org/experimental-features.html</span >

Added

<span class="quote">&gt; 
&gt; Hopefully there is a way to feature check this. Maybe checking for the
&gt; attribute being null instead of undefined.</span >

Of course there's a way to feature detect :) 
(Forcing new features through this demo page is a great way to make sure of that. I really like that)

<span class="quote">&gt; 
&gt; &gt; Source/WebKit/mac/WebView/WebPreferencesPrivate.h:172
&gt; &gt; +- (void)setLinkPreloadEnabled:(BOOL)flag;
&gt; &gt; +- (BOOL)linkPreloadEnabled;
&gt; 
&gt; At the bottom we have been just using &#64;property syntax. For example:
&gt; 
&gt;     &#64;property (nonatomic) BOOL intersectionObserverEnabled;</span >

Changed

<span class="quote">&gt; 
&gt; &gt; Source/WebKit/mac/WebView/WebView.mm:2901
&gt; &gt; +    RuntimeEnabledFeatures::sharedFeatures().setLinkPreloadEnabled([preferences linkPreloadEnabled]);
&gt; 
&gt; This could be moved to dot syntax:
&gt; 
&gt;     preferences.linkPreloadEnabled</span >

Moved</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>