-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IFC] Nested RenderFrameSet fails to find its container
https://bugs.webkit.org/show_bug.cgi?id=263445 <rdar://117263055> Reviewed by Antti Koivisto. See comment in LineLayout::containing. * LayoutTests/fast/frames/nested-floating-frameset-crash-expected.txt: Added. * LayoutTests/fast/frames/nested-floating-frameset-crash.html: Added. * Source/WebCore/layout/integration/inline/LayoutIntegrationLineLayout.cpp: (WebCore::LayoutIntegration::LineLayout::containing): Canonical link: https://commits.webkit.org/269610@main
- Loading branch information
1 parent
6a3c566
commit 7b3eb7e
Showing
3 changed files
with
35 additions
and
3 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
LayoutTests/fast/frames/nested-floating-frameset-crash-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
PASS if no crash or assert. |
27 changes: 27 additions & 0 deletions
27
LayoutTests/fast/frames/nested-floating-frameset-crash.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<style> | ||
frameset { | ||
float: left; | ||
} | ||
|
||
frameset:nth-last-of-type(n) { | ||
height: 0; | ||
} | ||
|
||
frameset:first-child :nth-of-type(n) { | ||
height: 0; | ||
} | ||
</style> | ||
<body>PASS if no crash or assert.</body><script> | ||
if (window.testRunner) | ||
testRunner.dumpAsText(); | ||
|
||
document.body.offsetHeight; | ||
let parentFrameSet = document.createElement('frameset'); | ||
let chilFrameSet = document.createElement('frameset'); | ||
parentFrameSet.append(chilFrameSet); | ||
chilFrameSet.append(document.createElement('div')); | ||
document.body.append(parentFrameSet); | ||
|
||
document.body.offsetTop; | ||
document.body.append(''); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters