Title: [131499] trunk/Source/WebCore
- Revision
- 131499
- Author
- [email protected]
- Date
- 2012-10-16 14:05:15 -0700 (Tue, 16 Oct 2012)
Log Message
Init timeout flag in ResourceErrorMac
https://bugs.webkit.org/show_bug.cgi?id=99478
Reviewed by Alexey Proskuryakov.
On construction from platform error types, initialize the timeout flag
to true if the error results from a timeout.
No new tests, covered by tests that will be added in bug 74802.
* platform/network/mac/ResourceErrorMac.mm:
(WebCore::ResourceError::platformLazyInit): Initializing timeout flag if the error was a timeout.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (131498 => 131499)
--- trunk/Source/WebCore/ChangeLog 2012-10-16 21:04:19 UTC (rev 131498)
+++ trunk/Source/WebCore/ChangeLog 2012-10-16 21:05:15 UTC (rev 131499)
@@ -1,3 +1,18 @@
+2012-10-16 Dominik Röttsches <[email protected]>
+
+ Init timeout flag in ResourceErrorMac
+ https://bugs.webkit.org/show_bug.cgi?id=99478
+
+ Reviewed by Alexey Proskuryakov.
+
+ On construction from platform error types, initialize the timeout flag
+ to true if the error results from a timeout.
+
+ No new tests, covered by tests that will be added in bug 74802.
+
+ * platform/network/mac/ResourceErrorMac.mm:
+ (WebCore::ResourceError::platformLazyInit): Initializing timeout flag if the error was a timeout.
+
2012-10-16 Tony Chang <[email protected]>
input[type=range] as a flex item renders thumb at wrong position
Modified: trunk/Source/WebCore/platform/network/mac/ResourceErrorMac.mm (131498 => 131499)
--- trunk/Source/WebCore/platform/network/mac/ResourceErrorMac.mm 2012-10-16 21:04:19 UTC (rev 131498)
+++ trunk/Source/WebCore/platform/network/mac/ResourceErrorMac.mm 2012-10-16 21:05:15 UTC (rev 131499)
@@ -95,6 +95,8 @@
, m_platformError(nsError)
{
m_isNull = !nsError;
+ if (!m_isNull)
+ m_isTimeout = [m_platformError.get() code] == NSURLErrorTimedOut;
}
ResourceError::ResourceError(CFErrorRef cfError)
@@ -102,6 +104,8 @@
, m_platformError((NSError *)cfError)
{
m_isNull = !cfError;
+ if (!m_isNull)
+ m_isTimeout = [m_platformError.get() code] == NSURLErrorTimedOut;
}
void ResourceError::platformLazyInit()
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes