Closed
Bug 540248
Opened 15 years ago
Closed 14 years ago
Race condition when updating the window title during tab preview
Categories
(Firefox :: Shell Integration, defect)
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
status1.9.2 | --- | .7-fixed |
People
(Reporter: robarnold, Assigned: robarnold)
References
Details
Attachments
(1 file, 3 obsolete files)
1.45 KB,
patch
|
dveditz
:
approval1.9.2.7+
|
Details | Diff | Splinter Review |
There seems to be a race condition in the Windows taskbar. If the main window updates its title during a preview, that title is drawn instead of the focused preview's title. In tabbrowser.xml we are intentionally changing the title but one of the possible solutions in bug 520807 would cause the DWM to no longer draw the titlebar. This patch removes that change in title while in previewmode. This method is not perfect though - any update to the actual window title (say via some JS on a timer) overrides the title drawn by the DWM during preview. This issue also affects IE8.
Attachment #422062 -
Flags: review?(dao)
Comment 1•15 years ago
|
||
So as long as we draw the title bar, this means we would display the title for the tab that was selected beforehand? I don't think we want this.
Assignee | ||
Comment 2•15 years ago
|
||
(In reply to comment #1) > So as long as we draw the title bar, this means we would display the title for > the tab that was selected beforehand? I don't think we want this. No. If we ask the DWM to draw the frame, then the title is always displayed correctly but the rest of the frame is not for maximized windows (bug 502807). If we don't ask the DWM to draw the frame, then it will still draw the title of the previewed tab for us (though over the last-seen image of the window so there will be a frame). It will not, however, draw the rest of the frame. We could avoid this whole issue (including DHTML changes to the title) if we drew *everything* about the window but that's not slated until the Firefox 4.0 timeframe so this is a temporary fix in a sense.
Blocks: 520807
Comment 3•15 years ago
|
||
Comment on attachment 422062 [details] [diff] [review] Don't set the title in previewmode > // Don't switch the fast find - this tab switch is temporary You should update this comment and add a reference to this bug.
Attachment #422062 -
Flags: review?(dao) → review+
Assignee | ||
Comment 4•15 years ago
|
||
Attachment #422062 -
Attachment is obsolete: true
Assignee | ||
Comment 5•15 years ago
|
||
Oops, updated the wrong comment.
Attachment #422096 -
Attachment is obsolete: true
Comment 6•15 years ago
|
||
Comment on attachment 422097 [details] [diff] [review] Don't set the title in previewmode >+ if (!this._previewMode) { >+ // Don't switch the fast find - this tab switch is temporary > this._fastFind.setDocShell(this.mCurrentBrowser.docShell); This doesn't make sense now: "Don't" and "this tab switch is temporary" refer to the preceding line, contrary to how code comments are usually written. >+ // XXX Bug 540248 - don't update the titlebar during preview >+ this.updateTitlebar(); Same here.
Assignee | ||
Comment 7•15 years ago
|
||
(In reply to comment #6) > (From update of attachment 422097 [details] [diff] [review]) > >+ if (!this._previewMode) { > >+ // Don't switch the fast find - this tab switch is temporary > > this._fastFind.setDocShell(this.mCurrentBrowser.docShell); > > This doesn't make sense now: "Don't" and "this tab switch is temporary" refer > to the preceding line, contrary to how code comments are usually written. > > >+ // XXX Bug 540248 - don't update the titlebar during preview > >+ this.updateTitlebar(); > > Same here. Ah right. Was not fully awake when I edited this. Better?
Attachment #422097 -
Attachment is obsolete: true
Comment 8•15 years ago
|
||
That's certainly better.
Assignee | ||
Comment 9•14 years ago
|
||
Pushed to mozilla-central: http://hg.mozilla.org/mozilla-central/rev/d39bcd1d6ff8
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 10•14 years ago
|
||
Comment on attachment 422109 [details] [diff] [review] Don't set the title in previewmode Requesting approval so that bug 520807 can be backported to 1.9.2.
Attachment #422109 -
Flags: approval1.9.2.3?
Comment 11•14 years ago
|
||
Comment on attachment 422109 [details] [diff] [review] Don't set the title in previewmode a=LegNeato for 1.9.2.5. Please ONLY land this on mozilla-1.9.2 default, as we are still working on 1.9.2.4 on the relbranch
Attachment #422109 -
Flags: approval1.9.2.4? → approval1.9.2.5+
Updated•14 years ago
|
Attachment #422109 -
Flags: approval1.9.2.5+ → approval1.9.2.6+
Comment 12•14 years ago
|
||
http://hg.mozilla.org/releases/mozilla-1.9.2/rev/4a05e2566508
status1.9.2:
--- → .6-fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•