New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 733351 link

Starred by 3 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Android , Windows , Chrome , Mac
Pri: 3
Type: Bug



Sign in to add a comment

`blob:` URL's origin doesn't deal well with `document.domain`.

Project Member Reported by mkwst@chromium.org, Jun 14 2017

Issue description

http://web.mit.edu/bzbarsky/www/testcases/security/blob-iframe-document-domain.html has code like the following:

```
<!DOCTYPE html>
<iframe></iframe>
<script>
window.onload = function() {
  var b = new Blob(["something"], { type: "text/html" });
  document.domain = "domain.test";
  var u = URL.createObjectURL(b);
  var i = document.querySelector("iframe");
  i.onload = function() {
    try {
      alert(i.contentDocument.body);
    } catch (e) { alert(e); }
  }
  i.src = u;
}
</script>
```

The blob loaded into the frame ought to be same origin-domain with the page from which it was created. It's not. We should fix that.
 

Comment 1 by est...@chromium.org, Nov 10 2017

Labels: Hotlist-EnamelAndFriendsFixIt

Comment 2 by est...@chromium.org, Feb 18 2018

Labels: -Hotlist-EnamelAndFriendsFixIt

Sign in to add a comment