Commit 56aa19b
Convert runtime flag to setting for lazy image loading
https://bugs.webkit.org/show_bug.cgi?id=215610
Patch by Rob Buis <rbuis@igalia.com> on 2020-09-15
Reviewed by Youenn Fablet.
LayoutTests/imported/w3c:
Remove the webkit-test-runner directive additions done to the lazy image loading tests.
The new expected results are improvements.
* web-platform-tests/html/semantics/embedded-content/the-img-element/below-viewport-image-loading-lazy-load-event.html:
* web-platform-tests/html/semantics/embedded-content/the-img-element/disconnected-image-loading-lazy.html:
* web-platform-tests/html/semantics/embedded-content/the-img-element/image-loading-eager.html:
* web-platform-tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-base-url-2-expected.txt:
* web-platform-tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-base-url-expected.txt:
* web-platform-tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-below-viewport-dynamic.html:
* web-platform-tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-crossorigin-change.sub.html:
* web-platform-tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-in-cross-origin-iframe-001.sub-expected.txt:
* web-platform-tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-in-cross-origin-iframe-002.sub-expected.txt:
* web-platform-tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-in-script-disabled-iframe.html:
* web-platform-tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-in-viewport-dynamic.html:
* web-platform-tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-load-event.html:
* web-platform-tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-move-document.html:
* web-platform-tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-move-into-script-disabled-iframe.html:
* web-platform-tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-multicol.html:
* web-platform-tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-multiple-times-expected.txt:
* web-platform-tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-referrerpolicy-change.sub.html:
* web-platform-tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-relevant-mutations-expected.txt:
* web-platform-tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-slow.html:
* web-platform-tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-srcset-expected.txt:
* web-platform-tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-to-eager-expected.txt:
* web-platform-tests/html/semantics/embedded-content/the-img-element/image-loading-lazy.html:
* web-platform-tests/html/semantics/embedded-content/the-img-element/invisible-image.html:
* web-platform-tests/html/semantics/embedded-content/the-img-element/move-element-and-scroll.html:
* web-platform-tests/html/semantics/embedded-content/the-img-element/not-rendered-below-viewport-image-loading-lazy.html:
* web-platform-tests/html/semantics/embedded-content/the-img-element/not-rendered-image-loading-lazy.html:
* web-platform-tests/html/semantics/embedded-content/the-img-element/picture-loading-lazy.html:
* web-platform-tests/html/semantics/embedded-content/the-img-element/remove-element-and-scroll.html:
Source/WebCore:
Convert runtime flag to setting for lazy image loading. Settings are
preferred over RuntimeEnabledFeatures as they are not global singletons
and are automatically accessible in layout tests via InternalSettingsGenerated.
* loader/ImageLoader.cpp:
Source/WebKit:
Remove lazy image loading runtime flag.
* UIProcess/API/C/WKPreferences.cpp:
(WKPreferencesSetLazyImageLoadingEnabled): Deleted.
(WKPreferencesGetLazyImageLoadingEnabled): Deleted.
* UIProcess/API/C/WKPreferencesRefPrivate.h:
Tools:
Remove lazy image loading runtime flag.
* WebKitTestRunner/TestController.cpp:
(WTR::TestController::resetPreferencesToConsistentValues):
(WTR::updateTestOptionsFromTestHeader):
* WebKitTestRunner/TestOptions.h:
(WTR::TestOptions::hasSameInitializationOptions const):
LayoutTests:
Update test expectations and adjust the tests in http/tests/lazyload/ to
enable the setting. Fow WK1 list more tests that should be skipped.
* TestExpectations:
* http/tests/lazyload/attribute.html:
* http/tests/lazyload/js-image.html:
* http/tests/lazyload/lazy-image-load-in-iframes-scripting-disabled.html:
* http/tests/lazyload/lazy-image-load-in-iframes-scripting-enabled.html:
* http/tests/lazyload/lazy.html:
* http/tests/lazyload/resources/lazy-load-in-iframe.html:
* platform/gtk/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt:
* platform/ios-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt:
* platform/mac-wk1/TestExpectations:
* platform/mac-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt:
* platform/wpe/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt:
Canonical link: https://commits.webkit.org/229365@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@267083 268f45cc-cd09-0410-ab3c-d52691b4dbfc1 parent d221873 commit 56aa19bCopy full SHA for 56aa19b
50 files changed
+183-77Lines changed: 183 additions & 77 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- LayoutTests
- http/tests/lazyload
- resources
- imported/w3c
- web-platform-tests/html/semantics/embedded-content/the-img-element
- platform
- gtk/imported/w3c/web-platform-tests/html/dom
- ios-wk2/imported/w3c/web-platform-tests/html/dom
- mac-wk1
- mac-wk2/imported/w3c/web-platform-tests/html/dom
- wpe/imported/w3c/web-platform-tests/html/dom
- Source
- WebCore
- loader
- WebKit
- UIProcess/API/C
- Tools
- WebKitTestRunner
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Expand file treeCollapse file tree
Open diff view settings
Collapse file
+23Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
1 | 24 | |
2 | 25 | |
3 | 26 | |
|
Collapse file
LayoutTests/TestExpectations
Copy file name to clipboardExpand all lines: LayoutTests/TestExpectations+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
550 | 550 | |
551 | 551 | |
552 | 552 | |
| 553 | + |
553 | 554 | |
554 | 555 | |
555 | 556 | |
| ||
573 | 574 | |
574 | 575 | |
575 | 576 | |
576 | | - |
577 | 577 | |
578 | 578 | |
579 | 579 | |
|
Collapse file
LayoutTests/http/tests/lazyload/attribute.html
Copy file name to clipboardExpand all lines: LayoutTests/http/tests/lazyload/attribute.html+6-1Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | | - |
| 1 | + |
2 | 2 | |
3 | 3 | |
4 | 4 | |
5 | 5 | |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
6 | 11 | |
7 | 12 | |
8 | 13 | |
|
Collapse file
LayoutTests/http/tests/lazyload/js-image.html
Copy file name to clipboardExpand all lines: LayoutTests/http/tests/lazyload/js-image.html+3-1Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | | - |
| 1 | + |
2 | 2 | |
3 | 3 | |
4 | 4 | |
| ||
8 | 8 | |
9 | 9 | |
10 | 10 | |
| 11 | + |
| 12 | + |
11 | 13 | |
12 | 14 | |
13 | 15 | |
|
Collapse file
LayoutTests/http/tests/lazyload/lazy-image-load-in-iframes-scripting-disabled.html
Copy file name to clipboardExpand all lines: LayoutTests/http/tests/lazyload/lazy-image-load-in-iframes-scripting-disabled.html+3-1Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | | - |
| 1 | + |
2 | 2 | |
3 | 3 | |
4 | 4 | |
5 | 5 | |
| 6 | + |
| 7 | + |
6 | 8 | |
7 | 9 | |
8 | 10 | |
|
Collapse file
LayoutTests/http/tests/lazyload/lazy-image-load-in-iframes-scripting-enabled.html
Copy file name to clipboardExpand all lines: LayoutTests/http/tests/lazyload/lazy-image-load-in-iframes-scripting-enabled.html+3-1Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | | - |
| 1 | + |
2 | 2 | |
3 | 3 | |
4 | 4 | |
5 | 5 | |
| 6 | + |
| 7 | + |
6 | 8 | |
7 | 9 | |
8 | 10 | |
|
Collapse file
LayoutTests/http/tests/lazyload/lazy.html
Copy file name to clipboardExpand all lines: LayoutTests/http/tests/lazyload/lazy.html+6-1Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | | - |
| 1 | + |
2 | 2 | |
3 | 3 | |
4 | 4 | |
5 | 5 | |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
6 | 11 | |
7 | 12 | |
8 | 13 | |
|
Collapse file
LayoutTests/http/tests/lazyload/resources/lazy-load-in-iframe.html
Copy file name to clipboardExpand all lines: LayoutTests/http/tests/lazyload/resources/lazy-load-in-iframe.html+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | | - |
| 1 | + |
2 | 2 | |
3 | 3 | |
4 | 4 | |
|
Collapse file
LayoutTests/imported/w3c/ChangeLog
Copy file name to clipboardExpand all lines: LayoutTests/imported/w3c/ChangeLog+39Lines changed: 39 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
1 | 40 | |
2 | 41 | |
3 | 42 | |
|
Collapse file
LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-img-element/below-viewport-image-loading-lazy-load-event.html
Copy file name to clipboardExpand all lines: LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-img-element/below-viewport-image-loading-lazy-load-event.html+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | | - |
| 1 | + |
2 | 2 | |
3 | 3 | |
4 | 4 | |
|
0 commit comments