Closed Bug 1686720 Opened 5 years ago Closed 5 years ago

ensure :screenshot works on page with remote frames when fission is enabled

Categories

(DevTools :: Console, task, P2)

task

Tracking

(Fission Milestone:M7, firefox87 fixed)

RESOLVED FIXED
87 Branch
Fission Milestone M7
Tracking Status
firefox87 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

Details

(Whiteboard: dt-fission-m3-mvp)

Attachments

(2 files)

Bug 1678483 will fix the capture-screenshot function on the server, which is used my multiple consumers, including the :screenshot command.

This test should be about adding a test to check that calling :screenshot on a page with a remote frame works as expected.

The test might also include testing :screenshot in combination with the evaluation context selector.

NOTE: We can use/take inspiration from helper_screenshot_node.js to assert the actual result of the screenshot.

No longer blocks: 1474006
Type: defect → task
Priority: -- → P2

Tracking dt-fission-m3-mvp bugs for Fission M7 (blocking Beta experiment).

Fission Milestone: --- → M7

Note that if we move the screenshot actor to the parent process, we'll need an intermediate step for screenshot --selector, in order to retrieve the contentDomReference of the matching node before calling the screenshot actor.

this may be a good opportunity to add a test case for Bug 961832, which didn't have any test

I'm going to do this before Bug 1678483. The test will probably have a fail-if=fission , which will be removed in Bug 1678483

Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
No longer depends on: 1678483

This patch modified the existing test for :screenshot ${filename} to actually
check some pixels of the resulting file.
The test document is modified to include 2 iframes, one remote and the other one
on the same origin, with different background colors so we can check in the test
that the content of the iframes are rendered in the screenshot.

We add a fail-if=fission annotation to the test since our screenshot support
does not support rendering remote iframe when fission is enabled. This should
be fixed with the work on Bug 1678483, and the fail-if would highlight that.

Depends on D102595

This adds a test for the :screenshot command with the --selector argument.
We're also checking that using the command while selecting another target
in the context selector works as expected.
The test is skipped on non-fission since the context selector isn't enabled
when fission is disabled.

Depends on D102596

Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0599761d5f1e [devtools] Check :screenshot behaviour on pages with remote frames. r=jdescottes. https://hg.mozilla.org/integration/autoland/rev/954440d77ac4 [devtools] Add a test for :screenshot --selector . r=jdescottes.
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: