Another Mac build fix attempt after r146239.

* WebCoreSupport/WebFrameNetworkingContext.h:
(WebFrameNetworkingContext):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146246 268f45cc-cd09-0410-ab3c-d52691b4dbfc
DFG should optimize StringObject.length and StringOrStringObject.length
https://bugs.webkit.org/show_bug.cgi?id=112658

Reviewed by Mark Hahnenberg.
        
Implemented by injecting a ToString(StringObject:@a) or ToString(StringOrStringObject:@a) prior
to GetArrayLength with ArrayMode(Array::String) if @a is predicted StringObject or
StringOrStringObject.

* dfg/DFGFixupPhase.cpp:
(JSC::DFG::FixupPhase::fixupNode):
(JSC::DFG::FixupPhase::createToString):
(FixupPhase):
(JSC::DFG::FixupPhase::attemptToForceStringArrayModeByToStringConversion):
(JSC::DFG::FixupPhase::convertStringAddUse):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146247 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Restarting a snapshotted plugin should restart all plugins from the same domain on the page
https://bugs.webkit.org/show_bug.cgi?id=112725

Reviewed by Tim Horton.

Source/WebCore:

If the user restarts a snapshotted plugin, then typically they will
want to restart all similar plugins on the page, where similarity
is defined by the domain of the content. Or in other words, since clients
will typically add a restarted plugin to the list of autostarting
domain hashes, we should start the other plugins that would autostart
on reload.

When a snapshotted plugin gets the user click telling it to restart, it iterates
over every frame in the document looking for domain hashes similar to its own.
It then manually restarts each of the paused plugins.

* html/HTMLPlugInImageElement.cpp:
(WebCore::addPlugInsFromNodeListMatchingOriginHash): Static helper function
    that builds a list of plugins to restart.
(WebCore::HTMLPlugInImageElement::userDidClickSnapshot): After restarting itself,
    the plugin looks for all other similar snapshotted plugins in the page.
(WebCore::HTMLPlugInImageElement::restartSnapshottedPlugIn): Splits out the actual
    restart functionality, to make it separate from plugins that were manually
    restarted and thus probably want to forward a delayed click event.
* html/HTMLPlugInImageElement.h:
(HTMLPlugInImageElement): New method restartSnapshottedPlugIn.

Source/WebKit2:

When we add a plugin domain hash to the list of sites that autostart, we
send a message to our owning process. That message might not return before
another plugin queries if it is in the list. So, before we send the message,
add the current hash to the list with a very small timeout. That way the
response will be to either extend the timeout, or not add the hash (in which
case it will expire soon).

* WebProcess/WebProcess.cpp:
(WebKit::WebProcess::addPlugInAutoStartOrigin):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146248 268f45cc-cd09-0410-ab3c-d52691b4dbfc
svn-apply has trouble applying a patch that adds a Windows newline to EOF
https://bugs.webkit.org/show_bug.cgi?id=112732

Reviewed by Eric Seidel.

Fixes an issues where a diff that adds a Windows line ending (CRLF) to the end
of an existing file cannot be applied.

In particular, svn-{apply, unapply} compensate for differences in line endings
by converting the line endings in a diff to match the line endings in the target
file. The diff(1) command precedes the last line of a diff that adds a newline
character to the end of a file with the special character sequence "\n \\ No newline at end of file\n"
Svn-{apply, unapply} converts the newline characters (\n) in this character sequence
to \r\n (CRLF) when the target file has Windows line endings and patch(1) complains
when applying this modified diff. Instead, svn-{apply, unapply} should not modify
the newline characters in this special character sequence to match the line endings
in the target file.

* Scripts/VCSUtils.pm:
(parseDiff):
* Scripts/webkitperl/VCSUtils_unittest/parseDiffWithMockFiles.pl:
Added tests:
    - "SVN: Patch adds Windows newline to EOF and IndexPath has Windows line endings"
    - "SVN: Patch adds Mac newline to EOF and IndexPath has Mac line endings"
    - "Git: Patch adds Windows newline to EOF and IndexPath has Windows line endings"
    - "Git: Patch adds Mac newline to EOF and IndexPath has Mac line endings"
(escapeNewLineCharacters): Added.
(toMacLineEndings): Added.


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