Title: [270679] trunk/Source/WebCore
- Revision
- 270679
- Author
- [email protected]
- Date
- 2020-12-11 08:46:52 -0800 (Fri, 11 Dec 2020)
Log Message
Introduce a way to update additional settings than the one handled by policies
https://bugs.webkit.org/show_bug.cgi?id=219681
Reviewed by Eric Carlson.
Add a way for WebKit additions to update page settings at the time settings are changed by policies.
Manually tested.
* loader/DocumentLoader.cpp:
(WebCore::DocumentLoader::applyPoliciesToSettings):
* loader/DocumentLoader.h:
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (270678 => 270679)
--- trunk/Source/WebCore/ChangeLog 2020-12-11 16:42:17 UTC (rev 270678)
+++ trunk/Source/WebCore/ChangeLog 2020-12-11 16:46:52 UTC (rev 270679)
@@ -1,3 +1,17 @@
+2020-12-11 Youenn Fablet <[email protected]>
+
+ Introduce a way to update additional settings than the one handled by policies
+ https://bugs.webkit.org/show_bug.cgi?id=219681
+
+ Reviewed by Eric Carlson.
+
+ Add a way for WebKit additions to update page settings at the time settings are changed by policies.
+ Manually tested.
+
+ * loader/DocumentLoader.cpp:
+ (WebCore::DocumentLoader::applyPoliciesToSettings):
+ * loader/DocumentLoader.h:
+
2020-12-11 Aditya Keerthi <[email protected]>
[iOS][FCR] Add new look for color inputs
Modified: trunk/Source/WebCore/loader/DocumentLoader.cpp (270678 => 270679)
--- trunk/Source/WebCore/loader/DocumentLoader.cpp 2020-12-11 16:42:17 UTC (rev 270678)
+++ trunk/Source/WebCore/loader/DocumentLoader.cpp 2020-12-11 16:46:52 UTC (rev 270679)
@@ -125,6 +125,10 @@
#define IS_MAIN_FRAME (m_frame ? m_frame->isMainFrame() : false)
#define RELEASE_LOG_IF_ALLOWED(fmt, ...) RELEASE_LOG_IF(isAlwaysOnLoggingAllowed(), Network, "%p - [pageID=%" PRIu64 ", frameID=%" PRIu64 ", main=%d] DocumentLoader::" fmt, this, PAGE_ID, FRAME_ID, IS_MAIN_FRAME, ##__VA_ARGS__)
+#if USE(APPLE_INTERNAL_SDK)
+#include <WebKitAdditions/DocumentLoaderAdditions.cpp>
+#endif
+
namespace WebCore {
static void cancelAll(const ResourceLoaderMap& loaders)
@@ -1287,6 +1291,9 @@
#if ENABLE(TEXT_AUTOSIZING)
m_frame->settings().setIdempotentModeAutosizingOnlyHonorsPercentages(m_idempotentModeAutosizingOnlyHonorsPercentages);
#endif
+#if USE(APPLE_INTERNAL_SDK)
+ updateAdditionalSettingsIfNeeded();
+#endif
}
MouseEventPolicy DocumentLoader::mouseEventPolicy() const
Modified: trunk/Source/WebCore/loader/DocumentLoader.h (270678 => 270679)
--- trunk/Source/WebCore/loader/DocumentLoader.h 2020-12-11 16:42:17 UTC (rev 270678)
+++ trunk/Source/WebCore/loader/DocumentLoader.h 2020-12-11 16:46:52 UTC (rev 270679)
@@ -514,6 +514,8 @@
bool disallowWebArchive() const;
bool disallowDataRequest() const;
+ void updateAdditionalSettingsIfNeeded();
+
Ref<CachedResourceLoader> m_cachedResourceLoader;
CachedResourceHandle<CachedRawResource> m_mainResource;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes