jdic
  1. jdic
  2. JDIC-254

WebBrowser doesn't pass cookies to popup - session lost

    Details

    • Type: Bug Bug
    • Status: Reopened
    • Priority: Blocker Blocker
    • Resolution: Unresolved
    • Affects Version/s: 0.9
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Operating System: Windows XP
      Platform: All

    • Issuezilla Id:
      254

      Description

      When using the WebBrowser api against a web application and the IE Browser
      spawns a child popup window via javascript or some other means, the new child
      browser window doesn't have a session. And in our web application this causes
      the child window to go to a login screen – this issue is stopping us from
      using the WebBrowser api.

      This issue orginated by yangui:
      http://www.javadesktop.org/forums/thread.jspa?messageID=71054&#71054

        Activity

        Hide
        georgez added a comment -

        Based on Stu Pond's fix, I created and attached a patch file (issue254_patch.diff).
        The fix introduces one new class CBrowserFrameWindow to create and manage a
        popup child window, which will reuse the session id of its parent windows.

        Thanks, Pond !

        Show
        georgez added a comment - Based on Stu Pond's fix, I created and attached a patch file (issue254_patch.diff). The fix introduces one new class CBrowserFrameWindow to create and manage a popup child window, which will reuse the session id of its parent windows. Thanks, Pond !
        Hide
        georgez added a comment -

        Created an attachment (id=188)
        Pass parent window session ID to popup window.

        Show
        georgez added a comment - Created an attachment (id=188) Pass parent window session ID to popup window.
        Hide
        armin_chen added a comment -

        To solve this problem, we have to handle below event for IE:
        DWebBrowserEvents2::NewWindow2 Event

        There is some similar event for Mozilla.

        Show
        armin_chen added a comment - To solve this problem, we have to handle below event for IE: DWebBrowserEvents2::NewWindow2 Event There is some similar event for Mozilla.
        Hide
        michael_shan added a comment -

        Assign to Michael

        Show
        michael_shan added a comment - Assign to Michael
        Hide
        michael_shan added a comment -
        Show
        michael_shan added a comment - Another post related with this issue. http://www.javadesktop.org/forums/post!reply.jspa?messageID=68313
        Hide
        michael_shan added a comment -
        Show
        michael_shan added a comment - Another post related with this issue. http://www.javadesktop.org/forums/post!reply.jspa?messageID=68313
        Hide
        michael_shan added a comment -

        Has been fixed in build20060613.

        Show
        michael_shan added a comment - Has been fixed in build20060613.
        Hide
        michael_shan added a comment -

        Post http://forums.java.net/jive/thread.jspa?messageID=131355&#131355.
        We are struggling with the "window.open loses cookie knowledge of opener" issue.
        The recently released June build now opens new windows with the correct cookie
        info, but they are:

        1) Wrapped in a Java frame
        2) Have 0,0 size.

        Is there a way to call a "window.open" event in a WebBrowser object, and have
        the new opening window be a valid IE frame in its own right, but with the cookie
        knowledge of the Webbrowser frame?

        Good work on this guys!

        Show
        michael_shan added a comment - Post http://forums.java.net/jive/thread.jspa?messageID=131355&#131355 . We are struggling with the "window.open loses cookie knowledge of opener" issue. The recently released June build now opens new windows with the correct cookie info, but they are: 1) Wrapped in a Java frame 2) Have 0,0 size. Is there a way to call a "window.open" event in a WebBrowser object, and have the new opening window be a valid IE frame in its own right, but with the cookie knowledge of the Webbrowser frame? Good work on this guys!

          People

          • Assignee:
            michael_shan
            Reporter:
            btknorr
          • Votes:
            7 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: