-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Images fail to load periodically on ikea.com #6595
Conversation
EWS run on previous version of this PR (hash 18d0466) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mentioned on Slack that this patch wasn't working yet so maybe this PR should be marked as Draft?
Source/WebCore/page/Quirks.cpp
Outdated
@@ -1568,11 +1569,36 @@ bool Quirks::shouldExposeShowModalDialog() const | |||
{ | |||
if (!needsQuirks()) | |||
return false; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary change. This wasn't resolved.
Please put radar number here too. |
18d0466
to
4ab25fa
Compare
EWS run on previous version of this PR (hash 4ab25fa) |
π |
Source/WebCore/page/Quirks.cpp
Outdated
@@ -1568,11 +1569,36 @@ bool Quirks::shouldExposeShowModalDialog() const | |||
{ | |||
if (!needsQuirks()) | |||
return false; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary change. This wasn't resolved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is evidence this is a recent WebKit regression. Quirks are to work around a site bug, not a WebKit bug. So why are we doing a quirk?
Also, it seems lazy image loading got enabled before the regression point?
4ab25fa
to
a2f09c9
Compare
EWS run on previous version of this PR (hash a2f09c9)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM since Brandon tells me this is not a WebKit regression (The radar probably needs updating to clarify that).
|
||
bool Quirks::shouldDisableLazyImageLoadingQuirk() const | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In a local branch of mine, I have started to add comments for the quirks, because after a while it becomes very hard to understand where it comes from.
It probably be a good first step to refactor latter with messages in the console.
My format so far has been:
bool Quirks::shouldDisableLazyImageLoadingQuirk() const | |
{ | |
// ikea.com https://bugs.webkit.org/show_bug.cgi?id=248048 | |
bool Quirks::shouldDisableLazyImageLoadingQuirk() const | |
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was planning to add a link to the current Ikea discussion.
For the quirks I think I would like a bit more information then just a link to a bugzilla. Having information on the background of why this quirk exists, and information on how to eventually remove it would be nice too. @karlcow thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More would be better. We could come up with a kind of format where we could normalize step by step the other quirks too, but just start with this one.
Something that can be easily parsed.
a2f09c9
to
3272fbb
Compare
EWS run on current version of this PR (hash 3272fbb)
|
EWS run on current version of this PR (hash 3272fbb)
|
https://bugs.webkit.org/show_bug.cgi?id=248048 rdar://101657305 Reviewed by Chris Dumez. Adding a quirk to address images showing up as grey boxes on ikea.com. Disabling lazy image loading addresses an issue that was found in gatsby. This issue has been addressed in a future version of gatsby. * Source/WebCore/dom/Document.cpp: (WebCore::Document::lazyImageLoadingEnabled const): * Source/WebCore/dom/Document.h: * Source/WebCore/html/parser/HTMLPreloadScanner.cpp: (WebCore::TokenPreloadScanner::StartTagScanner::processAttribute): * Source/WebCore/loader/ImageLoader.cpp: (WebCore::ImageLoader::updateFromElement): * Source/WebCore/page/Quirks.cpp: (WebCore::Quirks::shouldExposeShowModalDialog const): (WebCore::Quirks::shouldDisableLazyImageLoading const): * Source/WebCore/page/Quirks.h: Canonical link: https://commits.webkit.org/256854@main
3272fbb
to
5e60d4e
Compare
Committed 256854@main (5e60d4e): https://commits.webkit.org/256854@main Reviewed commits have been landed. Closing PR #6595 and removing active labels. |
5e60d4e
3272fbb
π π§ͺ winπ§ͺ ios-wk2π§ͺ api-iosπ§ͺ api-macπ§ͺ mac-wk1π§ͺ mac-wk2π§ͺ mac-AS-debug-wk2