~ps-jenkins/unity-chromium-extension/trusty-proposed

« back to all changes in this revision

Viewing changes to chromium-extension/extension-tools.js

  • Committer: Tarmac
  • Author(s): Alexandre Abreu
  • Date: 2013-07-11 18:50:30 UTC
  • mfrom: (224.1.2 fix-chromium-28-support)
  • Revision ID: tarmac-20130711185030-rgajj7lnqnjgblt8
Fix issue w/ installation (when message is being sent to background page from infobar, the sender.tab object is not set); updated some apis to newer versions. Fixes: https://bugs.launchpad.net/bugs/1196943.

Approved by Víctor R. Ruiz, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
                return content;
56
56
            };
57
57
            
58
 
            var content = getResourceContent (chrome.extension.getURL (resource.slice (idx+1)));
 
58
            var content = getResourceContent (chrome.runtime.getURL (resource.slice (idx+1)));
59
59
            
60
60
            if (   null != content
61
61
                   && typeof (content) === 'string'