Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: background.js

Issue 5099207639695360: Made browser actions per tab on Safari (Closed)
Patch Set: Rebased, addressed comment and enabled to set global browser actions Created Jan. 15, 2014, 7:19 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/ext/background.js » ('j') | chrome/ext/background.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: background.js
===================================================================
--- a/background.js
+++ b/background.js
@@ -117,8 +117,6 @@
}
tab.browserAction.setIcon(iconFilename);
- tab.browserAction.setTitle(ext.i18n.getMessage("name"));
-
iconAnimation.registerTab(tab, iconFilename);
// Set context menu status according to whether current tab has whitelisted domain
@@ -411,6 +409,9 @@
}
});
+// Set icon title/tooltip globally
+ext.browserAction.setTitle(ext.i18n.getMessage("name"));
Wladimir Palant 2014/01/16 09:10:05 If you take this route then there should also be a
Sebastian Noack 2014/01/16 12:45:02 I think it is fine as it is. the default icon is a
Wladimir Palant 2014/01/16 12:55:18 The difference however is: Chrome will reset the i
Sebastian Noack 2014/01/16 14:01:52 Yes, but we backup the default (which comes from I
Wladimir Palant 2014/01/17 07:54:36 Ok, I see - setting the image explicitly is indeed
+
// Show icon as browser action for all tabs that already exist
ext.windows.getAll(function(windows)
{
« no previous file with comments | « no previous file | chrome/ext/background.js » ('j') | chrome/ext/background.js » ('J')

Powered by Google App Engine
This is Rietveld