API functions returning Promises should not throw exceptions.

http://heycam.github.io/webidl/#es-operations states that an API returning
a Promise should return a rejected Promise when an error occurs rather than
throwing an exception.

BUG=359386, 362992
R=nbarth@chromium.org, eroman@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171450 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix a crash caused by calling detached navigator APIs.

Calling a navigator method leads to a crash when:
 - The navigator is associated with an iframe, 
 - The iframe has some contents and
 - The iframe is detached.

This CL fixes the crash.

BUG=358800
R=abarth

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171451 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Move CPUProfileDataModel and CPUFlameChartDataProvider into a separate file

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171452 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove redundant crash tests using Selection.modify("-webkit-visual-word").

We removed experimental flag -webkit-visual-word 2 years ago:
http://src.chromium.org/viewvc/blink/trunk/Source/core/page/DOMSelection.cpp?r1=89440&r2=102252
Selection.modify("-webkit-visual-word") does nothing.
However, there are still tests using the flag.
They confirm that scripts don't crash when they call Selection.modify("-webkit-visual-word").
It doesn't make sense.

BUG=

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

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