DescriptionThis fixes a few issues with the code dealing with frames on Chrome, while it also reduces that code by half:
1. We used an array instead of an object, accessed by frame ID, resulting in an array with a lot of empty elements.
2. We didn't flushed the previously seen frames, when the main frame was reloading or loading another page. That resulted in constantly increasing memory usage, while navigating within the same tab.
3. We are used to fallback to the top level frame when encountering an unknown frame. But this fall back failed sometimes after reloading the extension, because we didn't retrieved the URLs of tabs, already there on startup.
4. I was able to eliminate the Frame constructor and prototype (and a lot of unnecessary lookups) by just storing the frame data in the format expected by the high level code, in the first place.
Patch Set 1 #
Total comments: 10
Patch Set 2 : Addressed comments #
Total comments: 4
Patch Set 3 : Addressed comment #
MessagesTotal messages: 8
|