devtools-modules
Advanced tools
Comparing version 0.0.23 to 0.0.24
@@ -77,3 +77,3 @@ /* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */ | ||
popup = this.createPopup(doc) | ||
popup = this.createPopup(doc); | ||
popup.setAttribute("menu-api", "true"); | ||
@@ -119,5 +119,8 @@ | ||
let menuitem = doc.createElement("menuitem"); | ||
menuitem.setAttribute("label", item.label); | ||
menuitem.textContent = item.label; | ||
let menu = doc.createElement("menu"); | ||
menu.appendChild(menuitem); | ||
menu.appendChild(menupopup); | ||
menu.setAttribute("label", item.label); | ||
if (item.disabled) { | ||
@@ -124,0 +127,0 @@ menu.setAttribute("disabled", "true"); |
@@ -40,3 +40,3 @@ /* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */ | ||
const { Services } = require("./shim/Services"); | ||
const Services = require("./shim/Services"); | ||
@@ -43,0 +43,0 @@ const DEFAULT_HTTP_VERSION = "HTTP/1.1"; |
@@ -159,3 +159,3 @@ /* This Source Code Form is subject to the terms of the Mozilla Public | ||
this._branch = Services.prefs.getBranch(prefsRoot + "."); | ||
this._branch.addObserver("", this, false); | ||
this._branch.addObserver("", this); | ||
}, | ||
@@ -162,0 +162,0 @@ unregister: function() { |
24
index.js
@@ -5,4 +5,2 @@ const AppConstants = require("./sham/appconstants"); | ||
const EventEmitter = require("./shared/event-emitter"); | ||
const FileSaver = require("./client/shared/file-saver"); | ||
const frame = require("./client/shared/components/frame"); | ||
const Menu = require("./client/framework/menu"); | ||
@@ -12,13 +10,8 @@ const MenuItem = require("./client/framework/menu-item"); | ||
const PrefsHelper = require("./client/shared/prefs").PrefsHelper; | ||
const SearchBox = require("./client/shared/components/search-box"); | ||
const Services = require("./client/shared/shim/Services"); | ||
const sourceUtils = require("./client/shared/source-utils"); | ||
const SplitBox = require("./client/shared/components/splitter/SplitBox"); | ||
const sprintf = require("./shared/sprintf").sprintf; | ||
// const Tabbar = require("./client/shared/components/tabs/tabbar"); | ||
// const TabPanel = require("./client/shared/components/tabs/tabs"); | ||
const Tree = require("./client/shared/components/tree"); | ||
const WebsocketTransport = require("./shared/transport/websocket-transport"); | ||
const workerUtils = require("./shared/worker-utils"); | ||
const { Chart } = require("./client/shared/widgets/Chart"); | ||
const { CurlUtils } = require("./client/shared/curl"); | ||
@@ -29,14 +22,9 @@ const { DebuggerClient } = require("./shared/client/main"); | ||
const { gDevTools } = require("./client/framework/devtools"); | ||
const { HTMLTooltip } = require("./client/shared/widgets/tooltip/HTMLTooltip"); | ||
const { KeyCodes } = require("./client/shared/keycodes"); | ||
const { KeyShortcuts } = require("./client/shared/key-shortcuts"); | ||
const { PluralForm } = require("./shared/plural-form"); | ||
const { setNamedTimeout } = require("./client/shared/widgets/view-helpers"); | ||
const { TargetFactory } = require("./client/framework/target"); | ||
const { TimelineFront } = require("./client/shared/fronts/timeline"); | ||
// const { LocalizationHelper, localizeMarkup, MultiLocalizationHelper } = require("./shared/l10n"); | ||
module.exports = { | ||
AppConstants, | ||
Chart, | ||
CurlUtils, | ||
@@ -48,7 +36,3 @@ DebuggerClient, | ||
EventEmitter, | ||
FileSaver, | ||
frame, | ||
gDevTools, | ||
HTMLTooltip, | ||
KeyCodes, | ||
KeyShortcuts, | ||
@@ -60,13 +44,5 @@ Menu, | ||
PrefsHelper, | ||
SearchBox, | ||
Services, | ||
setNamedTimeout, | ||
sourceUtils, | ||
SplitBox, | ||
// LocalizationHelper, | ||
// localizeMarkup, | ||
// MultiLocalizationHelper, | ||
sprintf, | ||
// Tabbar, | ||
// TabPanel, | ||
TargetFactory, | ||
@@ -73,0 +49,0 @@ TimelineFront, |
{ | ||
"name": "devtools-modules", | ||
"version": "0.0.23", | ||
"version": "0.0.24", | ||
"description": "DevTools Modules from M-C", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -96,3 +96,3 @@ /* This Source Code Form is subject to the terms of the Mozilla Public | ||
// event listener, even for extremely fast copies (like when testing). | ||
Services.tm.currentThread.dispatch(() => { | ||
Services.tm.dispatchToMainThread(() => { | ||
try { | ||
@@ -103,3 +103,3 @@ this._copy(); | ||
} | ||
}, 0); | ||
}); | ||
return this; | ||
@@ -106,0 +106,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
604156
51
16049