Merge m-c to inbound.
Bug 936013 - Type check JS_NeuterArrayBuffer argument, r=jorendorff
Bug 925308 - Added test case.
Bug 937129 - Fix some concurrency issues in APZCTM::HandleOverscroll. r=kats
Bug 935089 - Make ArrayLength, ArrayEnd, and PodArrayZero accept mozilla::Array argument; r=Waldo
Bug 923333 - Replace docShell.setCurrentURI with something e10s-compatible (r=felipe)
Bug 930269 - Clean up SessionStore.restoreHistory (r=smacleod)
Bug 930269 - Rename SessionStore.restoreTab (r=smacleod)
Bug 930269 - Rename SessionStore.restoreHistoryPrecursor (r=smacleod)
Bug 930269 - Move saving of tab attributes (r=smacleod)
Bug 930269 - Rename SessionHistory.read (r=smacleod)
Bug 930269 - Create SessionHistory.restore (r=smacleod)
bug 909344 - treat U+007F as a control, not a printable character. r=roc
bug 909344 - reftest for display of stray control characters. r=roc
Bug 927954 - Adding rendertrace logging to the APZ code. r=botond

To use this logging, enable the #define at the top of
AsyncPanZoomController.cpp, run through the scenario you wish
to trace and collect the logs, and then paste them into the
textarea on the page at github.com/staktrace/rendertrace/.
Bug 916602 (Part 1) - Avoid null timestamp assertion in FrameAnimator::GetCurrentImgFrameEndTime. r=seth
Bug 916602 (Part 2) - Avoid null timestamp assertion when creating sentinel in FrameAnimator. r=tn
Bug 840488 - Refactor Gecko to provide a more direct API to ask whether script is allowed for a given global. r=bz
Bug 840488 - Get rid of aAllowIfNoScriptContext. r=bz

The old code seemed to feel that the lack of a script context was some sort of
showdown that required either unconditional allow or deny. Instead, let's just
make the scriptcontext-relevant checks conditional on there being a script
context, which lets us switch CheckFunctionAccess over to ScriptAllowed.
Bug 840488 - Remove CheckFunctionAccess. r=bz

\o/

Aside from checking whether script is enabled, all the other work this function
does is silly.