Bug 964545 Add-on SDK page-mods are now debuggable r=dcamp

From 4e2794d4afedd6162aae2263c698c491b96d383e Mon Sep 17 00:00:00 2001
---
 addon-sdk/source/lib/sdk/content/sandbox.js        |  13 +-
 .../source/lib/sdk/deprecated/traits-worker.js     |   5 +-
 addon-sdk/source/lib/sdk/loader/sandbox.js         |  17 ++-
 addon-sdk/source/lib/sdk/tabs/utils.js             |   2 +-
 .../addons/page-mod-debugger-post/data/index.html  |   7 ++
 .../addons/page-mod-debugger-post/data/script.js   |   7 ++
 .../test/addons/page-mod-debugger-post/main.js     | 133 +++++++++++++++++++++
 .../addons/page-mod-debugger-post/package.json     |   4 +
 .../addons/page-mod-debugger-pre/data/index.html   |   7 ++
 .../addons/page-mod-debugger-pre/data/script.js    |   7 ++
 .../test/addons/page-mod-debugger-pre/main.js      | 128 ++++++++++++++++++++
 .../test/addons/page-mod-debugger-pre/package.json |   4 +
 addon-sdk/source/test/test-page-mod.js             |  34 ++++--
 toolkit/devtools/DevToolsExtensions.jsm            |  46 +++++++
 toolkit/devtools/server/actors/script.js           |  25 +++-
 toolkit/devtools/tests/mochitest/chrome.ini        |   1 +
 .../tests/mochitest/test_devtools_extensions.html  | 117 ++++++++++++++++++
 17 files changed, 537 insertions(+), 20 deletions(-)
 create mode 100644 addon-sdk/source/test/addons/page-mod-debugger-post/data/index.html
 create mode 100644 addon-sdk/source/test/addons/page-mod-debugger-post/data/script.js
 create mode 100644 addon-sdk/source/test/addons/page-mod-debugger-post/main.js
 create mode 100644 addon-sdk/source/test/addons/page-mod-debugger-post/package.json
 create mode 100644 addon-sdk/source/test/addons/page-mod-debugger-pre/data/index.html
 create mode 100644 addon-sdk/source/test/addons/page-mod-debugger-pre/data/script.js
 create mode 100644 addon-sdk/source/test/addons/page-mod-debugger-pre/main.js
 create mode 100644 addon-sdk/source/test/addons/page-mod-debugger-pre/package.json
 create mode 100644 toolkit/devtools/DevToolsExtensions.jsm
 create mode 100644 toolkit/devtools/tests/mochitest/test_devtools_extensions.html