Closed
Bug 1199765
Opened 9 years ago
Closed 9 years ago
Add support for querying active state of remote browsers
Categories
(Toolkit :: UI Widgets, defect)
Toolkit
UI Widgets
Tracking
()
RESOLVED
FIXED
mozilla43
Tracking | Status | |
---|---|---|
firefox43 | --- | fixed |
People
(Reporter: jimm, Assigned: jimm)
References
Details
Attachments
(2 files, 3 obsolete files)
7.80 KB,
patch
|
mossop
:
review+
|
Details | Diff | Splinter Review |
7.74 KB,
patch
|
dao
:
review+
|
Details | Diff | Splinter Review |
We need this so we can enable tests that check active state.
Assignee | ||
Comment 1•9 years ago
|
||
Adds caching for active state and support for returning the value from remote-browser.
Attachment #8655478 -
Flags: review?(dtownsend)
Assignee | ||
Comment 2•9 years ago
|
||
The scary thing about this is that without the tabbrowser fixes this test fails.
Attachment #8655481 -
Flags: review?(dao)
Assignee | ||
Comment 3•9 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=e41ee9f4a2cf
Comment 4•9 years ago
|
||
Comment on attachment 8655478 [details] [diff] [review] cpp bits v.1 Review of attachment 8655478 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/interfaces/base/nsITabParent.idl @@ +29,5 @@ > + * Returns the doc shell active state. Note this does not query the > + * actual docShell on the child side, it returns a value cached in > + * SetIsDocShellActive. > + */ > + readonly attribute boolean docShellIsActive; Any reason not to make this a read/write attribute and get rid of the method above?
Attachment #8655478 -
Flags: review?(dtownsend) → review+
Assignee | ||
Comment 5•9 years ago
|
||
(In reply to Dave Townsend [:mossop] from comment #4) > Comment on attachment 8655478 [details] [diff] [review] > cpp bits v.1 > > Review of attachment 8655478 [details] [diff] [review]: > ----------------------------------------------------------------- > > ::: dom/interfaces/base/nsITabParent.idl > @@ +29,5 @@ > > + * Returns the doc shell active state. Note this does not query the > > + * actual docShell on the child side, it returns a value cached in > > + * SetIsDocShellActive. > > + */ > > + readonly attribute boolean docShellIsActive; > > Any reason not to make this a read/write attribute and get rid of the method > above? Yeah I can try that I guess. Let me search around, make sure I have a handle on all the uses of the older api.
Assignee | ||
Comment 6•9 years ago
|
||
Doesn't look bad, and I get zero hits in addons code.
Assignee | ||
Comment 7•9 years ago
|
||
Updated some naming, so requesting follow up review.
Attachment #8655478 -
Attachment is obsolete: true
Attachment #8655592 -
Flags: review?(dtownsend)
Assignee | ||
Comment 8•9 years ago
|
||
- updated a comment.
Attachment #8655592 -
Attachment is obsolete: true
Attachment #8655592 -
Flags: review?(dtownsend)
Attachment #8655594 -
Flags: review?(dtownsend)
Comment 9•9 years ago
|
||
Comment on attachment 8655594 [details] [diff] [review] cpp bits v.2 Review of attachment 8655594 [details] [diff] [review]: ----------------------------------------------------------------- Didn't spot the name collision there, still this looks good
Attachment #8655594 -
Flags: review?(dtownsend) → review+
Assignee | ||
Comment 10•9 years ago
|
||
Expanded version of this test that includes checking to make sure the cached c++ value is correct.
Attachment #8655481 -
Attachment is obsolete: true
Attachment #8655481 -
Flags: review?(dao)
Attachment #8655917 -
Flags: review?(dao)
Updated•9 years ago
|
Attachment #8655917 -
Flags: review?(dao) → review+
Comment 11•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/542c2121b3b1 https://hg.mozilla.org/integration/mozilla-inbound/rev/cdcb00107c17
Assignee | ||
Comment 12•9 years ago
|
||
The push didn't include the tabbrowser.xml changes. It turns out that having two tabs active is by design with e10s, we manage active state through the tabswitcher defined in tabbrowser. Basically we need to turn the new tab on so that it will paint, and keep the old tab active briefly since we keep it visible until layer tree updates arrive. So the second patch just updates the test.
https://hg.mozilla.org/mozilla-central/rev/542c2121b3b1 https://hg.mozilla.org/mozilla-central/rev/cdcb00107c17
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
You need to log in
before you can comment on or make changes to this bug.
Description
•