Bug 102350
| Summary: | Write test for frame disconnection in ShadowRoots | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Elliott Sprehn <esprehn> |
| Component: | DOM | Assignee: | Elliott Sprehn <esprehn> |
| Status: | RESOLVED CONFIGURATION CHANGED | ||
| Severity: | Normal | CC: | abarth, dominicc, rniwa |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | All | ||
| OS: | All | ||
| Bug Depends on: | 101619, 102333 | ||
| Bug Blocks: | |||
Elliott Sprehn
We should have a test for frame disconnection across shadow boundaries.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Dominic Cooney
What is frame disconnection?
Adam Barth
> What is frame disconnection?
When a frame gets removed from the DOM, it's connection to the Page is removed. There's a disconnectFrame function that's a good place to start looking.
Elliott Sprehn
Specifically this just needs a test like:
div = document.createElement('div');
iframe = document.createElement('iframe');
root = div.webkitCreateShadowRoot();
root.appendChild(iframe);
document.body.appendChild(div);
ASSERT(iframe.contentDocument);
div.remove();
ASSERT(iframe.contentDocument == null);
Ryosuke Niwa
We have this already.