Open Bug 1676506 Opened 4 years ago Updated 5 months ago

Blob url created from the page should work as target of an <a download> in xorig

Categories

(Core :: DOM: Navigation, defect, P3)

defect

Tracking

()

People

(Reporter: mak, Unassigned, NeedInfo)

References

Details

In bug 1672238 we hit this case, when a mochitest-plain was trying to download a blob created on the page itself, when running in xorig mode.

(In reply to Kris Maglione [:kmag] from Bug 1672238 comment #11)

The problem here is that when running in xorigin mode, the parent frame and the blob URI have different agent cluster IDs. And, since the load is happening in the frame, we compare the agent cluster ID of the parent frame to the one of the blob here and bail out.

I think that, for the purpose of this test, that doesn't matter, so the change is fine. But it also seems wrong. I'd expect an <a download> with a blob created by the page itself to work, regardless of the agent cluster of the parent frame.

Depends on: 1672238
Severity: -- → S3
Flags: needinfo?(amarchesini)
Priority: -- → P3
Flags: needinfo?(amarchesini)

smaug, is this against the spec? Who works on Blobs in these days?

Flags: needinfo?(smaug)

It looks like we never updated the DOM: File MOTS entry consistent with the May 20th, 2024 governance mail https://groups.google.com/a/mozilla.org/g/governance/c/_3nLtrM-nUc (and the preceding discussion); I'm notionally the owner now and active in the space and I'll run this to ground.

Flags: needinfo?(smaug) → needinfo?(bugmail)
You need to log in before you can comment on or make changes to this bug.