michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: "use strict"; michael@0: michael@0: const { Cu } = require('chrome'); michael@0: const { PageMod } = require('sdk/page-mod'); michael@0: const tabs = require('sdk/tabs'); michael@0: const promise = require('sdk/core/promise') michael@0: const { getMostRecentBrowserWindow } = require('sdk/window/utils'); michael@0: const { data } = require('sdk/self'); michael@0: const { set } = require('sdk/preferences/service'); michael@0: michael@0: const { DebuggerServer } = Cu.import('resource://gre/modules/devtools/dbg-server.jsm', {}); michael@0: const { DebuggerClient } = Cu.import('resource://gre/modules/devtools/dbg-client.jsm', {}); michael@0: michael@0: let gClient; michael@0: let ok; michael@0: let testName = 'testDebugger'; michael@0: let iframeURL = 'data:text/html;charset=utf-8,' + testName; michael@0: let TAB_URL = 'data:text/html;charset=utf-8,' + encodeURIComponent('