Changeset 278894 in webkit
- Timestamp:
- Jun 15, 2021 1:19:05 PM (3 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r278892 r278894 1 2021-06-15 Alex Christensen <achristensen@webkit.org> 2 3 Allow legacy SecurityOrigin behavior for x-apple-ql-id2 scheme 4 https://bugs.webkit.org/show_bug.cgi?id=226993 5 <rdar://76474042> 6 7 Reviewed by Tim Horton. 8 9 Why have one x-apple-ql-id scheme when you can have 2? 10 11 * page/SecurityOrigin.cpp: 12 (WebCore::shouldTreatAsUniqueOrigin): 13 Also move the linked-on-or-before check to after the hasSpecialScheme check which will be true for most URLs (http, https, file, etc.) 14 1 15 2021-06-15 Philippe Normand <pnormand@igalia.com> 2 16 -
trunk/Source/WebCore/page/SecurityOrigin.cpp
r278806 r278894 111 111 return true; 112 112 113 #if PLATFORM(COCOA)114 if (!linkedOnOrAfter(SDKVersion::FirstWithNullOriginForNonSpecialSchemedURLs))115 return false;116 #endif117 118 113 // https://url.spec.whatwg.org/#origin with some additions 119 114 if (url.hasSpecialScheme() 120 115 #if PLATFORM(COCOA) 116 || !linkedOnOrAfter(SDKVersion::FirstWithNullOriginForNonSpecialSchemedURLs) 121 117 || url.protocolIs("applewebdata") 122 118 || url.protocolIs("x-apple-ql-id") 119 || url.protocolIs("x-apple-ql-id2") 123 120 || url.protocolIs("x-apple-ql-magic") 124 121 #endif -
trunk/Tools/ChangeLog
r278890 r278894 1 2021-06-15 Alex Christensen <achristensen@webkit.org> 2 3 Allow legacy SecurityOrigin behavior for x-apple-ql-id2 scheme 4 https://bugs.webkit.org/show_bug.cgi?id=226993 5 6 Reviewed by Tim Horton. 7 8 * TestWebKitAPI/Tests/WebCore/SecurityOrigin.cpp: 9 (TestWebKitAPI::TEST_F): 10 1 11 2021-06-15 Jonathan Bedard <jbedard@apple.com> 2 12 -
trunk/Tools/TestWebKitAPI/Tests/WebCore/SecurityOrigin.cpp
r278253 r278894 89 89 auto o9 = SecurityOrigin::createFromString("x-apple-ql-id://host"); 90 90 auto o10 = SecurityOrigin::createFromString("x-apple-ql-magic://host"); 91 auto o11 = SecurityOrigin::createFromString("x-apple-ql-id2://host"); 91 92 #endif 92 93 … … 102 103 EXPECT_EQ(String("x-apple-ql-id"), o9->protocol()); 103 104 EXPECT_EQ(String("x-apple-ql-magic"), o10->protocol()); 105 EXPECT_EQ(String("x-apple-ql-id2"), o11->protocol()); 104 106 #endif 105 107 … … 115 117 EXPECT_EQ(String("host"), o9->host()); 116 118 EXPECT_EQ(String("host"), o10->host()); 119 EXPECT_EQ(String("host"), o11->host()); 117 120 #endif 118 121 … … 128 131 EXPECT_FALSE(o9->port()); 129 132 EXPECT_FALSE(o10->port()); 133 EXPECT_FALSE(o11->port()); 130 134 #endif 131 135 … … 141 145 EXPECT_EQ("x-apple-ql-id://host", o9->toString()); 142 146 EXPECT_EQ("x-apple-ql-magic://host", o10->toString()); 147 EXPECT_EQ("x-apple-ql-id2://host", o11->toString()); 143 148 #endif 144 149 … … 153 158 EXPECT_FALSE(o1->isSameOriginAs(o9.get())); 154 159 EXPECT_FALSE(o1->isSameOriginAs(o10.get())); 160 EXPECT_FALSE(o1->isSameOriginAs(o11.get())); 155 161 #endif 156 162 }
Note: See TracChangeset
for help on using the changeset viewer.