- check(pref_service->GetDefaultBranch("layout",
- getter_AddRefs(pref_branch)));
- check(pref_branch->SetBoolPref(
- "fire_onload_after_image_background_loads",
- true));
+ // Disable IE-compatibility kluge that causes backgrounds to
+ // sometimes/usually be missing from snapshots. This is only
+ // effective from Mozilla 1.8 onward.
+ check(pref_branch->SetBoolPref(
+ "layout.fire_onload_after_image_background_loads",
+ true));
+
+ // Turn off link underlining. This is also set in the agent
+ // stylesheet, but seems to be overridden by preferences in
+ // Mozilla 1.8.
+ check(pref_branch->SetBoolPref("browser.underline_anchors",
+ false));