Bug 1550030 - Part 1: Implement the DOM mutation breakpoint context menu items in the markup view. r=loganfsmyth,jdescottes
authorGabriel Luong <gabriel.luong@gmail.com>
Wed, 26 Jun 2019 15:16:22 -0400
changeset 11669 90c36dbe18494d25715a3d38010680e855b4b8d6
parent 11664 f225de37b09bf713579e8799e12d1cdedc41a164
child 11670 c27d1b381b24dc3946c4d83ac685a14b0bd11699
push id150
push userflodolo@mozilla.com
push dateMon, 01 Jul 2019 11:43:59 +0000
reviewersloganfsmyth, jdescottes
bugs1550030
Bug 1550030 - Part 1: Implement the DOM mutation breakpoint context menu items in the markup view. r=loganfsmyth,jdescottes This implements the context menu items for the DOM mutation breakpoint. In addition, there were some server changes to: - Update the mutationBreakpoints form for the NodeActor - Expose the mutationBreakpoints form - Moved the setMutationBreakpoints method from the Node spec to Walker spec since the Node spec only consisted of getter methods. It made more sense that the setter went into the Walker spec to be more consistent with how the Walker and Node spec have been arranged. Unit tests will be followed up in Part 2 immediately. Differential Revision: https://phabricator.services.mozilla.com/D36074 X-Channel-Repo: mozilla-central X-Channel-Converted-Revision: 1fb51bb3f412c4d68c9f8c40b19657d37908e75e X-Channel-Repo: releases/mozilla-beta X-Channel-Revision: 22cfa63e856377c0b7f502d194d4b17dc0c3acc9 X-Channel-Repo: releases/mozilla-release X-Channel-Revision: df853c362664989e025d1206b59c37c435186a91
devtools/client/inspector.properties
--- a/devtools/client/inspector.properties
+++ b/devtools/client/inspector.properties
@@ -289,16 +289,35 @@ inspectorAttributesSubmenu.accesskey=A
 # to current node
 inspectorAddAttribute.label=Add Attribute
 inspectorAddAttribute.accesskey=A
 
 # LOCALIZATION NOTE (inspectorPseudoClassSubmenu.label): This is the label
 # shown in the inspector contextual-menu for the sub-menu of the pseudo-classes.
 inspectorPseudoClassSubmenu.label=Change Pseudo-class
 
+# LOCALIZATION NOTE (inspectorBreakpointSubmenu.label): This is the label
+# shown in the inspector contextual-menu for the sub-menu of the DOM breakpoints.
+inspectorBreakpointSubmenu.label=Break on…
+
+# LOCALIZATION NOTE (inspectorSubtreeModification.label): This is the label shown
+# in the inspector contextual-menu for the item that lets users add a DOM breakpoint
+# for subtree modification.
+inspectorSubtreeModification.label=Subtree Modification
+
+# LOCALIZATION NOTE (inspectorAttributeModification.label): This is the label shown
+# in the inspector contextual-menu for the item that lets users add a DOM breakpoint
+# for attribute modification.
+inspectorAttributeModification.label=Attribute Modification
+
+# LOCALIZATION NOTE (inspectorNodeRemoval.label): This is the label shown
+# in the inspector contextual-menu for the item that lets users add a DOM breakpoint
+# for node removal.
+inspectorNodeRemoval.label=Node Removal
+
 # LOCALIZATION NOTE (inspectorSearchHTML.label3): This is the label that is
 # shown as the placeholder for the markup view search in the inspector.
 inspectorSearchHTML.label3=Search HTML
 
 # LOCALIZATION NOTE (inspectorImageDataUri.label): This is the label
 # shown in the inspector contextual-menu for the item that lets users copy
 # the URL embedding the image data encoded in Base 64 (what we name
 # here Image Data URL). For more information: