Closed Bug 1682028 Opened 4 years ago Closed 4 years ago

Switch PageThumbUtils.jsm createSnapshotThumbnail from drawWindow to drawSnapshot for Fission

Categories

(Firefox :: New Tab Page, task, P3)

task

Tracking

()

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

People

(Reporter: smacleod, Assigned: thecount)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

CanvasRenderingContext2D.drawWindow() is synchronous and won't work with fission, so PageThumbUtils.jsm[1] must be updated to use the asynchronous drawSnapshot[2]

  1. https://searchfox.org/mozilla-central/rev/0bcf81557b89e7757c44e25bb4bc7f4cb8619dc9/toolkit/components/thumbnails/PageThumbUtils.jsm#271
  2. https://searchfox.org/mozilla-central/rev/9b282b34b5/dom/chrome-webidl/WindowGlobalActors.webidl#81-98

Tracking for Fission Beta milestone (M7).

Fission Milestone: --- → M7
Priority: -- → P3
Flags: needinfo?(sdowne)
Assignee: nobody → sdowne
Flags: needinfo?(sdowne)

I found the best way to test this is with bookmarks.

  1. Open about:config
  2. Click the bookmark button.

Expected: Should see a thumbnail in the bookmark edit menu, and it should make the same thumbnail that you see on nightly.

Pushed by sdowne@getpocket.com: https://hg.mozilla.org/integration/autoland/rev/7ee85cbc538d Switch PageThumbUtils.jsm createSnapshotThumbnail from drawWindow to drawSnapshot r=smacleod
Status: NEW → RESOLVED
Closed: 4 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: