Bug 282007
Summary: | [Site isolation] Site isolated frames with css transform are not displayed correctly | ||
---|---|---|---|
Product: | WebKit | Reporter: | Said Abou-Hallawa <sabouhallawa> |
Component: | WebKit Process Model | Assignee: | Said Abou-Hallawa <sabouhallawa> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | nham, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Said Abou-Hallawa
1. Enable site isolation internal feature
2. Open https://bug1519412.bmoattachments.org/attachment.cgi?id=9035934
Result: The contents of the cross origin iframe is transformed incorrectly.
Expected: The contents of the cross origin iframe should cover the whole site isolated frame.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/138513187>
Said Abou-Hallawa
It looks like the problem with the scaling. For a page like this
<style>
iframe {
width: 600px;
height: 300px;
transform: scale(0.5);
transform-origin: 0 0;
}
</style>
<body>
<iframe src="http://localhost:8000/site-isolation/resources/green-background.html" frameborder=0></iframe>
</body>
It is expected to render { 300 x 150 } green rectangle for the iframe because its size is { 600 x 300 } and it has transform of scale(0.5). But we end up having { 150 x 75 } green rectangle. So it seems the scaling is applied twice.
Said Abou-Hallawa
Pull request: https://github.com/WebKit/WebKit/pull/35821
EWS
Committed 285842@main (b27e4007cd73): <https://commits.webkit.org/285842@main>
Reviewed commits have been landed. Closing PR #35821 and removing active labels.