Do not attempt to detect transfering the 'target' MessagePort in postMessage

The attempt results in a memory leak in Blink (bug 311229), yet fails to do
a through job of protecting against API abuse (bug 312962). Safari fails
similarly.

Removing MessagePortChannel::m_entangledChannel allows MessagePortChannel to stop being
refcounted and is instead managed via OwnPtrs.

I've filed a spec bug against HTML at https://www.w3.org/Bugs/Public/show_bug.cgi?id=23685,
and from IRC discussion with the editor it seems likely that the "throw" requirement
will be removed.

R=abarth@chromium.org
BUG=311229,312962

Review URL: https://codereview.chromium.org/46303007

git-svn-id: svn://svn.chromium.org/blink/trunk@161083 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[webcrypto] Make algorithm nullable in crypto.subtle.importKey().

BUG=245025

Review URL: https://codereview.chromium.org/53173007

git-svn-id: svn://svn.chromium.org/blink/trunk@161084 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Don't consume a user gesture when going to fullscreen

We meanwhile just exit fullscreen before opening a new window, so consuming
a user gesture is overzealous.

This revert r160739, r159021, and r158993

BUG=none
R=abarth@chromium.org

Review URL: https://codereview.chromium.org/52423002

git-svn-id: svn://svn.chromium.org/blink/trunk@161085 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add useUnfortunateSynchronousResizeMode to tests that need it.

I am ready to flip the flag in Content Shell, so need to
start using the flags (no-ops for now) in tests.

R=eseidel@chromium.org, eseidel
BUG=309760

Review URL: https://codereview.chromium.org/52803005

git-svn-id: svn://svn.chromium.org/blink/trunk@161086 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Document should not use confusingAndOftenMisusedAttached()

Switch all the callers of confusingAndOftenMisusedAttached() in Document.cpp
to something more specific. I tried this once, but I changed too many things
in the same patch like changing the nulling out of the RenderView inside
Document::detach: https://codereview.chromium.org/26347002

This patch changes fewer things and only switches the callers inside
Document.cpp. Future patches will attempt to clean up Documen::detach
like I did in the original patch.

Review URL: https://codereview.chromium.org/54233004

git-svn-id: svn://svn.chromium.org/blink/trunk@161087 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Enable warnings for clang on non-mac

I did local debug and release builds on linux,
this works now.

BUG=312287
TBR=dglazkov

Review URL: https://codereview.chromium.org/50363007

git-svn-id: svn://svn.chromium.org/blink/trunk@161088 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move ColorChooser(Client) to platform/

BUG=297477

Review URL: https://codereview.chromium.org/50523016

git-svn-id: svn://svn.chromium.org/blink/trunk@161089 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Centralize TextStream functions to remove RenderTreeAsText dependency of the filters

BUG=297477

Review URL: https://codereview.chromium.org/54803002

git-svn-id: svn://svn.chromium.org/blink/trunk@161090 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove duplicated rule from web.gyp.

BUG=312287
TBR=dglazkov

Review URL: https://codereview.chromium.org/54303004

git-svn-id: svn://svn.chromium.org/blink/trunk@161091 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove display:compact as per https://groups.google.com/a/chromium.org/d/topic/blink-dev/j6QErzkX4RE/discussion.

display: compact does the same thing as display: block and is only in
WebKit/Blink browsers. It's used on 0.02% of pageviews, but for many of
those uses it's likely used on a block anyways, so the likelihood
of removing this breaking content is quite low.

Review URL: https://codereview.chromium.org/52713012

git-svn-id: svn://svn.chromium.org/blink/trunk@161092 bbb929c8-8fbe-4397-9dbb-9b2b20218538