Closed Bug 1628608 Opened 4 years ago Closed 4 years ago

Pasting blob URL link in new tab does not show blob content

Categories

(Core :: DOM: File, defect, P1)

defect

Tracking

()

VERIFIED FIXED
mozilla77
Tracking Status
firefox77 --- verified

People

(Reporter: ssengupta, Assigned: ssengupta)

Details

Attachments

(3 files)

STR:

  1. open https://developer.mozilla.org/en-US/docs/Web/API/Blob#Result
  2. right click the "open the array URL" and click "copy link location"
  3. open a new tab, right click on the address bar, and choose "paste and go"

Expected:
content is visible

Actual:
no content shows up

This is a followup of Bug 1626573

Priority: -- → P1

Able to reporduce at Firefox 75 and Nightly 77 https://bugzilla.mozilla.org/show_bug.cgi?id=1626573#c13.

One "workaround":

  1. Copy the Blob URL at <a> element at STR
  2. Navigate to https://mdn.mozillademos.org
  3. Open console and run window.open("blob:https://mdn.mozillademos.org/0326019d-c9b5-4483-b8c2-468c9df4f866") or the current Blob URL

Even pasting the Blob URL at the same domain and origin displays the content, without using window.open(). Cross-origin navigation to a Blob URL appears to be disabled?

Two cases have been tested:

  1. Loading a blob URL, which points to a blob of type text
  2. Loading a blob URL, which points to a blob of type html, which fetches another blob URL

Depends on D71889

Pushed by cbrindusan@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/063e34ebf119
P1 - DocumentLoadListener transmits blob data for triggering principal before cross-process redirect if URI is a blob URL r=baku,necko-reviewers,dragana
https://hg.mozilla.org/integration/autoland/rev/19fdc0973d58
P2 - Browser Mochitests added to test if loading a blob URL in a new foreground tab works r=baku
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla77
Flags: qe-verify+

Reproduced the initial issue in release version 76 using Windows 10.
Verified - Fixed in Beta 77.0b7 (build id: 20200515125749) and latest Nightly build 78.0a1 (build id: 20200518214824) on Windows 10 and Ubuntu 18.04.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: