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

Issue 5220277533278208: Made the bubble use the ext object from the background page instead of including ext/background.js (Closed)

Created:
Dec. 21, 2013, 7:12 p.m. by Sebastian Noack
Modified:
Jan. 16, 2014, 10:50 a.m.
Visibility:
Public.

Description

The bubble (popup.html) had its own instance of ext (the abstraction layer). However this didn't only caused longer load time and larger memory footprint for the bubble, but also lead to issues on Safari. The TabMap compares raw tab instances, however the same tab is represented by a different objects in the bubble and in the background page. But that might not be the only issue.

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rebased and moved imports to the bottom #

Patch Set 3 : Don't use with statement #

Total comments: 1

Patch Set 4 : Assigned imported variables to window #

Unified diffs Side-by-side diffs Delta from patch set Stats (+296 lines, -283 lines) Patch
A chrome/ext/popup.js View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M metadata.common View 1 1 chunk +1 line, -0 lines 0 comments Download
M metadata.safari View 1 1 chunk +1 line, -0 lines 0 comments Download
M popup.html View 1 chunk +1 line, -2 lines 0 comments Download
M safari/ext/background.js View 2 chunks +268 lines, -281 lines 0 comments Download
A safari/ext/popup.js View 1 2 3 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 4
Sebastian Noack
Dec. 21, 2013, 7:22 p.m. (2013-12-21 19:22:33 UTC) #1
Wladimir Palant
LGTM with the nit addressed. http://codereview.adblockplus.org/5220277533278208/diff/5629499534213120/chrome/ext/popup.js File chrome/ext/popup.js (right): http://codereview.adblockplus.org/5220277533278208/diff/5629499534213120/chrome/ext/popup.js#newcode5 chrome/ext/popup.js:5: } Please don't use ...
Jan. 15, 2014, 4:39 p.m. (2014-01-15 16:39:18 UTC) #2
Sebastian Noack
http://codereview.adblockplus.org/5220277533278208/diff/5629499534213120/chrome/ext/popup.js File chrome/ext/popup.js (right): http://codereview.adblockplus.org/5220277533278208/diff/5629499534213120/chrome/ext/popup.js#newcode5 chrome/ext/popup.js:5: } On 2014/01/15 16:39:19, Wladimir Palant wrote: > Please ...
Jan. 15, 2014, 4:55 p.m. (2014-01-15 16:55:20 UTC) #3
Wladimir Palant
Jan. 16, 2014, 7:46 a.m. (2014-01-16 07:46:42 UTC) #4
http://codereview.adblockplus.org/5220277533278208/diff/5657382461898752/chro...
File chrome/ext/popup.js (right):

http://codereview.adblockplus.org/5220277533278208/diff/5657382461898752/chro...
chrome/ext/popup.js:5: TabMap = backgroundPage.TabMap;
Assigning to undeclared variables isn't the fine art either. You need either
|var ext, TabMap| before this function or assign to window.ext and
window.TabMap.

Powered by Google App Engine
This is Rietveld