Skip to content
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

srcdoc iframes fail to clear when srcdoc attribute removed #2889

Merged
merged 1 commit into from
Aug 1, 2022

Conversation

rniwa
Copy link
Member

@rniwa rniwa commented Jul 31, 2022

e540252

srcdoc iframes fail to clear when srcdoc attribute removed
https://bugs.webkit.org/show_bug.cgi?id=243385

Reviewed by Darin Adler.

The bug was caused by the superfluous null string check in HTMLFrameElementBase::parseAttribute in the case of srcdoc being a null string.
When both src and srcdoc are both, we should navigate to about:blank instead.

* LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/srcdoc-attribute-reset-expected.txt:
* Source/WebCore/html/HTMLFrameElementBase.cpp:
(WebCore::HTMLFrameElementBase::parseAttribute):

Canonical link: https://commits.webkit.org/252991@main

@rniwa rniwa requested a review from cdumez as a code owner July 31, 2022 19:07
@rniwa rniwa self-assigned this Jul 31, 2022
@rniwa rniwa added Frames For bugs specific to the use of HTML frame/iframe, as well as timing and frame targeting issues. Safari 15 labels Jul 31, 2022
@rniwa rniwa requested a review from darinadler July 31, 2022 20:02
@rniwa rniwa added the merge-queue Applied to send a pull request to merge-queue label Aug 1, 2022
https://bugs.webkit.org/show_bug.cgi?id=243385

Reviewed by Darin Adler.

The bug was caused by the superfluous null string check in HTMLFrameElementBase::parseAttribute in the case of srcdoc being a null string.
When both src and srcdoc are both, we should navigate to about:blank instead.

* LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/srcdoc-attribute-reset-expected.txt:
* Source/WebCore/html/HTMLFrameElementBase.cpp:
(WebCore::HTMLFrameElementBase::parseAttribute):

Canonical link: https://commits.webkit.org/252991@main
@webkit-commit-queue
Copy link
Collaborator

Committed 252991@main (e540252): https://commits.webkit.org/252991@main

Reviewed commits have been landed. Closing PR #2889 and removing active labels.

@webkit-early-warning-system webkit-early-warning-system merged commit e540252 into WebKit:main Aug 1, 2022
@webkit-commit-queue webkit-commit-queue removed the merge-queue Applied to send a pull request to merge-queue label Aug 1, 2022
@rniwa rniwa deleted the fix243385 branch August 1, 2022 03:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Frames For bugs specific to the use of HTML frame/iframe, as well as timing and frame targeting issues.
Projects
None yet
4 participants