Bug 988743 - Uplift Add-on SDK to Firefox
Bug 988506 - toolbox.js - focusConsoleInput() - TypeError: hud.jsterm is null;r=msucan
Bug 988710 - Task.spawn can launch synchronously, which leads to a race setting and clearing this._mainTask. Move that into the .then() clause of _run. Also fix up some logging and FHR issues, r=gfritzsche

--HG--
extra : rebase_source : 44047a113eb6702f3d7a6716ad044f0b5c06bd47
[Australis] Bug 985416: update visual appearance of dropmarker open state. r=Gijs
Bug 917226 - Build a canvas inspection tool, r=rcampbell
Bug 988853 - Disable Metro builds on secondary configs. r=jimm
Bug 977043 - Improve error reporting when an actor fails loading r=past
Bug 977043 - Prevent exceptions in debugger when debugging b2g popup window object. r=msucan
Bug 977043 - Prevent markupview from breaking selection. r=jwalker
Bug 977043 - Prevent styleeditor to break when iframes don't have a document r=harth
Merge mozilla-central to fx-team
Bug 738796 - Update category navigation. r=jaws
Bug 738796 - New style for checkboxes and radio buttons. r=jaws
Bug 985833 - Don't quote CC/CXX when checking MSVC version in configure. r=mshal
Bug 985835 - Move MOZ_DEBUG_FLAGS declaration for MSVC next to the one for GCC. r=mshal
Bug 985836 - Move -Fd flags from configure to config.mk. r=mshal
Bug 985200 - Fix includedir in mozilla-nspr.pc and mozilla-nss.pc. r=bsmedberg
Bug 964803 - Cleanup the JS OOM testing code. r=jandem
Bug 948901 FTP directory listings need to support the Character Encoding menu r=mayhemer,michal
Bug 986367 - Make paint_listener.js check for paint suppression; r=mattwoodrow

This patch adds an extra check for paint suppression when waiting for paint
events. This is because on some platforms (notably B2G) we can think all paints
have completed because paint suppression is in effect and as a result call the
callback too soon.

This patch use window.setTimeout(..., 0) to wait for paint suppression to finish
before preceding to check for pending paint events.

When the refresh driver is under test control, if we detect that paint events
are pending we need to force a refresh driver tick. This patch adds that tick.
I suppose we had previously never hit this situation before and never noticed
this.

This patch also rearranges the main loop so that early returns appear first and
calling the callback appears at the end.