Closed Bug 1170513 Opened 9 years ago Closed 7 days ago

Unable to change the preferences values "dom.disable_window_move_resize" and "dom.event.contextmenu.enabled" in firefox 28.0 version using user_pref() function

Categories

(Core :: Preferences: Backend, defect)

28 Branch
Unspecified
Linux
defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: sandeep.joginapelly, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.65 Safari/537.36

Steps to reproduce:

1) Updated the preferences.js.seed file with the following entries 
user_pref("extensions.update.enabled", false);
user_pref("browser.formfill.enable", false);
user_pref("signon.rememberSignons", false);
user_pref("security.enable_ssl2", false);
user_pref("security.enable_tls", true);
user_pref("signon.prefillForms", false);
user_pref("privacy.sanitize.sanitizeOnShutdown", true);
user_pref("privacy.sanitize.promptOnSanitize", false);
user_pref("plugin.disable_full_page_plugin_for_types", "application/pdf,application/fdf,application/xfdf,application/lsl,application/lso,application/lss,application/iqy,application/rqy,application/xlk,application/xls,application/xlt,application/pot,application/pps,application/ppt,application/dos,application/dot,application/wks,application/bat,application/ps,application/eps,application/wch,application/wcm,application/wb1,application/wb3,application/rtf,application/doc,application/mdb,application/mde,application/wbk,application/wb1,application/wch,application/wcm,application/ad,application/adp");
user_pref("dom.disable_window_move_resize", true);
user_pref("dom.event.contextmenu.enabled", false);

And restarted the firefox.
The system has SUSE Linux 11 SP1 OS.



Actual results:

1)But when we opened the firefox using "about:cofig" the 2 parameters "dom.disable_window_move_resize" and "dom.event.contextmenu.enabled" are not being modified from the default values "false" and "true" respectively and their status is shown as "default" and rest all the parameters which i listed above have status set as "user set" and their values are also modified according what is specified.
2) The prefs.js is getting updated with all the above entries except the 2 parameters "dom.disable_window_move_resize" and "dom.event.contextmenu.enabled" mentioned in point 1.


Expected results:

1) When we open the firefox using "about:cofig" the 2 parameters "dom.disable_window_move_resize" and "dom.event.contextmenu.enabled" should have the values "true" and "false" respectively and their status should have be "user set"
2) The prefs.js file should have been updated with all the above entries including the 2  parameters "dom.disable_window_move_resize" and "dom.event.contextmenu.enabled".

But when we used pref() function instead of user_pref() in the preferences.js.seed file for the 2 parameters and when we open the firefox using "about:cofig" the 2 parameters "dom.disable_window_move_resize" and "dom.event.contextmenu.enabled" have the values "true" and "false" respectively even though the  status is displayed as "default" and prefs.js file is not getting updated
Firefox 28 is obsolete. If you didn't actually mean Firefox 38, update to the latest version.

(In reply to sandeep.joginapelly from comment #0)
> 1) Updated the preferences.js.seed file with the following entries 

I've never heard of that file before. It sounds like something introduced by your Linux distribution, in which case this wouldn't be a Firefox bug. See the following article for ways to set preferences at startup:
https://developer.mozilla.org/en-US/docs/Mozilla/Preferences/A_brief_guide_to_Mozilla_preferences
Component: Untriaged → Preferences: Backend
OS: Unspecified → Linux
Product: Firefox → Core
Hi,

This behaviour is seen in 38 build also. Are these 2 preferences "dom.disable_window_move_resize" and "dom.event.contextmenu.enabled" can be set using user_pref() function or these can be set only using pref function? From about:config UI if we double click on these parameters the status changes from "default" to "user set". So these preferences could be set using the user_pref() function. But currently we could only set these preferences using pref() function.  

2)All the preferences that we updated in mozilla.cfg file are not getting locked(From the about:config UI we don't see the preferences "state" as "locked" and we are able to double click on these preferences and change their value.)

The below is what our mozillla.cfg file contains
//
// disable default browser check
lockPref("browser.shell.checkDefaultBrowser", false);
lockPref("browser.startup.homepage_override.mstone", "ignore");

// disable application updates
lockPref("app.update.enabled", false)

// disables the 'know your rights' button from displaying on first run
lockPref("browser.rights.3.shown", true);

// disables the request to send performance data from displaying
lockPref("toolkit.telemetry.prompted", 2);
lockPref("toolkit.telemetry.rejected", true);
lockPref("browser.formfill.enable", false);
lockPref("browser.search.update", false);
lockPref("dom.disable_window_flip", true);
lockPref("dom.disable_window_move_resize", false);
lockPref("dom.disable_window_open_feature.status", true);
lockPref("dom.disable_window_status_change", true);
lockPref("dom.event.contextmenu.enabled", true);
lockPref("extensions.update.enabled", false);
lockPref("network.protocol-handler.external.shell", false);
lockPref("privacy.sanitize.promptOnSanitize", false);
lockPref("privacy.sanitize.sanitizeOnShutdown", true);
lockPref("security.default_personal_cert", "Ask Every Time");
lockPref("security.enable_ssl2", false);
lockPref("security.enable_ssl3", false);
lockPref("security.enable_tls", true);
lockPref("security.warn_leaving_secure", true);
lockPref("signon.prefillForms", false);
lockPref("signon.rememberSignons", false);
lockPref("plugin.disable_full_page_plugin_for_types", "application/pdf,application/fdf,application/xfdf,application/lsl,application/lso,application/lss,application/iqy,application/rqy,application/xlk,application/xls,application/xlt,application/pot,application/pps,application/ppt,application/dos,application/dot,application/wks,application/bat,application/ps,application/eps,application/wch,application/wcm,application/wb1,application/wb3,application/rtf,application/doc,application/mdb,application/mde,application/wbk,application/wb1,application/wch,application/wcm,application/ad,application/adp");
Severity: normal → S3
Status: UNCONFIRMED → RESOLVED
Closed: 7 days ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.