Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Make logging console messages to STDOUT work in WebKit2 via a new set…
…ting. https://bugs.webkit.org/show_bug.cgi?id=107157 Reviewed by Joseph Pecoraro. Source/WebCore: * page/Console.cpp: (WebCore::Console::addMessage): Check logsPageMessagesToSystemConsoleEnabled(). (WebCore::internalAddMessage): Ditto. Refactored to return early and drop printExceptions argument. (WebCore::Console::error): Removed call to shouldPrintExceptions(). (WebCore::Console::log): Ditto. (WebCore::Console::warn): Ditto. (WebCore::Console::dir): Ditto. (WebCore::Console::dirxml): Ditto. (WebCore::Console::clear): Ditto. (WebCore::Console::trace): Ditto. (WebCore::Console::assertCondition): Ditto. * page/Settings.in: Added logsPageMessagesToSystemConsoleEnabled. Source/WebKit2: * Shared/WebPreferencesStore.h: * UIProcess/API/C/WKPreferences.cpp: (WKPreferencesSetLogsPageMessagesToSystemConsoleEnabled): Added. (WKPreferencesGetLogsPageMessagesToSystemConsoleEnabled): Added. * UIProcess/API/C/WKPreferencesPrivate.h: * UIProcess/WebInspectorProxy.cpp: (WebKit::createInspectorPageGroup): Enable logging in debug builds. * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::updatePreferences): Set new setting in WebCore. Canonical link: https://commits.webkit.org/125410@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140044 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
9 changed files
with
83 additions
and
19 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