- 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));