| Summary: | srcdoc iframes fail to clear when srcdoc attribute removed | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ahmad Saleem <ahmad.saleem792> |
| Component: | Frames | Assignee: | Ryosuke Niwa <rniwa> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | ap, bfulgham, karlcow, rniwa, webkit-bug-importer |
| Priority: | P2 | Keywords: | BrowserCompat, InRadar |
| Version: | Safari 15 | ||
| Hardware: | Mac (Apple Silicon) | ||
| OS: | macOS 12 | ||
| URL: | http://wpt.live/html/semantics/embedded-content/the-iframe-element/srcdoc-attribute-reset.html | ||
|
Description
Ahmad Saleem
2022-07-31 02:47:15 PDT
lol, this is because of the following code:
void HTMLFrameElementBase::parseAttribute(const QualifiedName& name, const AtomString& value)
{
if (name == srcdocAttr) {
if (value.isNull()) {
const AtomString& srcValue = attributeWithoutSynchronization(srcAttr);
if (!srcValue.isNull())
setLocation(stripLeadingAndTrailingHTMLSpaces(srcValue));
} else
Pull request: https://github.com/WebKit/WebKit/pull/2889 Committed 252991@main (e540252620c9): <https://commits.webkit.org/252991@main> Reviewed commits have been landed. Closing PR #2889 and removing active labels. |