[Webkit-unassigned] [Bug 28123] New: WebKit could not copy the form with this parameter in the iframe

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Aug 9 05:11:21 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=28123

           Summary: WebKit could not copy the form with this parameter in
                    the iframe
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Windows Server 2003
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P1
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: mikhail.v.gavrilov at gmail.com


The code below In browsers based on WebKit, could not clone form (formObj) with
param's. In the form on the site if selected file. Then I copy the form with
this parameter in the iframe, and then I do have a request, for download the
file in the background. But this don't work in WebKit (Safari and Google Crome)

function createIFrame() {
  var id = 'f' + Math.floor(Math.random() * 99999);
  var div = document.createElement('div');
  div.innerHTML = '<iframe  src="about:blank" id="'+id+'" name="'+id+'"
onload="sendComplete(this)"></iframe>';
  document.body.appendChild(div);
  return document.getElementById(id);
}

function AJAXRequest2 (formObj) (
     var iframe = createIFrame ();
     var idocument = window.frames [iframe.id]. document;
     var iform = idocument.importNode (formObj, true);
     var ibody = idocument.getElementsByTagName ( "body") [0];
     ibody.appendChild (iform);
     idocument.getElementById ( 'ttt'). click ();
)

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list