Closed
Bug 653681
Opened 14 years ago
Closed 14 years ago
TabMatcher._getTabsForOtherWindows() must not use nsIWindowMediator.getMostRecentWindow()
Categories
(Firefox Graveyard :: Panorama, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 6
People
(Reporter: ttaubert, Assigned: ttaubert)
References
Details
Attachments
(1 file, 3 obsolete files)
3.50 KB,
patch
|
Details | Diff | Splinter Review |
browser_tabview_multwindow_search.js is constantly failing for me when running tabview tests locally. TabMatcher._getTabsForOtherWindows() uses nsIWindowMediator.getMostRecentWindow() to determine the currently focused (the searching) window. We should just use gWindow here.
Assignee | ||
Comment 1•14 years ago
|
||
See also bug 618470.
Assignee: nobody → tim.taubert
See Also: → 618470
Assignee | ||
Comment 2•14 years ago
|
||
Asking Ehsan for review, to distribute Panorama reviews a bit :)
Note: I'll attach a second patch soon that doesn't contain white space changes because I made some coding style corrections, too.
Attachment #529062 -
Flags: review?(ehsan)
Assignee | ||
Comment 3•14 years ago
|
||
Same patch as above, without white space changes.
Comment 4•14 years ago
|
||
Comment on attachment 529062 [details] [diff] [review]
patch v1
Review of attachment 529062 [details] [diff] [review]:
::: browser/base/content/tabview/search.js
@@ +224,5 @@
// least once, while <xul:tab>s will be return for windows in which
// Panorama has never been activated.
_getTabsForOtherWindows: function TabMatcher__getTabsForOtherWindows(){
+ var enumerator = Cc["@mozilla.org/appshell/window-mediator;1"]
+ .getService(Ci.nsIWindowMediator)
You should use Services.wm here.
Assignee | ||
Comment 5•14 years ago
|
||
(In reply to comment #4)
> You should use Services.wm here.
Looks much better, thanks :)
Attachment #529062 -
Attachment is obsolete: true
Attachment #529062 -
Flags: review?(ehsan)
Attachment #529069 -
Flags: review?(ehsan)
Comment 6•14 years ago
|
||
Comment on attachment 529069 [details] [diff] [review]
patch v2
Review of attachment 529069 [details] [diff] [review]:
::: browser/base/content/tabview/search.js
@@ +219,4 @@
// ---------
// Function: _getTabsForOtherWindows
// Returns an array of <TabItem>s and <xul:tabs>s representing that
// tabs from all windows but the currently focused window. <TabItem>s
Please replace "currently focused window" with "current window".
@@ +230,4 @@
while (enumerator.hasMoreElements()) {
var win = enumerator.getNext();
// This function gets tabs from other windows: not the one you currently
// have focused.
ditto
Attachment #529069 -
Flags: review?(ehsan) → review+
Assignee | ||
Comment 7•14 years ago
|
||
(In reply to comment #6)
> Please replace "currently focused window" with "current window".
Fixed. Thanks for your review!
Attachment #529063 -
Attachment is obsolete: true
Attachment #529069 -
Attachment is obsolete: true
Assignee | ||
Updated•14 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 8•14 years ago
|
||
Comment on attachment 529091 [details] [diff] [review]
patch for checkin
Forgot to mention that it passed try:
http://tbpl.mozilla.org/?tree=Try&pusher=tim.taubert@gmx.de&rev=4d856e555a4b
Updated•14 years ago
|
Keywords: checkin-needed
Whiteboard: [fixed in cedar]
Comment 9•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Flags: in-testsuite?
Resolution: --- → FIXED
Whiteboard: [fixed in cedar]
Target Milestone: --- → Firefox 6
Comment 10•14 years ago
|
||
Backed out for possibly causing a frequent mochitest-other tabview test failure on Windows debug:
http://hg.mozilla.org/mozilla-central/rev/359643f58412
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 11•14 years ago
|
||
Setting to checkin-needed again as this was not causing the m-oth orange.
Keywords: checkin-needed
Comment 12•14 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 14 years ago → 14 years ago
Resolution: --- → FIXED
Updated•14 years ago
|
Keywords: checkin-needed
Updated•9 years ago
|
Product: Firefox → Firefox Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•