ericmckean / naclports

Automatically exported from code.google.com/p/naclports
0 stars 0 forks source link

ports with .tar files should load relative to the nmf file. #121

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Load a web page that references a naclport from a foreign origin...

  <object
    src='http://gsdview.appspot.com/nativeclient-mirror/naclports/pepper_36/1260/publish/nano/pnacl/nano/nano.nmf'
    type='application/x-pnacl'></object>

In the JS Console, you'll see that the nano.tar file failed to load:

  HEAD <web-page-origin>/nano.tar net::ERR_FILE_NOT_FOUND 

Nano should load resources relative to the origin of nano.nmf, rather than of 
the containing page.

Original issue reported on code.google.com by rginda@chromium.org on 7 May 2014 at 7:56