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

Issue 11624001: Fixed: WindowObserver ignoring primary browser window if instantiated before window visible (Closed)

Created:
Sept. 5, 2013, 3:44 p.m. by Thomas Greiner
Modified:
Sept. 30, 2013, 11:05 a.m.
Reviewers:
Wladimir Palant
Visibility:
Public.

Description

If WindowObserver is instantiated before the primary browser window is visible, this window is not included in the initial enumeration that we get through calling getZOrderDOMWindowEnumerator. Using nsIWindowWatcher.getWindowEnumerator instead of nsIWindowMediator.getZOrderDOMWindowEnumerator we can get all windows. Using this also has the nice side effect that we don't need to care about issue 156333 here anymore.

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -5 lines) Patch
M lib/windowObserver.js View 1 2 1 chunk +13 lines, -5 lines 0 comments Download

Messages

Total messages: 6
Thomas Greiner
Sept. 5, 2013, 4:22 p.m. (2013-09-05 16:22:41 UTC) #1
Wladimir Palant
http://codereview.adblockplus.org/11624001/diff/1/lib/windowObserver.js File lib/windowObserver.js (right): http://codereview.adblockplus.org/11624001/diff/1/lib/windowObserver.js#newcode38 lib/windowObserver.js:38: let e = Services.ww.getWindowEnumerator(); You are reverting the change ...
Sept. 9, 2013, 8:04 a.m. (2013-09-09 08:04:22 UTC) #2
Thomas Greiner
Sept. 9, 2013, 3:17 p.m. (2013-09-09 15:17:30 UTC) #3
Wladimir Palant
Thank you, almost there - merely two nits. http://codereview.adblockplus.org/11624001/diff/8001/lib/windowObserver.js File lib/windowObserver.js (right): http://codereview.adblockplus.org/11624001/diff/8001/lib/windowObserver.js#newcode44 lib/windowObserver.js:44: } ...
Sept. 11, 2013, 11:31 a.m. (2013-09-11 11:31:26 UTC) #4
Thomas Greiner
Sept. 16, 2013, 3:27 p.m. (2013-09-16 15:27:04 UTC) #5
Wladimir Palant
Sept. 30, 2013, 8:26 a.m. (2013-09-30 08:26:50 UTC) #6
Sorry, forgot to LGTM this. Please check in ASAP, we need to announce that
change in the development builds channel.

Powered by Google App Engine
This is Rietveld