Oilpan: move MediaKeyError to the heap.

R=haraken@chromium.org
BUG=340522

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176742 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move invodeCallback from V8Callback to V8Binding

Because of removing "V8GeolocationCustom.cpp", "invokeCallback"
functions are only left in "V8Callback".
They could be moved to "V8Binding" becuase they are related to
binding. In addition, "V8Callback.h/cpp" could be removed.

BUG=387640

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176743 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove unused functions in PositionOptions

setEnableHighAccuracy, setTimeout and setMaximumAge are only used in
"V8GeolocationCustom.cpp", but that file has been removed on the r176719.
Therefore those functinos have to be removed also.

BUG=385426

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176744 bbb929c8-8fbe-4397-9dbb-9b2b20218538
IDL parser: fix rebuilding of (stale) cached parser tables

The yacc parser's tables are cached to improve build performance, and are
rebuilt by running blink_idl_parser.py directly, which simply initializes
the IDL parser and expects PLY (yacc.py) to write the cached tables as a
side-effect.

However, if the file containing the cached tables exists, then PLY will
instead try to load the stale cache. If that succeeds, it will disable
the rewriting, since there's no point in writing to the cache what was
just read from it.

Fix by always deleting the cache file whenever blink_idl_parser.py is
executed directly, before initializing the parser. This way, PLY will not
use cached tables, and will instead write the cache file.

BUG=387631

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176745 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Throw TypeError when addEventListener or removeEventListener are called without enough arguments

** Changes web-facing behavior **

This removes legacy behavior, per request of Tab:
it fixes some current compatibility problems which *are* causing pain,
but potentially breaks some old content.

Current behavior (not throwing a TypeError) was for compatibility in 2012,
though unspecified cause:
WebKit bug specifically special-casing this in JavaScriptCore bindings is:
[JSC] Regression: addEventListener() and removeEventListener() raise an exception on missing args
https://bugs.webkit.org/show_bug.cgi?id=85928

WebKit/Safari also has legacy behavior (matches current Blink/Chrome):
"For compatibility with legacy content, the EventListener calls are generated without GenerateArgumentsCountCheck."
http://trac.webkit.org/browser/trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm#L2823

However, IE and Firefox *do* throw (correctly), and this discrepancy is causing
compatibility problems:
removeEventListener with only one passed parameter...
http://lists.w3.org/Archives/Public/public-script-coord/2014AprJun/0166.html

Thus this CL aligns with spec, updating tests and removing legacy tests.

R=haraken
BUG=353484
TEST=fast/dom/event-target-arguments.html

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176746 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Do not show save/save as context menu items for file system files and snippets.

BUG=384363
R=lushnikov

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

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