Closed
Bug 746837
Opened 13 years ago
Closed 13 years ago
Fix sessionstore to handle an exception thrown when attempting to focus a window that has been navigated
Categories
(Firefox :: Session Restore, defect)
Firefox
Session Restore
Tracking
()
RESOLVED
FIXED
Firefox 14
People
(Reporter: khuey, Assigned: dao)
References
Details
Attachments
(1 file, 1 obsolete file)
1.37 KB,
patch
|
zpao
:
review+
|
Details | Diff | Splinter Review |
This will throw after Bug 695480 lands.
Attachment #616385 -
Flags: review?(paul)
Comment 1•13 years ago
|
||
This should probably just be calling browser.focus()?
Reporter | ||
Comment 2•13 years ago
|
||
Maybe! I don't have any idea what I'm really doing here ...
Assignee | ||
Comment 3•13 years ago
|
||
(In reply to :Gavin Sharp (use gavin@gavinsharp.com for email) from comment #1)
> This should probably just be calling browser.focus()?
'browser' is the tabbrowser here. It should be renamed accordingly, 'let browser = tabbrowser.getBrowserForTab(tab);' should be added and then we can focus the browser in the callback function.
Assignee | ||
Comment 4•13 years ago
|
||
It seems that we don't even need the setTimeout anymore. This doesn't regress bug 342432 comment 6.
Attachment #616488 -
Flags: review?(paul)
Comment 5•13 years ago
|
||
Comment on attachment 616488 [details] [diff] [review]
better patch?
Review of attachment 616488 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/components/sessionstore/src/nsSessionStore.js
@@ +1475,3 @@
>
> // focus the tab's content area
> + tabbrowser.getBrowserForTab(tab).focus();
Make this `tab.linkedBrowser` and we have a deal.
Attachment #616488 -
Flags: review?(paul) → review+
Updated•13 years ago
|
Attachment #616385 -
Flags: review?(paul)
Assignee | ||
Updated•13 years ago
|
Assignee: khuey → dao
Assignee | ||
Updated•13 years ago
|
Attachment #616385 -
Attachment is obsolete: true
Assignee | ||
Comment 6•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 14
Comment 7•13 years ago
|
||
(In reply to Gavin Sharp from comment #1)
> This should probably just be calling browser.focus()?
Indeed, as of the great focus rewrite (somewhere between 3.5 and 4, I forget when) focusing the browser is the way to go (except in certain unrelated cases where you specifically want to raise the window at the same time).
You need to log in
before you can comment on or make changes to this bug.
Description
•