Details

      Description

      Android has supported relative path for window URL since 1.8. Due to PR#3057, it is not supported any more on 3_0_X and master. PR#3057 was trying to fix a regression (TIMOB-10783) which was caused by PR#2027.
      Steps to reproduce:
      Run the attached project.
      Actual result:
      An error shows in the console:

      E/TiAssetHelper(14013): Error while reading asset "Resources/dir/relative2.js":
      E/TiAssetHelper(14013): java.io.FileNotFoundException: Resources/dir/relative2.js
      

      Expected result:
      A blue window opens first, then a red window opens, and finally both windows close. The log shows in the console:

      I/TiAPI   ( 8074):  ************************* relative2.js: win closed
      I/TiAPI   ( 8074):  ************************* relative.js: win closed
      I/TiAPI   ( 8074):  ************************* app.js: win closed
      

      PS: This regression causes the failure of several Anvil tests: ui/ui->absoluteAndRelativeWinURLs, includes/includes->includeFromUrlWindow and includes/includes->secondContextRequire.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pwang Ping Wang
                Reporter:
                pwang Ping Wang
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code