b=970773 collect common AudioProcessingEvent tests into a shared function r=ehsan

--HG--
extra : rebase_source : 191bc425627b5290d2963e23d0bb7dfc569d7719
b=970773 remove unnecessary IsSafeToRunScript() test on event loop nsRunnable r=roc

If the event loop is running, then it is safe to run script.

--HG--
extra : rebase_source : c0fb5fddb8e714d4d5ed0cdb7384a95cf23ad9af
b=970773 remove unnecessary locking when getting AudioNodeEngine Node on main thread r=roc

See also bug 914392.

--HG--
extra : rebase_source : 4c3599dd1866adf5045d69ab97ae362a6de4aba5
b=970773 convert destination stream time to DOM time for playbackTime r=roc

--HG--
extra : rebase_source : a4385d56d6cc39d59abf14cca4d399a33fd64173
Bug 1047022 - Remove manual addref for Session object. Let MediaRecorder hold reference to Session that makes a cycle reference, break it in DestrotedRunnable(). r=roc
Bug 1054154 - Revert part of bug 1042878 to unbreak build when system ICU is installed. r=froydnj, r=glandium
Bug 1054908 - Ensure socket_child_ is released on main thread. r=mt
Bug 1055113 - Unbreak non-unified build on FreeBSD after bug 988816. r=swu, r=jduell
Bug 931040 - add access to hidden system fonts on OSX. r=jfkthame
bug 1050063 - consider tls client hello version in alpn/npn offer list r=hurley r=keeler
Bug 1010417 - IonMonkey: Remove the script size limit for offthread compilation, r=jandem
Backed out changeset e71a3cac1b3d (bug 1005818)
Backed out changeset e020d647d6d3 (bug 1005818) for exceptions during test_widget.html
Backed out changeset 721eb8e94100 (bug 1014023) for exceptions during test_widget.html
Bug 1005818 - Part 1: Load a widget as an app if the |src| is in the |widgetPages|. r=fabrice, sr=sicking

1. Add permission |embed-widgets| and Element attribute |mozwidget|
2. Add |hasWidgetPage| in /mozIApplication.idl
3. Check permission |embed-widgets| and the |src| is in the |widgetPages| when |GetAppManifest|
4. Add test case
5. Should enable preference |dom.enable_widgets|
Bug 1005818 - Part 2: Only limited browser API are available to a widget. r=kanru

1. Add |ownerIsWidget| in nsIFrameLoader.idl
2. Add |GetReallyIsWidget| in nsIMozBrowserFrame.idl
3. Hide the methods of browser API of a widget
4. Hide security-sensitive mozbrowser events of a widget
Merge mozilla-central and inbound
Bug 1055014 - Remove b2g xpcshell test dir setup hack that is no longer needed, r=chmanchester
Bug 1055521 - Expose mozcrash.log_crashes for structured logging of crashes, r=ted.mielczarek
Bug 1055522 - Bump mozcrash version number for structured logging changes, r=ted.mielczarek