Closed Bug 1161241 Opened 9 years ago Closed 9 years ago

Adjust graphene prefs for MOZ_HORIZON define

Categories

(Firefox OS Graveyard :: General, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: kgrandon, Assigned: kgrandon)

Details

(Whiteboard: graphene-larch [horizon][webvr][vrm2])

Attachments

(1 file, 3 obsolete files)

We should set the following prefs:

pref("b2g.default.start_manifest_url", "https://mozvr.github.io/horizon/web/manifest.webapp");
pref("dom.ipc.tabs.disabled", false);
pref("dom.vr.enabled", true);
Attachment #8601114 - Attachment is obsolete: true
New patch to add necessary bits to configure.in.

Fabrice - can you take a look when you get a chance?
Attachment #8601119 - Attachment is obsolete: true
Attachment #8601157 - Flags: review?(fabrice)
Comment on attachment 8601157 [details] [diff] [review]
[larch] Patch - Adjust prefs for horizon

Review of attachment 8601157 [details] [diff] [review]:
-----------------------------------------------------------------

I chatted with vlad and he told me that e10s needs to be disabled for VR. So you need to move pref("dom.ipc.tabs.disabled", ...) with different values in the #ifdef branches.
Attachment #8601157 - Flags: review?(fabrice) → review-
fwiw -- I would use MOZ_WEBVR_HACK or something similar for the #define.  WebVR is enabled/available in general; the only things that will be behind this define are hacks that aren't ready for going in to m-c as-is.  Having the name MOZ_WEBVR makes it seem like the entire feature is behind a pref.  Might be nitpicky, but..
Or rather, we probably want MOZ_HORIZON and MOZ_WEBVR_HACK.  Setting MOZ_HORIZON should turn on MOZ_WEBVR_HACK as well.  That way stuff that's horzion-specific (like the prefs.js changes) can live behind a pref that we'll want to keep around, and the _HACK stuff can get removed as we fix it.  (Or we just use MOZ_HORIZON for everything.)
Using MOZ_HORIZON for everything seems like a good option to me. I'll re-submit the patch now.
Attachment #8601157 - Attachment is obsolete: true
Summary: Adjust graphene prefs for MOZ_WEBVR define → Adjust graphene prefs for MOZ_HORIZON define
Comment on attachment 8601682 [details] [diff] [review]
[larch] Patch - Adjust prefs for horizon

Review of attachment 8601682 [details] [diff] [review]:
-----------------------------------------------------------------

Fabrice - I've updated patch to use MOZ_HORIZON and set values of dom.ipc.tabs.disabled. Can you take a look when you get a chance? Thanks!
Attachment #8601682 - Flags: review?(fabrice)
Attachment #8601682 - Flags: review?(fabrice) → review+
https://hg.mozilla.org/projects/larch/rev/383d3b0a6c6d
Whiteboard: [horizon] → graphene-larch [horizon]
If MOZ_HORIZON here just for the prefs?

If so, I think maybe we can do without the prefs:

- instead of dom.ipc.tabs.disabled:true, just do not use remote=true (is that enough?)
- we could set dom.vr.enabled to true in Graphene too.
- start_manifest_url can be specified from the command line.

And if you need a special branding, what about using `--with-branding` in your mozconfig?
(In reply to Paul Rouget [:paul] from comment #11)
> If MOZ_HORIZON here just for the prefs?
> 
> If so, I think maybe we can do without the prefs:
> 
> - instead of dom.ipc.tabs.disabled:true, just do not use remote=true (is
> that enough?)
> - we could set dom.vr.enabled to true in Graphene too.
> - start_manifest_url can be specified from the command line.

We're going to be doing nightly builds, so we need some way to change the prefs with a build variable. MOZ_HORIZON is also going to be a temporary flag to disable some graphics features and optimizations for VR, so it's something we need to keep around.


> And if you need a special branding, what about using `--with-branding` in
> your mozconfig?

Yup, I'm testing with this locally and we are handling this in bug 1160717 for nightly builds.
ok!
Whiteboard: graphene-larch [horizon] → graphene-larch [horizon][webvr]
Whiteboard: graphene-larch [horizon][webvr] → graphene-larch [horizon][webvr][vrm2]
Landed in mozilla-central via bug 1204965.
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: