MyFaces Core
  1. MyFaces Core
  2. MYFACES-3320

jsf.js: Ajax problem with Webkit based browsers on MacOS

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.1.4-SNAPSHOT
    • Fix Version/s: 2.0.10, 2.1.4
    • Component/s: JSR-314
    • Labels:
      None
    • Environment:
      Safari 5.1 and Chrome 14.0.835.186 on MacOS 10.7.1

      Description

      In 2.1.4-SNAPSHOT there seems to be a serious problem with Ajax on Webkit based browsers. I have a table that is updated via a ajax call that adds a row to this table. In Safari and Chrome (MacOS) this works only once (then no further requests are issued).

      This problem does not occur with Firefox. Neither do I have troubles like this with version 2.1.3 on any browser.

        Activity

        Leonardo Uribe made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Leonardo Uribe made changes -
        Fix Version/s 2.1.4 [ 12317868 ]
        Fix Version/s 2.0.10 [ 12317870 ]
        Werner Punz made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Werner Punz added a comment -

        there is a bug in webkit regarding xhr level2, I now have turned off the xhr optimisations and am on pure xhr level1

        Show
        Werner Punz added a comment - there is a bug in webkit regarding xhr level2, I now have turned off the xhr optimisations and am on pure xhr level1
        Hide
        Werner Punz added a comment -

        Ok after dropping the testcase in my fixed code, the example now works, it was indeed the chrome xhr level2 problem. I will push the code for now to xhr level1 until the browsers have gotten their act together regarding the w3c specs.

        Show
        Werner Punz added a comment - Ok after dropping the testcase in my fixed code, the example now works, it was indeed the chrome xhr level2 problem. I will push the code for now to xhr level1 until the browsers have gotten their act together regarding the w3c specs.
        Hide
        Werner Punz added a comment - - edited

        This seems to be causes by our introduction of xhr level2 wherever accessible, to get better performance. Webkit seems to not implement the w3c spec entirely correctly and does not call the onloadend event handler. There is a bug entry regarding this filed in 2010. I will disable xhr level2 entirely for now until I have debugged this out properly. Xhr level1 seems to work.

        Show
        Werner Punz added a comment - - edited This seems to be causes by our introduction of xhr level2 wherever accessible, to get better performance. Webkit seems to not implement the w3c spec entirely correctly and does not call the onloadend event handler. There is a bug entry regarding this filed in 2010. I will disable xhr level2 entirely for now until I have debugged this out properly. Xhr level1 seems to work.
        Werner Punz made changes -
        Summary Ajax problem with Webkit based browsers on MacOS jsf.js: Ajax problem with Webkit based browsers on MacOS
        Werner Punz made changes -
        Assignee Werner Punz [ werpu ]
        Hide
        Werner Punz added a comment -

        Hi there was a major refactoring of the ajax core recently, post 2.1.3, I probably have introduced a slight error somewhere. I will investigate the issue next week, when I have a few days for oss.
        Thanks for reporting the bug. I did intensive testing before issuing the refactored code, but it seems that I have opened a new error nevertheless.

        Show
        Werner Punz added a comment - Hi there was a major refactoring of the ajax core recently, post 2.1.3, I probably have introduced a slight error somewhere. I will investigate the issue next week, when I have a few days for oss. Thanks for reporting the bug. I did intensive testing before issuing the refactored code, but it seems that I have opened a new error nevertheless.
        Michael Kurz made changes -
        Field Original Value New Value
        Attachment MYFACES-3320-testapp.zip [ 12496241 ]
        Hide
        Michael Kurz added a comment -

        Provided test web application.

        Show
        Michael Kurz added a comment - Provided test web application.
        Michael Kurz created issue -

          People

          • Assignee:
            Werner Punz
            Reporter:
            Michael Kurz
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development