@@ -17,11 +17,6 @@ const { defer } = require("sdk/core/promise");
17
17
// Firebug SDK
18
18
const { devtools, safeRequire } = require ( "firebug.sdk/lib/core/devtools.js" ) ;
19
19
20
- // See also: https://bugzilla.mozilla.org/show_bug.cgi?id=912121
21
- var { MarkupView } = safeRequire ( devtools ,
22
- "devtools/client/markupview/markup-view" ,
23
- "devtools/markupview/markup-view" ) ;
24
-
25
20
const { Trace, TraceError } = require ( "firebug.sdk/lib/core/trace.js" ) . get ( module . id ) ;
26
21
const { PanelOverlay } = require ( "firebug.sdk/lib/panel-overlay.js" ) ;
27
22
const { Dom } = require ( "firebug.sdk/lib/core/dom.js" ) ;
@@ -358,29 +353,5 @@ const InspectorOverlay = Class(
358
353
}
359
354
} ) ;
360
355
361
- // Patching MarkupView (fire a new "container-created" event)
362
- // Bug 1036949 - New API: MarkupView customization
363
- // xxxHonza: Can be removed as soon as Fx42 is the
364
- // minimum required version.
365
- let originalImportNode = MarkupView . prototype . importNode ;
366
- MarkupView . prototype . importNode = function ( aNode , aFlashNode ) {
367
- if ( ! aNode ) {
368
- return null ;
369
- }
370
-
371
- if ( this . _containers . has ( aNode ) ) {
372
- return this . getContainer ( aNode ) ;
373
- }
374
-
375
- let container = originalImportNode . apply ( this , arguments ) ;
376
-
377
- // Feature detection based on nodeFront.getFormProperty() API
378
- let nodeFront = container . node ;
379
- if ( ! nodeFront . getFormProperty ) {
380
- this . _inspector . emit ( "container-created" , container ) ;
381
- }
382
-
383
- return container ;
384
- }
385
356
// Exports from this module
386
357
exports . InspectorOverlay = InspectorOverlay ;
0 commit comments