sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    [Bug] Images not showing up in Web Dialog under Safari 5

    Scheduled Pinned Locked Moved Plugins
    2 Posts 2 Posters 308 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • fredo6F Offline
      fredo6
      last edited by

      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:

      1. Safari refuses to load the image file for security reasons ("you are not allowed to load local resources")
      2. The problem occurs whether files are specified as [file://](file://)<full local path> or just <full local path>
      3. 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.
      4. The problem is not specific to images but to any local file (such as a .css or .js)
      5. 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

      1 Reply Last reply Reply Quote 0
      • D Offline
        driven
        last edited by

        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

        learn from the mistakes of others, you may not live long enough to make them all yourself...

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Buy SketchPlus
        Buy SUbD
        Buy WrapR
        Buy eBook
        Buy Modelur
        Buy Vertex Tools
        Buy SketchCuisine
        Buy FormFonts

        Advertisement