forked from WebKit/WebKit-http
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a consistency check between URL and CFURL
Source/WebCore: https://bugs.webkit.org/show_bug.cgi?id=186057 <rdar://problem/40258457> Reviewed by Geoff Garen. It is important that WebCore::URL used in WebCore and CFURL that gets serialized in the network pipe remain consistent. Otherwise, we will end-up with odd bugs. We add such a check when creating a CFURL from an URL. To make things more consistent, we also rely now more on WebCore::URL instead of directly creating a CFURL. * platform/URL.h: * platform/cf/CFURLExtras.cpp: (WebCore::isCFURLSameOrigin): * platform/cf/CFURLExtras.h: * platform/cf/URLCF.cpp: (WebCore::URL::createCFURL const): * platform/mac/URLMac.mm: (WebCore::URL::createCFURL const): * platform/mac/WebCoreNSURLExtras.mm: (WebCore::URLWithUserTypedString): Source/WebKit: https://bugs.webkit.org/show_bug.cgi?id=186057 <rdar://problem/40258457> Reviewed by Geoff Garen. * Shared/Cocoa/WKNSURLExtras.mm: (+[NSURL _web_URLWithWTFString:relativeToURL:]): (urlWithWTFString): Deleted. (+[NSURL _web_URLWithWTFString:]): Deleted. Tools: https://bugs.webkit.org/show_bug.cgi?id=182444 <rdar://problem/37164835> Reviewed by Geoff Garen. DRT code expected a non null URL which is no longer the case now. Updated DRT to remove that assumption. * DumpRenderTree/TestRunner.cpp: (TestRunner::redirectionDestinationForURL): * DumpRenderTree/TestRunner.h: * DumpRenderTree/mac/ResourceLoadDelegate.mm: (-[ResourceLoadDelegate webView:resource:willSendRequest:redirectResponse:fromDataSource:]): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@232281 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
cdb9562
commit a5ca8e9
Showing
13 changed files
with
117 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,28 @@ | ||
2018-05-29 Youenn Fablet <[email protected]> | ||
|
||
Add a consistency check between URL and CFURL | ||
https://bugs.webkit.org/show_bug.cgi?id=186057 | ||
<rdar://problem/40258457> | ||
|
||
Reviewed by Geoff Garen. | ||
|
||
It is important that WebCore::URL used in WebCore and CFURL that gets serialized in the network pipe remain consistent. | ||
Otherwise, we will end-up with odd bugs. | ||
|
||
We add such a check when creating a CFURL from an URL. | ||
To make things more consistent, we also rely now more on WebCore::URL instead of directly creating a CFURL. | ||
|
||
* platform/URL.h: | ||
* platform/cf/CFURLExtras.cpp: | ||
(WebCore::isCFURLSameOrigin): | ||
* platform/cf/CFURLExtras.h: | ||
* platform/cf/URLCF.cpp: | ||
(WebCore::URL::createCFURL const): | ||
* platform/mac/URLMac.mm: | ||
(WebCore::URL::createCFURL const): | ||
* platform/mac/WebCoreNSURLExtras.mm: | ||
(WebCore::URLWithUserTypedString): | ||
|
||
2018-05-29 Timothy Hatcher <[email protected]> | ||
|
||
Printing does not apply the right colors in all cases. | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,16 @@ | ||
2018-05-29 Youenn Fablet <[email protected]> | ||
|
||
Add a consistency check between URL and CFURL | ||
https://bugs.webkit.org/show_bug.cgi?id=186057 | ||
<rdar://problem/40258457> | ||
|
||
Reviewed by Geoff Garen. | ||
|
||
* Shared/Cocoa/WKNSURLExtras.mm: | ||
(+[NSURL _web_URLWithWTFString:relativeToURL:]): | ||
(urlWithWTFString): Deleted. | ||
(+[NSURL _web_URLWithWTFString:]): Deleted. | ||
|
||
2018-05-29 Alex Christensen <[email protected]> | ||
|
||
Remove unused WebPage::dummy | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,20 @@ | ||
2018-05-29 Youenn Fablet <[email protected]> | ||
|
||
Add a consistency check between URL and CFURL | ||
https://bugs.webkit.org/show_bug.cgi?id=182444 | ||
<rdar://problem/37164835> | ||
|
||
Reviewed by Geoff Garen. | ||
|
||
DRT code expected a non null URL which is no longer the case now. | ||
Updated DRT to remove that assumption. | ||
|
||
* DumpRenderTree/TestRunner.cpp: | ||
(TestRunner::redirectionDestinationForURL): | ||
* DumpRenderTree/TestRunner.h: | ||
* DumpRenderTree/mac/ResourceLoadDelegate.mm: | ||
(-[ResourceLoadDelegate webView:resource:willSendRequest:redirectResponse:fromDataSource:]): | ||
|
||
2018-05-29 Brendan McLoughlin <[email protected]> | ||
|
||
Export changes to web-platform-test as part of the webkit-patch upload workflow | ||
|
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