iFrame access check should support local resources

XMLWordPrintable

      NOTE: This suggestion is for JIRA Cloud. Using JIRA Server? See the corresponding suggestion.

      In util.js we have a line which says:

      AJS.canAccessIframe = function (iframe) {     
      var $iframe = AJS.$(iframe);      
      
      return !/^(http|https):\/\//.test($iframe.attr("src")) ||             (AJS.params.baseURL & (AJS.$.trim($iframe.attr("src")).indexOf(AJS.params.baseURL) === 0)); 
      };

      This does not allow for iFrames provided by browser plugins which provide addresses such as:

      chrome-extension://adkasgdlaksdgaskjdhaskd

      We should extend this function to support various "protocols" which are valid local file locations across browsers.

      Right now we throw an error which looks like:

            Assignee:
            Unassigned
            Reporter:
            Boris Berenberg (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: