Closed
Bug 1271240
Opened 7 years ago
Closed 7 years ago
Add prerender flag support to e10s and implement makePrerenderedBrowserActive
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla49
People
(Reporter: freesamael, Assigned: freesamael)
References
(Blocks 1 open bug)
Details
(Whiteboard: btpp-active)
Attachments
(2 files, 8 obsolete files)
8.78 KB,
patch
|
freesamael
:
review+
|
Details | Diff | Splinter Review |
19.14 KB,
patch
|
freesamael
:
review+
|
Details | Diff | Splinter Review |
Follow up of 1061864. We should implement the e10s path for set / clear prerender flag.
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → sawang
Assignee | ||
Comment 1•7 years ago
|
||
Assignee | ||
Comment 2•7 years ago
|
||
Assignee | ||
Updated•7 years ago
|
Summary: Add prerender flag support to e10s → Add prerender flag support to e10s and implement makePrerenderedBrowserActive
Assignee | ||
Updated•7 years ago
|
Attachment #8750726 -
Attachment is obsolete: true
Assignee | ||
Comment 3•7 years ago
|
||
tracking-e10s:
--- → ?
Updated•7 years ago
|
Whiteboard: btpp-active
![]() |
||
Comment 4•7 years ago
|
||
new features that haven't shipped aren't tracked by the e10s team. it's expected they should be e10s compat before enabled.
Assignee | ||
Updated•7 years ago
|
Assignee | ||
Comment 5•7 years ago
|
||
Comment on attachment 8750725 [details] [diff] [review] Part 1: Support prerender flag in e10s and implement makePrerenderedBrowserActive() Hi Olli, Since the implementation of cross-docshell session history will be relatively complex, I split the code of setting / clearing prerender flag into this new bug so that I can implement PageVisibility API (bug 1069772) first before bug 1085045 is implemented. This patch addressed one issue you mentioned in bug 1085045 comment 8 - it doesn't use TabParent::SendSetIsPrerendered(), but adding a member in TabContext instead, and it uses makePrerenderedBrowserActive() to clear prerender flag. Could you help to review this patch?
Attachment #8750725 -
Flags: review?(bugs)
Assignee | ||
Updated•7 years ago
|
Attachment #8750729 -
Attachment is obsolete: true
Assignee | ||
Comment 6•7 years ago
|
||
Assignee | ||
Comment 7•7 years ago
|
||
Comment on attachment 8751101 [details] [diff] [review] Part 2: Add test case. r=smaug Hi Olli, could you help to review the test case? It's an e10s only test case, but it also tests non-remote <xul:browser>.
Attachment #8751101 -
Flags: review?(bugs)
Assignee | ||
Comment 8•7 years ago
|
||
Assignee | ||
Updated•7 years ago
|
Attachment #8751181 -
Attachment is obsolete: true
Assignee | ||
Comment 9•7 years ago
|
||
Assignee | ||
Comment 10•7 years ago
|
||
Comment on attachment 8750725 [details] [diff] [review] Part 1: Support prerender flag in e10s and implement makePrerenderedBrowserActive() Update patch...
Attachment #8750725 -
Flags: review?(bugs)
Assignee | ||
Updated•7 years ago
|
Attachment #8750725 -
Attachment is obsolete: true
Assignee | ||
Comment 11•7 years ago
|
||
Comment on attachment 8751183 [details] [diff] [review] Part 1: Support prerender flag in e10s and implement makePrerenderedBrowserActive() I got second thought that I should just make nsDocShell::mIsPrerendered being cleared when nsDocShell::SetIsActive() is invoked since docshell shouldn't be "prerendered" and "active" at the same time. I updated the patch accordingly. Could you help to review the patch based on the description in comment 5?
Attachment #8751183 -
Flags: review?(bugs)
Comment 12•7 years ago
|
||
Comment on attachment 8751183 [details] [diff] [review] Part 1: Support prerender flag in e10s and implement makePrerenderedBrowserActive() >+++ b/dom/ipc/TabContext.cpp Shouldn't TabContext::TabContext() initialize mIsPrerendered to false.
Attachment #8751183 -
Flags: review?(bugs) → review+
Updated•7 years ago
|
Attachment #8751101 -
Flags: review?(bugs) → review+
Assignee | ||
Comment 13•7 years ago
|
||
Fix nits Olli mentioned.
Assignee | ||
Updated•7 years ago
|
Attachment #8752050 -
Attachment description: Part 1: Support prerender flag in e10s and implement makePrerenderedBrowserActive() → Part 1: Support prerender flag in e10s and implement makePrerenderedBrowserActive(). r=smaug
Attachment #8752050 -
Flags: review+
Assignee | ||
Updated•7 years ago
|
Attachment #8751183 -
Attachment is obsolete: true
Assignee | ||
Updated•7 years ago
|
Attachment #8751101 -
Attachment description: Part 2: Add test case → Part 2: Add test case. r=smaug
Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 14•7 years ago
|
||
Running try job: https://treeherder.mozilla.org/#/jobs?repo=try&revision=a88abee7d56c1bff99cfe09d0dd18a16d35a5ad0
Updated•7 years ago
|
Blocks: prerendering
Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 15•7 years ago
|
||
try to re-set checkin-needed again, hopefully it gets land
Keywords: checkin-needed
Comment 16•7 years ago
|
||
mochitest-chrome doesn't run in e10s mode, so Part 2 is effectively a no-op at the moment. Was that intentional?
Flags: needinfo?(sawang)
Keywords: checkin-needed
Assignee | ||
Comment 17•7 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=461eef435893
Assignee | ||
Comment 18•7 years ago
|
||
Assignee | ||
Comment 19•7 years ago
|
||
Comment on attachment 8753663 [details] [diff] [review] Part 2: Add test case. r=smaug split the test case into 2 separate tests
Attachment #8753663 -
Attachment description: Part 2: Add test case → Part 2: Add test case. r=smaug
Attachment #8753663 -
Flags: review+
Assignee | ||
Updated•7 years ago
|
Attachment #8751101 -
Attachment is obsolete: true
Flags: needinfo?(sawang)
Assignee | ||
Comment 20•7 years ago
|
||
(In reply to Ryan VanderMeulen [:RyanVM] from comment #16) > mochitest-chrome doesn't run in e10s mode, so Part 2 is effectively a no-op > at the moment. Was that intentional? I wasn't aware of that try server doesn't run mochitest-chrome in e10s. I was running it locally in e10s mode. Now I split the test case into 2, so at least the non-remote test will be run on try server.
Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Comment 21•7 years ago
|
||
This has nothing to do with Try. Even locally, mochitest-chrome runs tests in the parent process, so e10s mode isn't testing what you think.
Comment 22•7 years ago
|
||
I'm lost now. The test explicitly does <browser remote=true>, so why wouldn't it be testing e10s?
Comment 23•7 years ago
|
||
(In reply to Ryan VanderMeulen [:RyanVM] from comment #21) > This has nothing to do with Try. Even locally, mochitest-chrome runs tests > in the parent process, so e10s mode isn't testing what you think. When I first read the test, I thought this too; however, the test actually does create a remote browser, which does work in e10s (whether or not --e10s is passed to mochitest-chrome). This is equivalent to the mochitest-plain tests that create a mozbrowser iframe in order to specially interact with its message manager and test e10s.
Comment 24•7 years ago
|
||
Thanks for clarifying everyone, sorry for the confusion on my part.
Comment 25•7 years ago
|
||
What's with all the e10s test_scopes.html failures on that Try push, though? I don't see those on the Treeherder results for the parent commit. https://treeherder.mozilla.org/logviewer.html#?job_id=21008605&repo=try#L3126
Assignee | ||
Comment 26•7 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=0f1af03c7b92
Assignee | ||
Comment 27•7 years ago
|
||
The other run yesterday which also includes the patches doesn't seem to have the same failure: https://treeherder.mozilla.org/#/jobs?repo=try&revision=e87e8bd0d78fdb9afa9ac21507b3857224d16993 I'm trying another run on mochitests...
Assignee | ||
Comment 28•7 years ago
|
||
(In reply to Samael Wang [:freesamael][:sawang] from comment #26) > https://treeherder.mozilla.org/#/jobs?repo=try&revision=0f1af03c7b92 This run on mochitests is all greeen.
Assignee | ||
Comment 30•7 years ago
|
||
rebase patch, just in case
Assignee | ||
Comment 31•7 years ago
|
||
rebase part 1
Assignee | ||
Updated•7 years ago
|
Attachment #8752050 -
Attachment is obsolete: true
Assignee | ||
Updated•7 years ago
|
Attachment #8753663 -
Attachment is obsolete: true
Assignee | ||
Updated•7 years ago
|
Attachment #8754645 -
Attachment description: Part 1: Support prerender flag in e10s and implement makePrerenderedBrowserActive() → Part 1: Support prerender flag in e10s and implement makePrerenderedBrowserActive(). r=smaug
Attachment #8754645 -
Flags: review+
Assignee | ||
Updated•7 years ago
|
Attachment #8754638 -
Attachment description: Part 2: Add test case → Part 2: Add test . r=smaug
Attachment #8754638 -
Flags: review+
Comment 33•7 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/91bf876e9f32 https://hg.mozilla.org/integration/mozilla-inbound/rev/39b01a2c5fbe
Keywords: checkin-needed
Comment 34•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/91bf876e9f32 https://hg.mozilla.org/mozilla-central/rev/39b01a2c5fbe
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox49:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
Updated•4 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•