Permalink
Browse files

disabled permissions level stuff for 1.8.2, as was causing problems f…

…or some users
  • Loading branch information...
1 parent 6189d3e commit 92ea058644ecfd007443a817f8bedeba302afc03 @mackers mackers committed Jun 19, 2012
Showing with 9 additions and 6 deletions.
  1. +2 −2 chrome/content/lib.js
  2. +6 −3 components/facebook.js
  3. +1 −1 install.rdf
View
@@ -750,13 +750,13 @@ var fbLib = {
var prefSvc = Cc['@mozilla.org/preferences-service;1'].getService(Ci.nsIPrefBranch);
var accessToken = prefSvc.getCharPref('extensions.facebook.access_token');
var permissionsLevel = prefSvc.getIntPref('extensions.facebook.permissions.level');
- /*if ((accessToken || permissionsLevel > 0) {
+ /*if (accessToken && permissionsLevel > 0) {
fbLib.openAndReuseOneTabPerURL("https://www.facebook.com/login.php");
fbLib.setAttributeById('facebook-login-status', 'status', 'waiting');
setTimeout(function() { fbLib.setAttributeById('facebook-login-status', 'status', ''); }, 60*1000);
}
else */{
- prefSvc.setIntPref('extensions.facebook.permissions.level', 0);
+ //prefSvc.setIntPref('extensions.facebook.permissions.level', 0);
var askUrl = "https://www.facebook.com/dialog/oauth?client_id=" + fbSvc.wrappedJSObject._appId + "&redirect_uri=http://www.facebook.com/&scope=manage_notifications,user_photos,publish_stream,status_update,friends_status&response_type=token";
gBrowser.selectedTab = gBrowser.addTab(askUrl);
}
View
@@ -64,7 +64,7 @@ const PASSWORD_URL = 'chrome://facebook/';
const TOPIC_SESSION_START= "facebook-session-start-oauth";
const TOPIC_SESSION_END= "facebook-session-end";
-const PERMISSIONS_LEVEL= 2;
+const PERMISSIONS_LEVEL= 3;
Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
@@ -555,13 +555,16 @@ facebookService.prototype = {
return;
}
- if (fbSvc._prefService.getIntPref('extensions.facebook.permissions.level') > 0
+ /*if (fbSvc._prefService.getIntPref('extensions.facebook.permissions.level') > 0
&& fbSvc._prefService.getIntPref('extensions.facebook.permissions.level') < PERMISSIONS_LEVEL)
{
debug("need a permissions upgrade");
+ fbSvc._prefService.setIntref('extensions.facebook.access_token', 0);
+ fbSvc._prefService.setCharPref('extensions.facebook.access_token', '');
fbSvc.sessionEnd();
return;
- }
+ }*/
+
fbSvc._prefService.setIntPref('extensions.facebook.permissions.level', PERMISSIONS_LEVEL);
Components.classes["@mozilla.org/observer-service;1"]
View
@@ -5,7 +5,7 @@
<Description about="urn:mozilla:install-manifest">
<em:id>firefox@facebook.com</em:id>
- <em:version>1.8.1</em:version>
+ <em:version>1.8.2</em:version>
<em:type>2</em:type>
<!-- Front End MetaData -->

1 comment on commit 92ea058

hi i can't Access to my facebook its bloked by IT team how i can enter

Please sign in to comment.