Skip to content

Commit

Permalink
1.0
Browse files Browse the repository at this point in the history
RELEASE
bootstrap.js
-commented out console stuff
install.rdf
-set min version of ff
-up revved addon to 1.0
  • Loading branch information
Noitidart committed May 14, 2014
1 parent 23ecc72 commit 780d400
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
22 changes: 11 additions & 11 deletions bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var cssUri;

Cu.import('resource://gre/modules/Services.jsm');
Cu.import('resource:///modules/CustomizableUI.jsm');
Cu.import('resource://gre/modules/devtools/Console.jsm');
//Cu.import('resource://gre/modules/devtools/Console.jsm');
Cu.import('resource://gre/modules/XPCOMUtils.jsm');
XPCOMUtils.defineLazyGetter(myServices, 'sss', function(){ return Cc['@mozilla.org/content/style-sheet-service;1'].getService(Ci.nsIStyleSheetService) });

Expand All @@ -29,7 +29,7 @@ function winWorker(aDOMWindow) {
this.gMutationFunc = function(ms) {
for(let m of ms) {
if(m.attributeName == 'busy') {
console.log('m.attributeName = ', m.attributeName, 'm.oldValue = ', m.oldValue);
//console.log('m.attributeName = ', m.attributeName, 'm.oldValue = ', m.oldValue);
if (m.oldValue == 'true') { //if m.oldValue == null then it did not exist before
this.gThrobber.removeAttribute('loading');
} else {
Expand All @@ -43,17 +43,17 @@ function winWorker(aDOMWindow) {
this.gMutationObserver = new this.DOMWindow.MutationObserver(this.gMutationFunc.bind(this));

if (!this.gBrowser) {
console.error('this window does not have gBrowser');
//console.error('this window does not have gBrowser');
}
if (!this.gThrobber) {
console.error('this window does not have gThrobber');
//console.error('this window does not have gThrobber');
}
if (!this.gBrowser.tabContainer) {
console.warn('this window does not have tabContainer, but just an exception/warning NOT an error');
//console.warn('this window does not have tabContainer, but just an exception/warning NOT an error');
}

this.onTabSelect = function(e) {
console.log('tab seld yaaa ' + new Date().getTime());
//console.log('tab seld yaaa ' + new Date().getTime());
this.gMutationObserver.disconnect();
var tab = e.target;
var throbber = tab.ownerDocument.getAnonymousElementByAttribute(tab, 'class', 'tab-throbber')
Expand Down Expand Up @@ -124,9 +124,9 @@ var windowListener = {
try {
worker.destroy();
} catch(ex) {
console.warn('exception while destroying worker i = ', i, 'ex = ', ex);
//console.warn('exception while destroying worker i = ', i, 'ex = ', ex);
}
console.log('done destorying worker i = ', i);
//console.log('done destorying worker i = ', i);
});
},
//END - DO NOT EDIT HERE
Expand Down Expand Up @@ -176,13 +176,13 @@ function startup(aData, aReason) {
aBaseURI: null
}
cssUri = Services.io.newURI(newURIParam.aURL, newURIParam.aOriginCharset, newURIParam.aBaseURI);
console.log('aURL=', self.path.chrome + 'toolbarbutton.css');
console.log('cssUri=', cssUri);
//console.log('aURL=', self.path.chrome + 'toolbarbutton.css');
//console.log('cssUri=', cssUri);

windowListener.register();

myServices.sss.loadAndRegisterSheet(cssUri, myServices.sss.USER_SHEET); //running this last as i think its syncronus
console.log('here');
//console.log('here');
}

function shutdown(aData, aReason) {
Expand Down
4 changes: 2 additions & 2 deletions install.rdf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#">
<Description about="urn:mozilla:install-manifest">
<em:id>Throbber-Restored@jetpack</em:id>
<em:version>initial</em:version>
<em:version>1.0</em:version>
<em:type>2</em:type>
<em:bootstrap>true</em:bootstrap>
<em:unpack>false</em:unpack>
Expand All @@ -14,7 +14,7 @@
<em:targetApplication>
<Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
<em:minVersion>4.*</em:minVersion>
<em:minVersion>29.0a1</em:minVersion>
<em:maxVersion>29.*</em:maxVersion>
</Description>
</em:targetApplication>
Expand Down

0 comments on commit 780d400

Please sign in to comment.