[Bug] Images not showing up in Web Dialog under Safari 5
-
I open this thread to gather the progress on a major problem which seems to happen with Web Dialogs with Safari 5.1.
In short, images loaded from local files in HTML (<img src = xxx...) do not show up with Web dialogs.
I hope the Google SU team is listening because this seems to be a bug related to the way Web Dialogs are handled on Mac (indeed, once we understand what happens, script writers can propose some workarounds until this is fixed in a SU release)
So far it has been determined that:
- Safari refuses to load the image file for security reasons ("you are not allowed to load local resources")
- The problem occurs whether files are specified as [file://](file://)<full local path> or just <full local path>
- It seems that the problem only occurs when web dialog box is provided the HTML via wdlg.
set_html
, whereas this works fine when the web dialog is configured with wdlg.set_file
. - The problem is not specific to images but to any local file (such as a .css or .js)
- It works fine (with file://) on previous versions of Safari
There are 2 threads where the issues are discussed:
- http://forums.sketchucation.com/viewtopic.php?f=323&t=22920&start=375#p351901
- http://forums.sketchucation.com/viewtopic.php?f=180&p=306204#p306122
Fredo
-
some research info,
type of file, and method of setting appears to be less critical then the headers that the request comes from.
Because
.set_html
produces an about:blank.html it is headless, which on > Saf5.0.6 appears to restrict local file access..set_file
and.set_url
have less issues.there also appears to have been changes to SU's NSURL settings and recent server-side header changes that affects even v7 with Saf 5.0.3 in some load cases.
but debugging is muddied by the combination of changes. (see attached)some testing
SU's own WebDialogs all appear to be functioning, although the Lion/3D WareHouse login issue may be caused by the same thing.
Knowing what people use Web Dialogs for, I would like the 'SU Team' to give some clear guidance on how all the variables can be made to work together.
an example question I would have, can a client side 'whitelist' (local and external) be set for a WebDialog?
john
Advertisement