WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
REOPENED
216979
Fix image-loading-lazy-multiple-times.html
https://bugs.webkit.org/show_bug.cgi?id=216979
Summary
Fix image-loading-lazy-multiple-times.html
Rob Buis
Reported
2020-09-25 10:03:26 PDT
Fix image-loading-lazy-multiple-times.html
Attachments
Patch
(3.42 KB, patch)
2020-09-25 10:05 PDT
,
Rob Buis
no flags
Details
Formatted Diff
Diff
Patch
(3.67 KB, patch)
2020-10-07 13:21 PDT
,
Rob Buis
no flags
Details
Formatted Diff
Diff
Patch
(3.67 KB, patch)
2020-10-07 22:50 PDT
,
Rob Buis
no flags
Details
Formatted Diff
Diff
Patch
(3.73 KB, patch)
2021-03-17 06:51 PDT
,
Rob Buis
no flags
Details
Formatted Diff
Diff
Patch
(3.77 KB, patch)
2021-10-18 07:35 PDT
,
Rob Buis
no flags
Details
Formatted Diff
Diff
Patch
(3.79 KB, patch)
2021-12-17 02:53 PST
,
Rob Buis
no flags
Details
Formatted Diff
Diff
Patch
(3.66 KB, patch)
2021-12-30 01:34 PST
,
Rob Buis
no flags
Details
Formatted Diff
Diff
Patch
(4.21 KB, patch)
2022-09-01 07:43 PDT
,
Rob Buis
no flags
Details
Formatted Diff
Diff
Patch
(4.82 KB, patch)
2022-09-02 02:03 PDT
,
Rob Buis
no flags
Details
Formatted Diff
Diff
Show Obsolete
(8)
View All
Add attachment
proposed patch, testcase, etc.
Rob Buis
Comment 1
2020-09-25 10:05:53 PDT
Created
attachment 409703
[details]
Patch
Radar WebKit Bug Importer
Comment 2
2020-10-02 10:05:23 PDT
<
rdar://problem/69885316
>
Rob Buis
Comment 3
2020-10-07 13:21:08 PDT
Created
attachment 410771
[details]
Patch
Rob Buis
Comment 4
2020-10-07 22:50:38 PDT
Created
attachment 410810
[details]
Patch
EWS
Comment 5
2020-10-08 05:49:44 PDT
Committed
r268178
: <
https://trac.webkit.org/changeset/268178
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 410810
[details]
.
Karl Rackler
Comment 6
2020-10-16 16:07:27 PDT
Reverted
r268178
for reason: This reverts commit
r268178
because it caused a test failure. Committed
r268619
: <
https://trac.webkit.org/changeset/268619
>
ssggg2015
Comment 7
2020-10-18 23:22:08 PDT
Comment hidden (spam)
Comment on
attachment 410810
[details]
Patch
>Subversion Revision: 268138 >diff --git a/Source/WebCore/ChangeLog b/Source/WebCore/ChangeLog >index b79f977536dae32756d2f6d54e2beede7f28991e..d90086924a8b0add06e14ee683c99b77924916c0 100644 >--- a/Source/WebCore/ChangeLog >+++ b/Source/WebCore/ChangeLog >@@ -1,3 +1,18 @@ >+2020-10-07 Rob Buis <
rbuis@igalia.com
> >+ >+ Fix image-loading-lazy-multiple-times.html >+
https://bugs.webkit.org/show_bug.cgi?id=216979
>+ >+ Reviewed by NOBODY (OOPS!). >+ >+ Once an image has been lazy loaded, it should be possible >+ to trigger a new lazy load through relevant mutations. >+ >+ Test: imported/w3c/web-platform-tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-multiple-times.html >+ >+ * loader/ImageLoader.cpp: >+ (WebCore::ImageLoader::updateFromElement): >+ > 2020-10-07 Noam Rosenthal <
noam@webkit.org
> > > clip-path: path() ignores page zooming (Command-+) >diff --git a/Source/WebCore/loader/ImageLoader.cpp b/Source/WebCore/loader/ImageLoader.cpp >index 6c065d7813b194ee95f61b69041e1401bdb3ce0f..4899c2777981bd84f0a7433cb9d7f667bbe3959d 100644 >--- a/Source/WebCore/loader/ImageLoader.cpp >+++ b/Source/WebCore/loader/ImageLoader.cpp >@@ -206,7 +206,7 @@ void ImageLoader::updateFromElement(RelevantMutation relevantMutation) > document.cachedResourceLoader().m_documentResources.set(newImage->url().string(), newImage.get()); > document.cachedResourceLoader().setAutoLoadImages(autoLoadOtherImages); > } else { >- if (m_lazyImageLoadState == LazyImageLoadState::None && isImageElement) { >+ if ((m_lazyImageLoadState == LazyImageLoadState::None || m_lazyImageLoadState == LazyImageLoadState::FullImage) && isImageElement) { > auto& imageElement = downcast<HTMLImageElement>(element()); > if (imageElement.isLazyLoadable() && document.settings().lazyImageLoadingEnabled()) { > m_lazyImageLoadState = LazyImageLoadState::Deferred; >diff --git a/LayoutTests/imported/w3c/ChangeLog b/LayoutTests/imported/w3c/ChangeLog >index b62ef007ce4d1e92ec6e108daac7983d6e85d44e..1c6cc4b8816972ecdf289a075766cc87806e7e67 100644 >--- a/LayoutTests/imported/w3c/ChangeLog >+++ b/LayoutTests/imported/w3c/ChangeLog >@@ -1,3 +1,14 @@ >+2020-10-07 Rob Buis <
rbuis@igalia.com
> >+ >+ Fix image-loading-lazy-multiple-times.html >+
https://bugs.webkit.org/show_bug.cgi?id=216979
>+ >+ Reviewed by NOBODY (OOPS!). >+ >+ Add improved test result. >+ >+ * web-platform-tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-multiple-times-expected.txt: >+ > 2020-10-07 Noam Rosenthal <
noam@webkit.org
> > > clip-path: path() ignores page zooming (Command-+) >diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-multiple-times-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-multiple-times-expected.txt >index 33d738a925ea916824b7d5c00d4879db48be469c..830329d72649758bae5dd4c2b8e11f8d7e4136f2 100644 >--- a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-multiple-times-expected.txt >+++ b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-multiple-times-expected.txt >@@ -1,4 +1,4 @@ > > >-FAIL Images with loading='lazy' can be lazy loaded multiple times assert_unreached: The loading=lazy below-viewport image should lazily load its second image, and not load it eagerly when the `src` attribute is changed Reached unreachable code >+PASS Images with loading='lazy' can be lazy loaded multiple times
>
Rob Buis
Comment 8
2021-03-17 06:51:39 PDT
Created
attachment 423482
[details]
Patch
Rob Buis
Comment 9
2021-10-18 07:35:28 PDT
Created
attachment 441601
[details]
Patch
Rob Buis
Comment 10
2021-12-17 02:53:33 PST
Created
attachment 447444
[details]
Patch
Rob Buis
Comment 11
2021-12-30 01:34:32 PST
Created
attachment 448088
[details]
Patch
Rob Buis
Comment 12
2022-09-01 07:43:52 PDT
Created
attachment 462073
[details]
Patch
Rob Buis
Comment 13
2022-09-02 02:03:10 PDT
Created
attachment 462092
[details]
Patch
EWS Watchlist
Comment 14
2022-09-02 02:05:35 PDT
This patch modifies the imported WPT tests. Please ensure that any changes on the tests (not coming from a WPT import) are exported to WPT. Please see
https://trac.webkit.org/wiki/WPTExportProcess
Rob Buis
Comment 15
2022-09-02 02:07:30 PDT
Submitted web-platform-tests pull request:
https://github.com/web-platform-tests/wpt/pull/35766
EWS
Comment 16
2022-09-03 01:20:54 PDT
Committed
254127@main
(fe2b4d3a37eb): <
https://commits.webkit.org/254127@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 462092
[details]
.
WebKit Commit Bot
Comment 17
2022-10-31 16:56:31 PDT
Re-opened since this is blocked by
bug 247297
Said Abou-Hallawa
Comment 18
2022-11-01 13:51:03 PDT
The change
254127@main
causes the images on nytimes.com to flicker when hovering.
Darin Adler
Comment 19
2022-11-01 13:53:40 PDT
To be clear: This change *Was* causing that, and is now reverted.
Karl Dubost
Comment 20
2022-12-01 14:17:33 PST
See the discussions in
Bug 248025
and
https://github.com/whatwg/html/issues/8524
I wonder if there is ambiguity in between the two.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug