-
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.
[Site Isolation] Fix some cases where we unnecessarily skip code on o…
…ut-of-process frames https://bugs.webkit.org/show_bug.cgi?id=265563 rdar://118970867 Reviewed by Alex Christensen. There are several places where we are unnecessarily skipping code on out-of-process frames. We should avoid downcasting to a local frame if it's not required. * Source/WebCore/bindings/js/JSLocalDOMWindowCustom.cpp: (WebCore::jsLocalDOMWindowGetOwnPropertySlotRestrictedAccess): * Source/WebCore/css/query/MediaQueryFeatures.cpp: (WebCore::MQ::Features::color): (WebCore::MQ::Features::dynamicRange): * Source/WebCore/dom/TreeScope.cpp: (WebCore::focusedFrameOwnerElement): * Source/WebCore/html/HTMLFrameElementBase.cpp: (WebCore::HTMLFrameElementBase::didAttachRenderers): * Source/WebCore/html/MediaElementSession.cpp: (WebCore::isElementRectMostlyInMainFrame): * Source/WebCore/inspector/InspectorFrontendClientLocal.cpp: (WebCore::InspectorFrontendClientLocal::canAttachWindow): (WebCore::InspectorFrontendClientLocal::changeAttachedWindowHeight): (WebCore::InspectorFrontendClientLocal::changeAttachedWindowWidth): There is also a behavior change in this function. Previously, we did a null check on `otherMainFrame` and then used the width on `localMainFrame`, which seemed like a bug. (WebCore::InspectorFrontendClientLocal::restoreAttachedWindowHeight): * Source/WebCore/inspector/InspectorFrontendHost.cpp: (WebCore::InspectorFrontendHost::copyText): * Source/WebCore/inspector/InspectorOverlay.cpp: (WebCore::localPointToRootPoint): (WebCore::contentsQuadToCoordinateSystem): (WebCore::buildRendererHighlight): (WebCore::drawShapeHighlight): (WebCore::InspectorOverlay::paint): (WebCore::InspectorOverlay::highlightQuad): (WebCore::InspectorOverlay::update): (WebCore::InspectorOverlay::showPaintRect): (WebCore::InspectorOverlay::buildGridOverlay): * Source/WebCore/inspector/agents/InspectorPageAgent.cpp: (WebCore::InspectorPageAgent::didPaint): * Source/WebCore/loader/FrameLoader.cpp: (WebCore::FrameLoader::completed): * Source/WebCore/page/DragController.cpp: (WebCore::DragController::beginDrag): * Source/WebCore/page/FocusController.cpp: (WebCore::FocusController::setFocusedInternal): (WebCore::FocusController::advanceFocusInDocumentOrder): (WebCore::FocusController::setIsVisibleAndActiveInternal): * Source/WebCore/page/IntersectionObserver.cpp: (WebCore::IntersectionObserver::computeIntersectionState const): * Source/WebCore/page/LocalDOMWindow.cpp: (WebCore::LocalDOMWindow::adjustWindowRect): (WebCore::LocalDOMWindow::moveTo const): * Source/WebCore/page/LocalFrameView.cpp: (WebCore::LocalFrameView::shouldUpdateCompositingLayersAfterScrolling const): * Source/WebCore/page/Page.cpp: (WebCore::Page::findString): (WebCore::Page::screenPropertiesDidChange): (WebCore::Page::lockAllOverlayScrollbarsToHidden): (WebCore::Page::setVerticalScrollElasticity): (WebCore::Page::setDebugger): (WebCore::Page::subframeCount const): * Source/WebCore/page/PageOverlay.cpp: (WebCore::PageOverlay::bounds const): (WebCore::PageOverlay::drawRect): * Source/WebCore/page/ResourceUsageOverlay.cpp: (WebCore::ResourceUsageOverlay::~ResourceUsageOverlay): (WebCore::ResourceUsageOverlay::mouseEvent): * Source/WebCore/page/SpatialNavigation.cpp: (WebCore::rectToAbsoluteCoordinates): * Source/WebCore/page/mac/DragControllerMac.mm: (WebCore::DragController::cleanupAfterSystemDrag): * Source/WebCore/page/mac/ImageOverlayControllerMac.mm: (WebCore::ImageOverlayController::updateDataDetectorHighlights): (WebCore::ImageOverlayController::platformHandleMouseEvent): * Source/WebCore/page/mac/ServicesOverlayController.mm: (WebCore::ServicesOverlayController::buildSelectionHighlight): (WebCore::ServicesOverlayController::mouseEvent): (WebCore::ServicesOverlayController::handleClick): * Source/WebCore/page/scrolling/AsyncScrollingCoordinator.cpp: (WebCore::AsyncScrollingCoordinator::setFrameScrollingNodeState): * Source/WebCore/page/scrolling/ScrollingCoordinator.cpp: (WebCore::ScrollingCoordinator::shouldUpdateScrollLayerPositionSynchronously const): * Source/WebKit/WebProcess/FullScreen/WebFullScreenManager.cpp: (WebKit::WebFullScreenManager::saveScrollPosition): * Source/WebKit/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp: (WebKit::InjectedBundleNodeHandle::htmlIFrameElementContentFrame): * Source/WebKit/WebProcess/Network/WebLoaderStrategy.cpp: (WebKit::addParametersShared): * Source/WebKit/WebProcess/WebCoreSupport/ShareableBitmapUtilities.cpp: (WebKit::createShareableBitmap): * Source/WebKit/WebProcess/WebPage/FindController.cpp: (WebKit::FindController::rectsForTextMatchesInRect): * Source/WebKit/WebProcess/WebPage/WebFrame.cpp: (WebKit::WebFrame::size const): (WebKit::WebFrame::jsContextForServiceWorkerWorld): (WebKit::WebFrame::contentBounds const): (WebKit::WebFrame::visibleContentBounds const): (WebKit::WebFrame::scrollOffset const): (WebKit::WebFrame::hasVerticalScrollbar const): * Source/WebKit/WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::clearMainFrameName): (WebKit::WebPage::setSize): (WebKit::WebPage::scaleView): (WebKit::snapshotColorSpace): Canonical link: https://commits.webkit.org/271358@main
- Loading branch information
1 parent
6abbfb0
commit 441ecb3
Showing
31 changed files
with
87 additions
and
234 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.