Title: [164381] trunk/Source/WebKit2
- Revision
- 164381
- Author
- [email protected]
- Date
- 2014-02-19 12:44:45 -0800 (Wed, 19 Feb 2014)
Log Message
[wk2] REGRESSION (r162710): Open tab urls not restored after switching to new Safari build
https://bugs.webkit.org/show_bug.cgi?id=128536
<rdar://problem/15911839>
Reviewed by Dan Bernstein.
* UIProcess/cf/WebBackForwardListCF.cpp:
(WebKit::extractBackForwardListEntriesFromArray):
Don't fail to extract an entry if it doesn't have a snapshot UUID.
* UIProcess/cf/WebPageProxyCF.cpp:
It turns out that this was the wrong version to bump, and we don't support
reading different versions of the session state data.
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (164380 => 164381)
--- trunk/Source/WebKit2/ChangeLog 2014-02-19 20:15:18 UTC (rev 164380)
+++ trunk/Source/WebKit2/ChangeLog 2014-02-19 20:44:45 UTC (rev 164381)
@@ -1,3 +1,19 @@
+2014-02-19 Tim Horton <[email protected]>
+
+ [wk2] REGRESSION (r162710): Open tab urls not restored after switching to new Safari build
+ https://bugs.webkit.org/show_bug.cgi?id=128536
+ <rdar://problem/15911839>
+
+ Reviewed by Dan Bernstein.
+
+ * UIProcess/cf/WebBackForwardListCF.cpp:
+ (WebKit::extractBackForwardListEntriesFromArray):
+ Don't fail to extract an entry if it doesn't have a snapshot UUID.
+
+ * UIProcess/cf/WebPageProxyCF.cpp:
+ It turns out that this was the wrong version to bump, and we don't support
+ reading different versions of the session state data.
+
2014-02-19 Brady Eidson <[email protected]>
Add FeatureDefines for image controls
Modified: trunk/Source/WebKit2/UIProcess/cf/WebBackForwardListCF.cpp (164380 => 164381)
--- trunk/Source/WebKit2/UIProcess/cf/WebBackForwardListCF.cpp 2014-02-19 20:15:18 UTC (rev 164380)
+++ trunk/Source/WebKit2/UIProcess/cf/WebBackForwardListCF.cpp 2014-02-19 20:44:45 UTC (rev 164381)
@@ -311,12 +311,6 @@
return false;
}
- CFStringRef snapshotUUID = (CFStringRef)CFDictionaryGetValue(entryDictionary, sessionHistoryEntrySnapshotUUIDKey);
- if (!snapshotUUID || CFGetTypeID(snapshotUUID) != CFStringGetTypeID()) {
- LOG(SessionState, "WebBackForwardList entry at index %i does not have a valid snapshot UUID", (int)i);
- return false;
- }
-
CFDataRef backForwardData = (CFDataRef)CFDictionaryGetValue(entryDictionary, sessionHistoryEntryDataKey);
if (!backForwardData || CFGetTypeID(backForwardData) != CFDataGetTypeID()) {
LOG(SessionState, "WebBackForwardList entry at index %i does not have back/forward data", (int)i);
@@ -324,7 +318,11 @@
}
auto item = WebBackForwardListItem::create(originalURL, entryURL, entryTitle, CFDataGetBytePtr(backForwardData), CFDataGetLength(backForwardData), generateWebBackForwardItemID());
- item->setSnapshotUUID(snapshotUUID);
+
+ CFStringRef snapshotUUID = (CFStringRef)CFDictionaryGetValue(entryDictionary, sessionHistoryEntrySnapshotUUIDKey);
+ if (snapshotUUID && CFGetTypeID(snapshotUUID) == CFStringGetTypeID())
+ item->setSnapshotUUID(snapshotUUID);
+
entries.append(item);
}
Modified: trunk/Source/WebKit2/UIProcess/cf/WebPageProxyCF.cpp (164380 => 164381)
--- trunk/Source/WebKit2/UIProcess/cf/WebPageProxyCF.cpp 2014-02-19 20:15:18 UTC (rev 164380)
+++ trunk/Source/WebKit2/UIProcess/cf/WebPageProxyCF.cpp 2014-02-19 20:44:45 UTC (rev 164381)
@@ -44,7 +44,7 @@
static CFStringRef sessionHistoryKey = CFSTR("SessionHistory");
static CFStringRef provisionalURLKey = CFSTR("ProvisionalURL");
-static const UInt32 CurrentSessionStateDataVersion = 3;
+static const UInt32 CurrentSessionStateDataVersion = 2;
PassRefPtr<API::Data> WebPageProxy::sessionStateData(WebPageProxySessionStateFilterCallback filter, void* context) const
{
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes