WebKit Bugzilla
Attachment 357589 Details for
Bug 192612
: HTTPS Upgrade: Scripts / preprocessing necessary to create new database in future
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
bug-192612-20181218112655.patch (text/plain), 9.70 KB, created by
Vivek Seth
on 2018-12-18 11:27:06 PST
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Vivek Seth
Created:
2018-12-18 11:27:06 PST
Size:
9.70 KB
patch
obsolete
>Subversion Revision: 239343 >diff --git a/Source/WebKit/ChangeLog b/Source/WebKit/ChangeLog >index d6429bd08462fdade2a1f33adda1ebf0add6e63c..0410617b6a3c91c3de2cb1a254e52ed9132525df 100644 >--- a/Source/WebKit/ChangeLog >+++ b/Source/WebKit/ChangeLog >@@ -1,3 +1,16 @@ >+2018-12-18 Vivek Seth <v_seth@apple.com> >+ >+ HTTPS Upgrade: Scripts / preprocessing necessary to create new database in future >+ https://bugs.webkit.org/show_bug.cgi?id=192612 >+ <rdar://problem/46651207> >+ >+ Reviewed by Andy Estes. >+ >+ * Configurations/WebKit.xcconfig: >+ * DerivedSources.make: >+ * Scripts/generate-https-upgrade-database.sh: Added. >+ * WebKit.xcodeproj/project.pbxproj: >+ > 2018-12-18 Alex Christensen <achristensen@webkit.org> > > WKWebView has old URL while displaying SafeBrowsing interstitial, for link-click navigations >diff --git a/Source/WebKit/Configurations/WebKit.xcconfig b/Source/WebKit/Configurations/WebKit.xcconfig >index f2318ec4e9aff6fd8bb9dcf47420c1ee68ceff2b..2453684eb2f15b22f90b012f45296ecb9078c137 100644 >--- a/Source/WebKit/Configurations/WebKit.xcconfig >+++ b/Source/WebKit/Configurations/WebKit.xcconfig >@@ -151,8 +151,11 @@ SECTORDER_FLAGS = $(SECTORDER_FLAGS_$(CONFIGURATION)); > SECTORDER_FLAGS_Production[sdk=iphoneos*] = -Wl,-order_file,$(SDKROOT)/AppleInternal/OrderFiles/WebKit.order; > SECTORDER_FLAGS_Production[sdk=macosx*] = -Wl,-order_file,mac/WebKit2.order; > >-EXCLUDED_SOURCE_FILE_NAMES = Resources/ios/*; >-EXCLUDED_SOURCE_FILE_NAMES[sdk=iphone*] = PluginProcessShim.dylib SecItemShim.dylib WebProcessShim.dylib *.pdf Resources/mac/* com.apple.WebKit.NetworkProcess.sb com.apple.WebProcess.sb com.apple.WebKit.plugin-common.sb PlugInSandboxProfiles/*.sb; >+WK_EXCLUDED_HTTPS_UPGRADE_FILE = $(WK_EXCLUDED_HTTPS_UPGRADE_FILE_$(ENABLE_HTTPS_UPGRADE)); >+WK_EXCLUDED_HTTPS_UPGRADE_FILE_ = HTTPSUpgradeList.db; >+ >+EXCLUDED_SOURCE_FILE_NAMES = Resources/ios/* $(WK_EXCLUDED_HTTPS_UPGRADE_FILE); >+EXCLUDED_SOURCE_FILE_NAMES[sdk=iphone*] = PluginProcessShim.dylib SecItemShim.dylib WebProcessShim.dylib *.pdf Resources/mac/* com.apple.WebKit.NetworkProcess.sb com.apple.WebProcess.sb com.apple.WebKit.plugin-common.sb PlugInSandboxProfiles/*.sb $(WK_EXCLUDED_HTTPS_UPGRADE_FILE); > > INSTALLHDRS_SCRIPT_PHASE = YES; > >diff --git a/Source/WebKit/DerivedSources.make b/Source/WebKit/DerivedSources.make >index f2d89192f6da7d2685e080ecab2129b93c44ba32..2fde5550cf4d70adc09def357a98782273e55472 100644 >--- a/Source/WebKit/DerivedSources.make >+++ b/Source/WebKit/DerivedSources.make >@@ -315,3 +315,9 @@ $(WEB_PREFERENCES_COMBINED_INPUT_FILE) : $(WEB_PREFERENCES_INPUT_FILES) > > $(WEB_PREFERENCES_PATTERNS) : $(WebKit2)/Scripts/GeneratePreferences.rb $(WEB_PREFERENCES_TEMPLATES) $(WEB_PREFERENCES_COMBINED_INPUT_FILE) > $(RUBY) $< --input $(WEB_PREFERENCES_COMBINED_INPUT_FILE) >+ >+ifeq ($(ENABLE_HTTPS_UPGRADE),ENABLE_HTTPS_UPGRADE) >+all : HTTPSUpgradeList.db >+HTTPSUpgradeList.db : HTTPSUpgradeList.txt $(WebKit2)/Scripts/generate-https-upgrade-database.sh >+ sh $(WebKit2)/Scripts/generate-https-upgrade-database.sh $< $@ >+endif # ENABLE_HTTPS_UPGRADE >diff --git a/Source/WebKit/Scripts/generate-https-upgrade-database.sh b/Source/WebKit/Scripts/generate-https-upgrade-database.sh >new file mode 100644 >index 0000000000000000000000000000000000000000..89312ef4c76003fb8650c939a7af5057b44f8817 >--- /dev/null >+++ b/Source/WebKit/Scripts/generate-https-upgrade-database.sh >@@ -0,0 +1,52 @@ >+#!/bin/sh >+# >+# Copyright (C) 2018 Apple Inc. All rights reserved. >+# >+# Redistribution and use in source and binary forms, with or without >+# modification, are permitted provided that the following conditions >+# are met: >+# 1. Redistributions of source code must retain the above copyright >+# notice, this list of conditions and the following disclaimer. >+# 2. Redistributions in binary form must reproduce the above copyright >+# notice, this list of conditions and the following disclaimer in the >+# documentation and/or other materials provided with the distribution. >+# >+# THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' >+# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, >+# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR >+# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS >+# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR >+# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF >+# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS >+# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN >+# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) >+# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF >+# THE POSSIBILITY OF SUCH DAMAGE. >+ >+# This script requires that HTTPSUpgradeList.txt has the following format: >+# 1. It must be a plain text file with domains delimited by new lines ("\n"). >+# 2. The file must not contain duplicate domains. >+# 3. All domains must be lowercase. >+# 4. All domains must be IDNA encoded. >+# >+# Usage: >+# $ sh ./generate-https-upgrade-database.sh <path to input list> <path to output database> >+ >+set -e >+ >+INPUT_FILE_PATH="${1}" >+OUTPUT_FILE_PATH="${2}" >+ >+DB_VERSION="1"; >+DB_SCHEMA="CREATE TABLE hosts (host TEXT PRIMARY KEY);" >+ >+if [[ ! -f "${INPUT_FILE_PATH}" ]]; then >+ echo "Invalid input file" 1>&2; >+ exit 1 >+fi >+ >+if [[ -f "${OUTPUT_FILE_PATH}" ]]; then >+ rm "${OUTPUT_FILE_PATH}" >+fi >+ >+sqlite3 "${OUTPUT_FILE_PATH}" "PRAGMA user_version=${DB_VERSION}" "${DB_SCHEMA}" ".import ${INPUT_FILE_PATH} hosts" ".exit" >diff --git a/Source/WebKit/WebKit.xcodeproj/project.pbxproj b/Source/WebKit/WebKit.xcodeproj/project.pbxproj >index 2832bb7c4b81ae89965666ee4b517fe0d307b1f7..ffb8f95036b852b7854c494f4420ba958a1282d5 100644 >--- a/Source/WebKit/WebKit.xcodeproj/project.pbxproj >+++ b/Source/WebKit/WebKit.xcodeproj/project.pbxproj >@@ -1037,6 +1037,7 @@ > 57DCEDC3214F114C0016B847 /* MockLocalService.h in Headers */ = {isa = PBXBuildFile; fileRef = 57DCEDC1214F114C0016B847 /* MockLocalService.h */; }; > 57DCEDC7214F18300016B847 /* MockLocalConnection.h in Headers */ = {isa = PBXBuildFile; fileRef = 57DCEDC5214F18300016B847 /* MockLocalConnection.h */; }; > 57DCEDCB214F4E420016B847 /* MockAuthenticatorManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 57DCEDC9214F4E420016B847 /* MockAuthenticatorManager.h */; }; >+ 587743A621C30BBE00AE9084 /* HTTPSUpgradeList.db in Resources */ = {isa = PBXBuildFile; fileRef = 587743A421C30AD800AE9084 /* HTTPSUpgradeList.db */; }; > 5C0B17781E7C880E00E9123C /* NetworkSocketStreamMessageReceiver.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5C0B17741E7C879C00E9123C /* NetworkSocketStreamMessageReceiver.cpp */; }; > 5C0B17791E7C882100E9123C /* WebSocketStreamMessageReceiver.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5C0B17761E7C879C00E9123C /* WebSocketStreamMessageReceiver.cpp */; }; > 5C1426ED1C23F80900D41183 /* NetworkProcessCreationParameters.h in Headers */ = {isa = PBXBuildFile; fileRef = 5C1426E31C23F80500D41183 /* NetworkProcessCreationParameters.h */; }; >@@ -3401,6 +3402,7 @@ > 57DCEDC6214F18300016B847 /* MockLocalConnection.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = MockLocalConnection.mm; sourceTree = "<group>"; }; > 57DCEDC9214F4E420016B847 /* MockAuthenticatorManager.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MockAuthenticatorManager.h; sourceTree = "<group>"; }; > 57DCEDCD214F51680016B847 /* MockAuthenticatorManager.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = MockAuthenticatorManager.cpp; sourceTree = "<group>"; }; >+ 587743A421C30AD800AE9084 /* HTTPSUpgradeList.db */ = {isa = PBXFileReference; lastKnownFileType = file; name = HTTPSUpgradeList.db; path = DerivedSources/WebKit2/HTTPSUpgradeList.db; sourceTree = BUILT_PRODUCTS_DIR; }; > 5C0B17741E7C879C00E9123C /* NetworkSocketStreamMessageReceiver.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = NetworkSocketStreamMessageReceiver.cpp; path = DerivedSources/WebKit2/NetworkSocketStreamMessageReceiver.cpp; sourceTree = BUILT_PRODUCTS_DIR; }; > 5C0B17751E7C879C00E9123C /* NetworkSocketStreamMessages.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NetworkSocketStreamMessages.h; path = DerivedSources/WebKit2/NetworkSocketStreamMessages.h; sourceTree = BUILT_PRODUCTS_DIR; }; > 5C0B17761E7C879C00E9123C /* WebSocketStreamMessageReceiver.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = WebSocketStreamMessageReceiver.cpp; path = DerivedSources/WebKit2/WebSocketStreamMessageReceiver.cpp; sourceTree = BUILT_PRODUCTS_DIR; }; >@@ -8346,6 +8348,7 @@ > 1A64230712DD09EB00CAAE2C /* DrawingAreaProxyMessages.h */, > 1AA575FF1496B7C000A4EE06 /* EventDispatcherMessageReceiver.cpp */, > 1AA576001496B7C000A4EE06 /* EventDispatcherMessages.h */, >+ 587743A421C30AD800AE9084 /* HTTPSUpgradeList.db */, > 2984F586164BA095004BC0C6 /* LegacyCustomProtocolManagerMessageReceiver.cpp */, > 2984F587164BA095004BC0C6 /* LegacyCustomProtocolManagerMessages.h */, > 2984F57A164B915F004BC0C6 /* LegacyCustomProtocolManagerProxyMessageReceiver.cpp */, >@@ -10153,6 +10156,7 @@ > E11D35AE16B63D1B006D23D7 /* com.apple.WebProcess.sb in Resources */, > 414DD37920BF43F5006959FB /* com.cisco.webex.plugin.gpc64.sb in Resources */, > 6BE969C11E54D452008B7483 /* corePrediction_model in Resources */, >+ 587743A621C30BBE00AE9084 /* HTTPSUpgradeList.db in Resources */, > 8DC2EF530486A6940098B216 /* InfoPlist.strings in Resources */, > 3FB08E431F60B240005E5312 /* iOS.xcassets in Resources */, > 93A2A3461D246125002B59D3 /* mediaIcon.pdf in Resources */,
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 192612
:
357101
|
357184
|
357259
|
357267
|
357362
| 357589