[ServiceWorker, PushMessaging] Use ScriptPromiseResolverWithContext.

Use ScriptPromiseResolverWithContext instead of a pair of
ScriptPromiseResolver and NewScriptState.
This CL doen't change the behavior in many cases: The only exception
is when the resolution / rejection happens on the suspended or stopped
ExecutionContext. In such a case, ScriptPromiseResolver suspends or stops
resolution or rejection.

R=dominicc@chromium.org, mvanouwerkerk@chromium.org
TBR=mvanouwerkerk@chromium.org
BUG=352552

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

git-svn-id: svn://svn.chromium.org/blink/trunk@172011 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add [ Timeout ] to LeakExepctations to suppress Timeout failures on the Leak buildbot.

TBR=hajimehoshi
BUG=365202

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

git-svn-id: svn://svn.chromium.org/blink/trunk@172012 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove v8::TryCatch from V8StringResource<T>::prepare so that a caller can
catch and ignore the exception.
Add v8::TryCatch to TOSTRING_VOID and TOSTRING_DEFAULT not to change the existing behavior.
Split V8StringResource<T>::prepare to avoid performance regressions caused by
unnecessary v8::TryCatch creation.
This is a refactoring CL and does not change the existing behavior.

BUG=359386

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

git-svn-id: svn://svn.chromium.org/blink/trunk@172013 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert 172006 "Make window's navigator / history properties non ..."

Speculative revert. I suspect this broke browser_tests
PlatformAppBrowserTest.Restrictions.

> Make window's navigator / history properties non replaceable
> 
> Make window's navigator / history properties non replaceable to match
> the specification:
> http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html#window
> 
> The new behavior also matches the behavior of Firefox 28 and IE11.
> 
> R=arv@chromium.org, tkent@chromium.org
> BUG=364512
> TEST=fast/dom/Window/get-set-properties.html
> 
> Review URL: https://codereview.chromium.org/243203002

TBR=ch.dumez@samsung.com
BUG=364512

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

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