Open Bug 1647486 Opened 4 years ago Updated 4 years ago

Remove Blob URL screenshot support from Activity Stream code

Categories

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

task

Tracking

()

People

(Reporter: mconley, Unassigned)

References

Details

Blobs and Blob URLs were originally used for screenshots to avoid sending huge data URLs over IPC. Now that moz-page-thumb support exists in the privileged about content process, we've been using that, and the old Blob and Blob URL support is probably not needed anymore.

This bug is for removing that stuff, which would probably simplify a few things.

Okay, I've dug into this more, and I don't actually think the Blob URL stuff is what's causing the flash. It would probably be good to get rid of the Blob URL support at some point to reduce complexity, anyhow.

Assignee: mconley → nobody
No longer blocks: 1614351
Flags: needinfo?(edilee)

Bug 1436615 added blobs for and bug 1467485 handled blob state changes and those all should be removable with bug 1184701 assuming privileged content process. Yeah a lot of this screenshot stuff could be simplified when browser.tabs.remote.separatePrivilegedContentProcess goes away / is always true.

Depends on: 1436615, 1184701
See Also: → 1467485

Hi, Hector from Beijing office here.

In case you're not aware, we're shipping a web hosted fork of activity-stream with a privileged signed extension as the newtab experience in Fx China repack.

We're actually flipping the browser.tabs.remote.separatePrivilegedContentProcess pref to keep the screenshots working in our fork. I guess I'm not always using the code as originally intended, but would you please give me some advice on how best to mitigate this removal, other than moving all those logic into our extension?

Thanks!

Priority: -- → P1
Priority: P1 → P3

(In reply to Hector Zhao [:hectorz] from comment #4)

We're actually flipping the browser.tabs.remote.separatePrivilegedContentProcess pref [3] to keep the screenshots working in our fork. I guess I'm not always using the code as originally intended, but would you please give me some advice on how best to mitigate this removal, other than moving all those logic into our extension?

With bug 1513680 landed in Fx 86, we can no longer flip the pref. I'm working on a fix/workaround in our extension.

You need to log in before you can comment on or make changes to this bug.