Only initialize WebPreferences from NSUserDefaults if there's an identifier
https://bugs.webkit.org/show_bug.cgi?id=134162

Reviewed by Sam Weinig.

We don't want to allow changing preferences by registering user defaults.

* UIProcess/mac/WebPreferencesMac.mm:
(WebKit::makeKey):
(WebKit::WebPreferences::platformInitializeStore):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@170251 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Begin work on decoding form data
https://bugs.webkit.org/show_bug.cgi?id=134163

Reviewed by Sam Weinig.

* UIProcess/mac/LegacySessionStateCoding.cpp:
(WebKit::HistoryEntryDataDecoder::operator>>):
(WebKit::HistoryEntryDataDecoder::isValid):
(WebKit::isValidEnum):
(WebKit::decodeFormDataElement):
(WebKit::decodeFormData):
(WebKit::decodeBackForwardTreeNode):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@170252 268f45cc-cd09-0410-ab3c-d52691b4dbfc