Closed Bug 1146650 Opened 9 years ago Closed 8 years ago

[e10s] browser_markupview_html_edit_01.js causes unsafe CPOW usage warnings

Categories

(DevTools :: Inspector, defect)

defect
Not set
normal

Tracking

(e10s+)

RESOLVED DUPLICATE of bug 1252099
Tracking Status
e10s + ---

People

(Reporter: Kwan, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [unsafe-cpow-usage])

Mined from test logs

In browser/devtools/markupview/test/browser_markupview_html_edit_01.js:

  {
    selector: "#one",
    oldHTML: '<div id="one">First <em>Div</em></div>',
    newHTML: '<div id="one">First Div</div>',
    validate: function*(pageNode, pageNodeFront, selectedNodeFront) {
      is(pageNode.textContent, "First Div", "New div has expected text content"); <- Causes CPOW warning
      ok(!getNode("#one em"), "No em remaining")
    }
  },
[...]
  {
    selector: "#addedAttribute",
    oldHTML: '<div id="addedAttribute">addedAttribute</div>',
    newHTML: '<div id="addedAttribute" class="important" disabled checked>addedAttribute</div>',
    validate: function*(pageNode, pageNodeFront, selectedNodeFront) {
      is(pageNodeFront, selectedNodeFront, "Original element is selected");
      is(pageNode.outerHTML, '<div id="addedAttribute" class="important" disabled="" checked="">addedAttribute</div>', <- Causes CPOW warning
            "Attributes have been added");
    }
  },
[...]
  {
    selector: "#siblings",
    oldHTML: '<div id="siblings">siblings</div>',
    newHTML: '<div id="siblings-before-sibling">before sibling</div>' +
             '<div id="siblings">siblings (updated)</div>' +
             '<div id="siblings-after-sibling">after sibling</div>',
    validate: function*(pageNode, pageNodeFront, selectedNodeFront, inspector) {
      let beforeSibling = getNode("#siblings-before-sibling");
      let beforeSiblingFront = yield getNodeFront("#siblings-before-sibling", inspector);
      let afterSibling = getNode("#siblings-after-sibling");

      is(beforeSiblingFront, selectedNodeFront, "Sibling has been selected");
      is(pageNode.textContent, "siblings (updated)", "New div has expected text content"); <- Causes CPOW warning
      is(beforeSibling.textContent, "before sibling", "Sibling has been inserted"); <- Causes CPOW warning
      is(afterSibling.textContent, "after sibling", "Sibling has been inserted"); <- Causes CPOW warning
    }
  }
tracking-e10s: m8+ → ---
Whiteboard: [unsafe-cpow-usage]
This is test only.
tracking-e10s: --- → +
Inspector bug triage. Filter on CLIMBING SHOES

Fixed by Bug 1252099.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.