Closed Bug 1113227 Opened 10 years ago Closed 9 years ago

Mozbench should set user profile on Android

Categories

(Testing :: General, defect)

All
Other
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: dminor, Unassigned, Mentored)

References

Details

In particular, we need to set the dom.max_script_run_time preference to be able to run the Octane benchmark without being warned about long running scripts.
Is there a way to programmatically change this preference? I'm not aware but I'll also look around.
(In reply to Ricardo Castro from comment #2) > Some stuff I found: > > https://developer.mozilla.org/en-US/Add-ons/Code_snippets/ > Preferences#JavaScript_wrappers_for_preferences_system > > https://wiki.mozilla.org/Labs/JS_Modules#Preferences > > I'll dig deeper. The Mochitest test framework does something like this with an add-on that allows tests access to chrome level privileges through a 'SpecialPowers' object, so we could probably get something similar to work here, although we would still have to mess with the profile to get the add-on running when we install fennec. The approach I've been looking at is to use mozprofile to generate a profile, add the extra pref, push it to the phone and then use the --profile command line to use the new profile when starting. There is similar code doing this here: https://github.com/mozilla/autophone. Unfortunately, when I do this, on my phone the browser hangs part way through loading Octane. I pushed my WIP to here: https://github.com/dminor/mozbench/tree/bug-1113227-fix in case you want to have a look. Let me know if you have any ideas :)
Sounds good :) Do you have any idea why it hangs? Does the alert warning go away but the browser still "blocks" ?
(In reply to Ricardo Castro from comment #4) > Sounds good :) Do you have any idea why it hangs? Does the alert warning go > away but the browser still "blocks" ? I think it is a permissions issue. I get the same problem whether I point to a new profile, the existing profile or to a bad path. I spoke to a colleague and it sounds like the phone needs to be rooted in order for this to work.
Ahhh. Makes sense.
I ran some experiments using 'run-as' to attempt to modify the profile. Unfortunately the nightlies are not compiled as debuggable, so it doesn't seem like this will work for us either. It looks like we might be stuck rooting the testing phones, which I'm not convinced is something we want to do.
Assignee: dminor → nobody
We're replacing mozbench with arewefastyet.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.