-
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.
Document::Document shouldn't construct Editor object
https://bugs.webkit.org/show_bug.cgi?id=267901 Reviewed by Yusuke Suzuki and Cameron McCormack. Don't create Editor object inside Document::Document. This was getting triggered via shouldAlwaysUseDirectionalSelection inside FrameSelection::FrameSelection. Also added a bunch of assertions to ensure we don't initialize these lazily constructed objects at the end of Document::Document. * Source/WebCore/dom/Document.cpp: (WebCore::m_frameIdentifier): (WebCore::Document::ensureQuirks): (WebCore::Document::ensureCachedResourceLoader): (WebCore::Document::ensureExtensionStyleSheets): (WebCore::Document::ensureMarkers): (WebCore::Document::ensureVisitedLinkState): (WebCore::Document::ensureFullscreenManager): (WebCore::Document::fontLoader): (WebCore::Document::ensureFontLoader): (WebCore::Document::ensureFontSelector): (WebCore::Document::ensureUndoManager): (WebCore::Document::ensureEditor): (WebCore::Document::ensureReportingScope): (WebCore::Document::originIdentifierForPasteboard const): (WebCore::Document::isDNSPrefetchEnabled const): (WebCore::Document::parseDNSPrefetchControlHeader): * Source/WebCore/dom/Document.h: (WebCore::Document::isDNSPrefetchEnabled const): Deleted. * Source/WebCore/editing/FrameSelection.cpp: (WebCore::shouldAlwaysUseDirectionalSelection): Canonical link: https://commits.webkit.org/273350@main
- Loading branch information
Showing
3 changed files
with
56 additions
and
24 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