Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-4694

ClientInfo trigger an infinite fireSized loop with tabbox

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 9.5.0
    • Fix Version/s: 9.5.1
    • Component/s: Components
    • Security Level: Jimmy

      Description

      Steps to Reproduce

      https://zkfiddle.org/sample/25s2fmq/1-Another-new-ZK-fiddle

      Run fiddle

      Click button

      Current Result

      Ui is stuck in infinite fireSized loop

      Expected Result

      ClientInfo event is resolved and output to log

      Debug Information

      Most likely Introduced by  https://tracker.zkoss.org/browse/ZK-4601

      (not confirmed which part, but starts to fails on this freshly. Also bug doesn't seem to happen without tabpanel)

      Require the tabpanel to add a new include in defer mode.

      New include in defer mode must request clientInfo

       

      https://github.com/zkoss/zk/blob/363fade7ce1f4de9189a8f2ca0a08da6dfeeeecb/zk/src/archive/web/js/zk/utl.js#L640-L645

      This block will loop waiting for zk.clientinfo to become not true by calling itself with a 20ms delay.

      For some reason, zk.clientinfo never becomes not true after this commit, causing the loop to never exit

      Workaround

      disable client ROD on tabbox

      <tabbox>
          <custom-attributes org.zkoss.zul.client.rod="false"/>
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rudyhuang rudyhuang
              Reporter:
              MDuchemin MDuchemin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 4 hours
                  4h
                  Remaining:
                  Remaining Estimate - 4 hours
                  4h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified