tracing: add support for ConvertableToTraceFormat in blink

BUG=361045

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171935 bbb929c8-8fbe-4397-9dbb-9b2b20218538
FrameLoader should be detached when a Page is going to be destroyed

Currently Page::willBeDestroyed calls LocalFrame::willDetachFrameHost and LocalFrame::detachFromFrameHost to detach the frames in the page, but it does not call FrameLoader::frameDetached. Consequently, FrameLoader doesn't get detached when a Page is destroyed, and FrameLoader::m_client becomes a stale pointer.

To avoid the situation, Page::willBeDestroyed should call FrameLoader::frameDetached. (Then we don't need to call LocalFrame::willDetachFrameHost and LocalFrame::detachFromFrameHost because they are called in FrameLoader::frameDetached.)

HTMLFrameOwnerElement::disconnectContentFrame is already doing this. It calls FrameLoader::frameDetached instead of LocalFrame::willDetachFrameHost and LocalFrame::detachFromFrameHost.

BUG=340522
TEST=None. This issue appears only in Oilpan builds because Oilpan changes the order in which things are destructed.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171936 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Extract shortcut handling from KeyboardShortcut.js into ShortcutRegistry.js

This patch prepares the code for handling of shortcuts forwarded from the inspected page.

R=pfeldman@chromium.org, pfeldman, vsevik

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171937 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Rebaseline and optimize Mac image results post Chromium r264636

BUG=363772
TBR=danakj@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171938 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: remove try catch statement and exceptions from ModuleManager.resolve

It is a bit annoying to stop on all caught exceptions when Devtools are reloading.

BUG=

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

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