Changeset 214810 in webkit
- Timestamp:
- Apr 3, 2017 10:12:27 AM (7 years ago)
- Location:
- releases/WebKitGTK/webkit-2.16
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
releases/WebKitGTK/webkit-2.16/LayoutTests/ChangeLog
r214809 r214810 1 2017-03-29 Ryosuke Niwa <rniwa@webkit.org> 2 3 Disconnecting a HTMLObjectElement does not always unload its content document 4 https://bugs.webkit.org/show_bug.cgi?id=169606 5 6 Reviewed by Andy Estes. 7 8 Add a regression test. 9 10 * fast/dom/removing-focused-object-element-expected.txt: Added. 11 * fast/dom/removing-focused-object-element.html: Added. 12 1 13 2017-03-29 Zalan Bujtas <zalan@apple.com> 2 14 -
releases/WebKitGTK/webkit-2.16/Source/WebCore/ChangeLog
r214809 r214810 1 2017-03-29 Ryosuke Niwa <rniwa@webkit.org> 2 3 Disconnecting a HTMLObjectElement does not always unload its content document 4 https://bugs.webkit.org/show_bug.cgi?id=169606 5 6 Reviewed by Andy Estes. 7 8 When removing a node, we first disconnect all subframes then update the focused element as we remove each child. 9 However, when the removed element is a focused object element with a content document, removeFocusedNodeOfSubtree 10 can update the style tree synchronously inside Document::setFocusedElement, and reload the document. 11 12 Avoid this by instantiating a SubframeLoadingDisabler on the parent of the focused element. 13 14 Test: fast/dom/removing-focused-object-element.html 15 16 * dom/Document.cpp: 17 (WebCore::Document::removeFocusedNodeOfSubtree): 18 1 19 2017-03-29 Zalan Bujtas <zalan@apple.com> 2 20 -
releases/WebKitGTK/webkit-2.16/Source/WebCore/dom/Document.cpp
r214798 r214810 3563 3563 3564 3564 if (isNodeInSubtree(*focusedElement, node, amongChildrenOnly)) { 3565 // FIXME: We should avoid synchronously updating the style inside setFocusedElement. 3566 // FIXME: Object elements should avoid loading a frame synchronously in a post style recalc callback. 3567 SubframeLoadingDisabler disabler(is<ContainerNode>(node) ? &downcast<ContainerNode>(node) : nullptr); 3565 3568 setFocusedElement(nullptr, FocusDirectionNone, FocusRemovalEventsMode::DoNotDispatch); 3566 3569 // Set the focus navigation starting node to the previous focused element so that
Note: See TracChangeset
for help on using the changeset viewer.