Closed Bug 1146625 Opened 11 years ago Closed 10 years ago

[e10s] browser_markupview_copy_image_data.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_copy_image_data.js: add_task(function*() { yield addTab("data:text/html,markup view copy image as data-uri"); createDocument(); let doc = content.document; <- Causes CPOW warning let {inspector} = yield openInspector(); yield selectNode("div", inspector); yield assertCopyImageDataNotAvailable(inspector); yield selectNode("img", inspector); yield assertCopyImageDataAvailable(inspector); yield triggerCopyImageUrlAndWaitForClipboard(doc.querySelector("img").src, inspector); <- Causes CPOW warning yield selectNode("canvas", inspector); yield assertCopyImageDataAvailable(inspector); let canvas = doc.querySelector(".canvas"); <- Causes CPOW warning yield triggerCopyImageUrlAndWaitForClipboard(canvas.toDataURL(), inspector); <- Causes CPOW warning // Check again that the menu isn't available on the DIV (to make sure our // menu updating mechanism works) yield selectNode("div", inspector); yield assertCopyImageDataNotAvailable(inspector); }); function createDocument() { let doc = content.document; <- Causes CPOW warning doc.body.innerHTML = PAGE_CONTENT; <- Causes CPOW warning let context = doc.querySelector(".canvas").getContext("2d"); <- Causes CPOW warning context.beginPath(); <- Causes CPOW warning context.moveTo(300, 0); <- Causes CPOW warning context.lineTo(600, 600); <- Causes CPOW warning context.lineTo(0, 600); <- Causes CPOW warning context.closePath(); <- Causes CPOW warning context.fillStyle = "#ffc821"; <- Causes CPOW warning context.fill(); <- 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: 10 years ago
Resolution: --- → DUPLICATE
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.