Should Blink allow to display images in file:// from clipboard?
Reported by
srinathr...@gmail.com,
Aug 4 2016
|
|||
Issue description
UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.106 Safari/537.36
Example URL:
Steps to reproduce the problem:
I have small iframe code as below.
<html>
<head>
<title>Paste test&</title>
<script>
function onbodyload() {
var iframe = document.getElementById("frm").contentWindow;
var doc = iframe.document;
doc.body.contentEditable = true;
}
</script>
</head>
<body onLoad="onbodyload()">
Test
<p>
<iframe id="frm" width="800" height="600" contentEditable="true"></iframe>
</body>
1)Save the above html code in test.html and open it in FireFox browser.
2)Deploy test.html in weblogic server and run the test.html.
3)Page opens the url something as "http://localhost:7101/test.html"
4)Open outlook email which has the image+text. Copy the image+text and paste it in the test.html.
What is the expected behavior?
Browser should display the text+images when i run the test.html using weblogic server.
Browser is able to work fine when i open the test.html using
file:///C:/test.html
but not working with http://localhost:7101/test.html.
What went wrong?
Actual results:
It displays the text but image is broken/not displayed.
I inspected the broken image and see that it is pointing to users tmp folder and in console there is an error.
Not allowed to load local resource: file:///C:\Users\XXXXXX\AppData\Local\Temp\msohtmlclip1\07\clip_image001.jpg
<img src="file:///C:\Users\XXXXXX\AppData\Local\Temp\msohtmlclip1\07\clip_image001.jpg" alt="Penguins.jpg" height="90" width="179">
However if i don't deploy the test.html and simply open in the browser, and test it works.
Does it occur on multiple sites: No
Is it a problem with a plugin? No
Did this work before? N/A
Does this work in other browsers? No FF FF 48.0
Chrome version: 51.0.2704.106 Channel: n/a
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version: Shockwave Flash 22.0 r0
,
Aug 8 2016
,
Aug 10 2016
This is WAI; we don't want to allow non-file pages to load resources from file:// origins.
,
Aug 11 2016
Is there any way to allow by changing any configuration settings or any work around? |
|||
►
Sign in to add a comment |
|||
Comment 1 by rnimmagadda@chromium.org
, Aug 5 2016