Diff
Modified: trunk/Source/WebCore/ChangeLog (248408 => 248409)
--- trunk/Source/WebCore/ChangeLog 2019-08-08 14:53:40 UTC (rev 248408)
+++ trunk/Source/WebCore/ChangeLog 2019-08-08 14:55:21 UTC (rev 248409)
@@ -1,3 +1,18 @@
+2019-08-08 Rob Buis <[email protected]>
+
+ Add runtime flag for lazy image loading
+ https://bugs.webkit.org/show_bug.cgi?id=199794
+
+ Reviewed by Darin Adler.
+
+ Add loading attribute and expose it on HTMLImageElement.
+
+ * html/HTMLAttributeNames.in:
+ * html/HTMLImageElement.idl:
+ * page/RuntimeEnabledFeatures.h:
+ (WebCore::RuntimeEnabledFeatures::setLazyImageLoadingEnabled):
+ (WebCore::RuntimeEnabledFeatures::lazyImageLoadingEnabled const):
+
2019-08-08 Miguel Gomez <[email protected]>
[GTK][WPE] Remove the reference to WebCore::Animation from TextureMapperAnimation
Modified: trunk/Source/WebCore/html/HTMLAttributeNames.in (248408 => 248409)
--- trunk/Source/WebCore/html/HTMLAttributeNames.in 2019-08-08 14:53:40 UTC (rev 248408)
+++ trunk/Source/WebCore/html/HTMLAttributeNames.in 2019-08-08 14:55:21 UTC (rev 248409)
@@ -165,6 +165,7 @@
leftmargin
link
list
+loading
longdesc
loop
low
Modified: trunk/Source/WebCore/html/HTMLImageElement.idl (248408 => 248409)
--- trunk/Source/WebCore/html/HTMLImageElement.idl 2019-08-08 14:53:40 UTC (rev 248408)
+++ trunk/Source/WebCore/html/HTMLImageElement.idl 2019-08-08 14:55:21 UTC (rev 248409)
@@ -44,6 +44,8 @@
[Conditional=ATTACHMENT_ELEMENT, EnabledAtRuntime=AttachmentElement] readonly attribute DOMString attachmentIdentifier;
+ [EnabledAtRuntime=LazyImageLoading, CEReactions, Reflect] attribute DOMString loading;
+
// Extensions
readonly attribute boolean complete;
[CEReactions=NotNeeded, Reflect, URL] attribute USVString lowsrc;
Modified: trunk/Source/WebCore/page/RuntimeEnabledFeatures.h (248408 => 248409)
--- trunk/Source/WebCore/page/RuntimeEnabledFeatures.h 2019-08-08 14:53:40 UTC (rev 248408)
+++ trunk/Source/WebCore/page/RuntimeEnabledFeatures.h 2019-08-08 14:55:21 UTC (rev 248409)
@@ -364,6 +364,9 @@
bool linkPreloadResponsiveImagesEnabled() const { return m_linkPreloadResponsiveImagesEnabled; }
void setLinkPreloadResponsiveImagesEnabled(bool isEnabled) { m_linkPreloadResponsiveImagesEnabled = isEnabled; }
+ void setLazyImageLoadingEnabled(bool areEnabled) { m_lazyImageLoadingEnabled = areEnabled; }
+ bool lazyImageLoadingEnabled() const { return m_lazyImageLoadingEnabled; }
+
WEBCORE_EXPORT static RuntimeEnabledFeatures& sharedFeatures();
#if HAVE(NSURLSESSION_WEBSOCKET)
@@ -558,6 +561,8 @@
bool m_isNSURLSessionWebSocketEnabled { false };
#endif
+ bool m_lazyImageLoadingEnabled { false };
+
friend class WTF::NeverDestroyed<RuntimeEnabledFeatures>;
};
Modified: trunk/Source/WebKit/ChangeLog (248408 => 248409)
--- trunk/Source/WebKit/ChangeLog 2019-08-08 14:53:40 UTC (rev 248408)
+++ trunk/Source/WebKit/ChangeLog 2019-08-08 14:55:21 UTC (rev 248409)
@@ -1,3 +1,18 @@
+2019-08-08 Rob Buis <[email protected]>
+
+ Add runtime flag for lazy image loading
+ https://bugs.webkit.org/show_bug.cgi?id=199794
+
+ Reviewed by Darin Adler.
+
+ Add LazyImageLoading preference.
+
+ * Shared/WebPreferences.yaml:
+ * UIProcess/API/C/WKPreferences.cpp:
+ (WKPreferencesSetLazyImageLoadingEnabled):
+ (WKPreferencesGetLazyImageLoadingEnabled):
+ * UIProcess/API/C/WKPreferencesRefPrivate.h:
+
2019-08-07 Chris Dumez <[email protected]>
Turn some ITP threading ASSERTs into RELEASE_ASSERTs
Modified: trunk/Source/WebKit/Shared/WebPreferences.yaml (248408 => 248409)
--- trunk/Source/WebKit/Shared/WebPreferences.yaml 2019-08-08 14:53:40 UTC (rev 248408)
+++ trunk/Source/WebKit/Shared/WebPreferences.yaml 2019-08-08 14:55:21 UTC (rev 248409)
@@ -1715,6 +1715,14 @@
webcoreBinding: RuntimeEnabledFeatures
condition: HAVE(NSURLSESSION_WEBSOCKET)
+LazyImageLoadingEnabled:
+ type: bool
+ defaultValue: false
+ humanReadableName: "Lazy Image Loading"
+ humanReadableDescription: "Enable Lazy Image Loading support"
+ webcoreBinding: RuntimeEnabledFeatures
+ category: experimental
+
# Deprecated
ICECandidateFilteringEnabled:
Modified: trunk/Source/WebKit/UIProcess/API/C/WKPreferences.cpp (248408 => 248409)
--- trunk/Source/WebKit/UIProcess/API/C/WKPreferences.cpp 2019-08-08 14:53:40 UTC (rev 248408)
+++ trunk/Source/WebKit/UIProcess/API/C/WKPreferences.cpp 2019-08-08 14:55:21 UTC (rev 248409)
@@ -2139,3 +2139,13 @@
{
return toImpl(preferencesRef)->referrerPolicyAttributeEnabled();
}
+
+void WKPreferencesSetLazyImageLoadingEnabled(WKPreferencesRef preferencesRef, bool flag)
+{
+ toImpl(preferencesRef)->setLazyImageLoadingEnabled(flag);
+}
+
+bool WKPreferencesGetLazyImageLoadingEnabled(WKPreferencesRef preferencesRef)
+{
+ return toImpl(preferencesRef)->lazyImageLoadingEnabled();
+}
Modified: trunk/Source/WebKit/UIProcess/API/C/WKPreferencesRefPrivate.h (248408 => 248409)
--- trunk/Source/WebKit/UIProcess/API/C/WKPreferencesRefPrivate.h 2019-08-08 14:53:40 UTC (rev 248408)
+++ trunk/Source/WebKit/UIProcess/API/C/WKPreferencesRefPrivate.h 2019-08-08 14:55:21 UTC (rev 248409)
@@ -591,6 +591,10 @@
WK_EXPORT void WKPreferencesSetReferrerPolicyAttributeEnabled(WKPreferencesRef, bool flag);
WK_EXPORT bool WKPreferencesGetReferrerPolicyAttributeEnabled(WKPreferencesRef);
+// Defaults to false
+WK_EXPORT void WKPreferencesSetLazyImageLoadingEnabled(WKPreferencesRef, bool flag);
+WK_EXPORT bool WKPreferencesGetLazyImageLoadingEnabled(WKPreferencesRef);
+
#ifdef __cplusplus
}
#endif
Modified: trunk/Source/WebKitLegacy/mac/ChangeLog (248408 => 248409)
--- trunk/Source/WebKitLegacy/mac/ChangeLog 2019-08-08 14:53:40 UTC (rev 248408)
+++ trunk/Source/WebKitLegacy/mac/ChangeLog 2019-08-08 14:55:21 UTC (rev 248409)
@@ -1,3 +1,21 @@
+2019-08-08 Rob Buis <[email protected]>
+
+ Add runtime flag for lazy image loading
+ https://bugs.webkit.org/show_bug.cgi?id=199794
+
+ Reviewed by Darin Adler.
+
+ Set lazyImageLoading runtime flag if preference is set.
+
+ * WebView/WebPreferenceKeysPrivate.h:
+ * WebView/WebPreferences.mm:
+ (+[WebPreferences initialize]):
+ (-[WebPreferences lazyImageLoadingEnabled]):
+ (-[WebPreferences setLazyImageLoadingEnabled:]):
+ * WebView/WebPreferencesPrivate.h:
+ * WebView/WebView.mm:
+ (-[WebView _preferencesChanged:]):
+
2019-08-07 Priyanka Agarwal <[email protected]>
Allow clients to toggle a text input field between being viewable and having characters hidden while maintaining
Modified: trunk/Source/WebKitLegacy/mac/WebView/WebPreferenceKeysPrivate.h (248408 => 248409)
--- trunk/Source/WebKitLegacy/mac/WebView/WebPreferenceKeysPrivate.h 2019-08-08 14:53:40 UTC (rev 248408)
+++ trunk/Source/WebKitLegacy/mac/WebView/WebPreferenceKeysPrivate.h 2019-08-08 14:55:21 UTC (rev 248409)
@@ -271,4 +271,5 @@
#define WebKitResizeObserverEnabledPreferenceKey @"WebKitResizeObserverEnabled"
#define WebKitCoreMathMLEnabledPreferenceKey @"WebKitCoreMathMLEnabled"
#define WebKitLinkPreloadResponsiveImagesEnabledPreferenceKey @"WebKitLinkPreloadResponsiveImagesEnabled"
+#define WebKitLazyImageLoadingEnabledPreferenceKey @"WebKitLazyImageLoadingEnabled"
Modified: trunk/Source/WebKitLegacy/mac/WebView/WebPreferences.mm (248408 => 248409)
--- trunk/Source/WebKitLegacy/mac/WebView/WebPreferences.mm 2019-08-08 14:53:40 UTC (rev 248408)
+++ trunk/Source/WebKitLegacy/mac/WebView/WebPreferences.mm 2019-08-08 14:55:21 UTC (rev 248409)
@@ -691,6 +691,7 @@
#if ENABLE(RESIZE_OBSERVER)
@NO, WebKitResizeObserverEnabledPreferenceKey,
#endif
+ @NO, WebKitLazyImageLoadingEnabledPreferenceKey,
@NO, WebKitCoreMathMLEnabledPreferenceKey,
@NO, WebKitLinkPreloadResponsiveImagesEnabledPreferenceKey,
nil];
@@ -3499,6 +3500,16 @@
[self _setBoolValue:flag forKey:WebKitLinkPreloadResponsiveImagesEnabledPreferenceKey];
}
+- (BOOL)lazyImageLoadingEnabled
+{
+ return [self _boolValueForKey:WebKitLazyImageLoadingEnabledPreferenceKey];
+}
+
+- (void)setLazyImageLoadingEnabled:(BOOL)flag
+{
+ [self _setBoolValue:flag forKey:WebKitLazyImageLoadingEnabledPreferenceKey];
+}
+
@end
@implementation WebPreferences (WebInternal)
Modified: trunk/Source/WebKitLegacy/mac/WebView/WebPreferencesPrivate.h (248408 => 248409)
--- trunk/Source/WebKitLegacy/mac/WebView/WebPreferencesPrivate.h 2019-08-08 14:53:40 UTC (rev 248408)
+++ trunk/Source/WebKitLegacy/mac/WebView/WebPreferencesPrivate.h 2019-08-08 14:55:21 UTC (rev 248409)
@@ -649,6 +649,7 @@
@property (nonatomic) BOOL resizeObserverEnabled;
@property (nonatomic) BOOL coreMathMLEnabled;
@property (nonatomic) BOOL linkPreloadResponsiveImagesEnabled;
+@property (nonatomic) BOOL lazyImageLoadingEnabled;
#if TARGET_OS_IPHONE
@property (nonatomic) BOOL quickLookDocumentSavingEnabled;
Modified: trunk/Source/WebKitLegacy/mac/WebView/WebView.mm (248408 => 248409)
--- trunk/Source/WebKitLegacy/mac/WebView/WebView.mm 2019-08-08 14:53:40 UTC (rev 248408)
+++ trunk/Source/WebKitLegacy/mac/WebView/WebView.mm 2019-08-08 14:55:21 UTC (rev 248409)
@@ -3186,6 +3186,7 @@
RuntimeEnabledFeatures::sharedFeatures().setReferrerPolicyAttributeEnabled([preferences referrerPolicyAttributeEnabled]);
RuntimeEnabledFeatures::sharedFeatures().setLinkPreloadResponsiveImagesEnabled([preferences linkPreloadResponsiveImagesEnabled]);
RuntimeEnabledFeatures::sharedFeatures().setDialogElementEnabled([preferences dialogElementEnabled]);
+ RuntimeEnabledFeatures::sharedFeatures().setLazyImageLoadingEnabled([preferences lazyImageLoadingEnabled]);
#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
RuntimeEnabledFeatures::sharedFeatures().setLegacyEncryptedMediaAPIEnabled(preferences.legacyEncryptedMediaAPIEnabled);
Modified: trunk/Source/WebKitLegacy/win/ChangeLog (248408 => 248409)
--- trunk/Source/WebKitLegacy/win/ChangeLog 2019-08-08 14:53:40 UTC (rev 248408)
+++ trunk/Source/WebKitLegacy/win/ChangeLog 2019-08-08 14:55:21 UTC (rev 248409)
@@ -1,3 +1,22 @@
+2019-08-08 Rob Buis <[email protected]>
+
+ Add runtime flag for lazy image loading
+ https://bugs.webkit.org/show_bug.cgi?id=199794
+
+ Reviewed by Darin Adler.
+
+ Set lazyImageLoading runtime flag if preference is set.
+
+ * Interfaces/IWebPreferencesPrivate.idl:
+ * WebPreferenceKeysPrivate.h:
+ * WebPreferences.cpp:
+ (WebPreferences::initializeDefaultSettings):
+ (WebPreferences::lazyImageLoadingEnabled):
+ (WebPreferences::setLazyImageLoadingEnabled):
+ * WebPreferences.h:
+ * WebView.cpp:
+ (WebView::notifyPreferencesChanged):
+
2019-07-28 Fujii Hironori <[email protected]>
[Win][WK1] Can't change Web Inspector frontend height in high DPI
Modified: trunk/Source/WebKitLegacy/win/Interfaces/IWebPreferencesPrivate.idl (248408 => 248409)
--- trunk/Source/WebKitLegacy/win/Interfaces/IWebPreferencesPrivate.idl 2019-08-08 14:53:40 UTC (rev 248408)
+++ trunk/Source/WebKitLegacy/win/Interfaces/IWebPreferencesPrivate.idl 2019-08-08 14:55:21 UTC (rev 248409)
@@ -242,4 +242,6 @@
HRESULT setResizeObserverEnabled([in] BOOL enabled);
HRESULT coreMathMLEnabled([out, retval] BOOL* enabled);
HRESULT setCoreMathMLEnabled([in] BOOL enabled);
+ HRESULT lazyImageLoadingEnabled([out, retval] BOOL*);
+ HRESULT setLazyImageLoadingEnabled([in] BOOL enabled);
}
Modified: trunk/Source/WebKitLegacy/win/WebPreferenceKeysPrivate.h (248408 => 248409)
--- trunk/Source/WebKitLegacy/win/WebPreferenceKeysPrivate.h 2019-08-08 14:53:40 UTC (rev 248408)
+++ trunk/Source/WebKitLegacy/win/WebPreferenceKeysPrivate.h 2019-08-08 14:55:21 UTC (rev 248409)
@@ -209,3 +209,5 @@
#define WebKitResizeObserverEnabledPreferenceKey "WebKitResizeObserverEnabled"
#define WebKitCoreMathMLEnabledPreferenceKey "WebKitCoreMathMLEnabled"
+
+#define WebKitLazyImageLoadingEnabledPreferenceKey "WebKitLazyImageLoadingEnabled"
Modified: trunk/Source/WebKitLegacy/win/WebPreferences.cpp (248408 => 248409)
--- trunk/Source/WebKitLegacy/win/WebPreferences.cpp 2019-08-08 14:53:40 UTC (rev 248408)
+++ trunk/Source/WebKitLegacy/win/WebPreferences.cpp 2019-08-08 14:55:21 UTC (rev 248409)
@@ -333,6 +333,8 @@
CFDictionaryAddValue(defaults, CFSTR(WebKitCoreMathMLEnabledPreferenceKey), kCFBooleanFalse);
+ CFDictionaryAddValue(defaults, CFSTR(WebKitLazyImageLoadingEnabledPreferenceKey), kCFBooleanFalse);
+
defaultSettings = defaults;
}
@@ -2292,3 +2294,17 @@
setBoolValue(WebKitResizeObserverEnabledPreferenceKey, enabled);
return S_OK;
}
+
+HRESULT WebPreferences::lazyImageLoadingEnabled(_Out_ BOOL* enabled)
+{
+ if (!enabled)
+ return E_POINTER;
+ *enabled = boolValueForKey(WebKitLazyImageLoadingEnabledPreferenceKey);
+ return S_OK;
+}
+
+HRESULT WebPreferences::setLazyImageLoadingEnabled(BOOL enabled)
+{
+ setBoolValue(WebKitLazyImageLoadingEnabledPreferenceKey, enabled);
+ return S_OK;
+}
Modified: trunk/Source/WebKitLegacy/win/WebPreferences.h (248408 => 248409)
--- trunk/Source/WebKitLegacy/win/WebPreferences.h 2019-08-08 14:53:40 UTC (rev 248408)
+++ trunk/Source/WebKitLegacy/win/WebPreferences.h 2019-08-08 14:55:21 UTC (rev 248409)
@@ -287,6 +287,8 @@
virtual HRESULT STDMETHODCALLTYPE setResizeObserverEnabled(BOOL);
virtual HRESULT STDMETHODCALLTYPE coreMathMLEnabled(_Out_ BOOL*);
virtual HRESULT STDMETHODCALLTYPE setCoreMathMLEnabled(BOOL);
+ virtual HRESULT STDMETHODCALLTYPE lazyImageLoadingEnabled(_Out_ BOOL*);
+ virtual HRESULT STDMETHODCALLTYPE setLazyImageLoadingEnabled(BOOL);
// WebPreferences
Modified: trunk/Source/WebKitLegacy/win/WebView.cpp (248408 => 248409)
--- trunk/Source/WebKitLegacy/win/WebView.cpp 2019-08-08 14:53:40 UTC (rev 248408)
+++ trunk/Source/WebKitLegacy/win/WebView.cpp 2019-08-08 14:55:21 UTC (rev 248409)
@@ -5608,6 +5608,11 @@
return hr;
settings.setCoreMathMLEnabled(!!enabled);
+ hr = prefsPrivate->lazyImageLoadingEnabled(&enabled);
+ if (FAILED(hr))
+ return hr;
+ RuntimeEnabledFeatures::sharedFeatures().setLazyImageLoadingEnabled(!!enabled);
+
return S_OK;
}
Modified: trunk/Tools/ChangeLog (248408 => 248409)
--- trunk/Tools/ChangeLog 2019-08-08 14:53:40 UTC (rev 248408)
+++ trunk/Tools/ChangeLog 2019-08-08 14:55:21 UTC (rev 248409)
@@ -1,5 +1,24 @@
2019-08-08 Rob Buis <[email protected]>
+ Add runtime flag for lazy image loading
+ https://bugs.webkit.org/show_bug.cgi?id=199794
+
+ Reviewed by Darin Adler.
+
+ Set lazyImageLoading preference as part of experimental features. Add
+ TestOption for lazy image loading.
+
+ * DumpRenderTree/TestOptions.cpp:
+ (TestOptions::TestOptions):
+ * DumpRenderTree/TestOptions.h:
+ * DumpRenderTree/mac/DumpRenderTree.mm:
+ (enableExperimentalFeatures):
+ (setWebPreferencesForTestOptions):
+ * DumpRenderTree/win/DumpRenderTree.cpp:
+ (enableExperimentalFeatures):
+
+2019-08-08 Rob Buis <[email protected]>
+
Import lazy loading WPT tests
https://bugs.webkit.org/show_bug.cgi?id=199795
Modified: trunk/Tools/DumpRenderTree/TestOptions.cpp (248408 => 248409)
--- trunk/Tools/DumpRenderTree/TestOptions.cpp 2019-08-08 14:53:40 UTC (rev 248408)
+++ trunk/Tools/DumpRenderTree/TestOptions.cpp 2019-08-08 14:55:21 UTC (rev 248409)
@@ -117,6 +117,8 @@
enableResizeObserver = parseBooleanTestHeaderValue(value);
else if (key == "experimental:CoreMathMLEnabled")
enableCoreMathML = parseBooleanTestHeaderValue(value);
+ else if (key == "experimental:LazyImageLoadingEnabled")
+ enableLazyImageLoading = parseBooleanTestHeaderValue(value);
pairStart = pairEnd + 1;
}
}
Modified: trunk/Tools/DumpRenderTree/TestOptions.h (248408 => 248409)
--- trunk/Tools/DumpRenderTree/TestOptions.h 2019-08-08 14:53:40 UTC (rev 248408)
+++ trunk/Tools/DumpRenderTree/TestOptions.h 2019-08-08 14:55:21 UTC (rev 248409)
@@ -48,6 +48,7 @@
bool adClickAttributionEnabled { false };
bool enableResizeObserver { false };
bool enableCoreMathML { false };
+ bool enableLazyImageLoading { false };
std::string jscOptions;
std::string additionalSupportedImageTypes;
Modified: trunk/Tools/DumpRenderTree/mac/DumpRenderTree.mm (248408 => 248409)
--- trunk/Tools/DumpRenderTree/mac/DumpRenderTree.mm 2019-08-08 14:53:40 UTC (rev 248408)
+++ trunk/Tools/DumpRenderTree/mac/DumpRenderTree.mm 2019-08-08 14:55:21 UTC (rev 248409)
@@ -877,8 +877,8 @@
[preferences setCSSOMViewScrollingAPIEnabled:YES];
[preferences setMediaRecorderEnabled:YES];
[preferences setReferrerPolicyAttributeEnabled:YES];
- [preferences setReferrerPolicyAttributeEnabled:YES];
[preferences setLinkPreloadResponsiveImagesEnabled:YES];
+ [preferences setLazyImageLoadingEnabled:YES];
}
// Called before each test.
@@ -1025,6 +1025,7 @@
preferences.adClickAttributionEnabled = options.adClickAttributionEnabled;
preferences.resizeObserverEnabled = options.enableResizeObserver;
preferences.coreMathMLEnabled = options.enableCoreMathML;
+ preferences.lazyImageLoadingEnabled = options.enableLazyImageLoading;
}
// Called once on DumpRenderTree startup.
Modified: trunk/Tools/DumpRenderTree/win/DumpRenderTree.cpp (248408 => 248409)
--- trunk/Tools/DumpRenderTree/win/DumpRenderTree.cpp 2019-08-08 14:53:40 UTC (rev 248408)
+++ trunk/Tools/DumpRenderTree/win/DumpRenderTree.cpp 2019-08-08 14:55:21 UTC (rev 248409)
@@ -795,6 +795,7 @@
prefsPrivate->setResizeObserverEnabled(TRUE);
prefsPrivate->setWebAnimationsEnabled(TRUE);
prefsPrivate->setServerTimingEnabled(TRUE);
+ prefsPrivate->setLazyImageLoadingEnabled(TRUE);
// FIXME: WebGL2
// FIXME: WebRTC
}
Modified: trunk/Tools/WebKitTestRunner/TestController.cpp (248408 => 248409)
--- trunk/Tools/WebKitTestRunner/TestController.cpp 2019-08-08 14:53:40 UTC (rev 248408)
+++ trunk/Tools/WebKitTestRunner/TestController.cpp 2019-08-08 14:55:21 UTC (rev 248409)
@@ -821,6 +821,7 @@
WKPreferencesSetColorFilterEnabled(preferences, options.enableColorFilter);
WKPreferencesSetPunchOutWhiteBackgroundsInDarkMode(preferences, options.punchOutWhiteBackgroundsInDarkMode);
WKPreferencesSetPageCacheEnabled(preferences, options.enablePageCache);
+ WKPreferencesSetLazyImageLoadingEnabled(preferences, options.enableLazyImageLoading);
static WKStringRef defaultTextEncoding = WKStringCreateWithUTF8CString("ISO-8859-1");
WKPreferencesSetDefaultTextEncodingName(preferences, defaultTextEncoding);
@@ -1401,6 +1402,8 @@
testOptions.enableAppNap = parseBooleanTestHeaderValue(value);
else if (key == "enablePageCache")
testOptions.enablePageCache = parseBooleanTestHeaderValue(value);
+ else if (key == "enableLazyImageLoading")
+ testOptions.enableLazyImageLoading = parseBooleanTestHeaderValue(value);
pairStart = pairEnd + 1;
}
}
Modified: trunk/Tools/WebKitTestRunner/TestOptions.h (248408 => 248409)
--- trunk/Tools/WebKitTestRunner/TestOptions.h 2019-08-08 14:53:40 UTC (rev 248408)
+++ trunk/Tools/WebKitTestRunner/TestOptions.h 2019-08-08 14:55:21 UTC (rev 248409)
@@ -93,6 +93,7 @@
bool shouldPresentPopovers { true };
bool enableAppNap { false };
bool enablePageCache { false };
+ bool enableLazyImageLoading { false };
double contentInsetTop { 0 };