Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-7876

whitelist tests in IAB don't work properly probably outside of U.S.

    XMLWordPrintableJSON

Details

    Description

      In InAppBrowser test, there are tests to load http://www.google.com which is listed in whitelist. I saw this page wasn't loaded on CordovaWebView with popup message saying that "Unexpected: got multiple loadstart events"..

      I think the reason is I'm working in Australia and google usually redirects the request to sender's country which could invoke multiple loadstart events. Adding that, Google Australia has domain google.co.au which are actually not hitting the whitelisted URL google.com and the test eventually fails to open the redirected URL.

      I don't mind the multiple loadstart error so much but I wish the whitelisted URL should be considered to be used by developers over the world.

      config.xml
          <access origin="http://www.google.co*" />
          <access origin="https://www.google.co*" />
      

      Note that at least United Kingdom and Japan have domain formats looking like *.co.uk or *.co.jp.

      Attachments

        Activity

          People

            cmarcelk Marcel Kinard
            shingot Shingo Toda
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: