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

Unified Diff: safari/ext/background.js

Issue 6332121983483904: Issue 1824 - Removed unused method Page.activate() (Closed)
Patch Set: Created Jan. 16, 2015, 1:28 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 | « chrome/ext/background.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: safari/ext/background.js
===================================================================
--- a/safari/ext/background.js
+++ b/safari/ext/background.js
@@ -47,10 +47,6 @@
{
return this._frames[0].url;
},
- activate: function()
- {
- this._tab.activate();
- },
sendMessage: function(message, responseCallback)
{
this._messageProxy.sendMessage(message, responseCallback, {pageId: this._id});
@@ -671,10 +667,11 @@
for (var id in pages)
{
var page = pages[id];
+ var tab = page._tab;
- if (page.url == optionsUrl && page._tab.browserWindow == safari.application.activeBrowserWindow)
+ if (page.url == optionsUrl && tab.browserWindow == safari.application.activeBrowserWindow)
{
- page.activate();
+ tab.activate();
if (callback)
callback(page);
return;
« no previous file with comments | « chrome/ext/background.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld