mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Share prefs to content processes
Without this `./mach run -b -- -M` would start fine but navigating to a site would fail with: `thread 'ScriptThread PipelineId { namespace_id: PipelineNamespaceId(0), index: PipelineIndex(0) }' panicked at 'assertion failed: mozbrowser_enabled()', /Users/ulf/Documents/Code/servo/components/script/dom/htmliframeelement.rs:163`
This commit is contained in:
parent
f9608022ca
commit
d433fb01ed
3 changed files with 16 additions and 4 deletions
|
@ -81,8 +81,8 @@ use profile_traits::mem;
|
|||
use profile_traits::time;
|
||||
use std::rc::Rc;
|
||||
use std::sync::mpsc::Sender;
|
||||
use util::opts;
|
||||
use util::resource_files::resources_dir_path;
|
||||
use util::{opts, prefs};
|
||||
|
||||
pub use gleam::gl;
|
||||
|
||||
|
@ -251,6 +251,7 @@ pub fn run_content_process(token: String) {
|
|||
|
||||
let unprivileged_content = unprivileged_content_receiver.recv().unwrap();
|
||||
opts::set_defaults(unprivileged_content.opts());
|
||||
prefs::extend_prefs(unprivileged_content.prefs());
|
||||
|
||||
// Enter the sandbox if necessary.
|
||||
if opts::get().sandbox {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue