Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pushlog feature for all branches (#51) #197

Closed
wants to merge 13 commits into from
2 changes: 0 additions & 2 deletions extension/chrome/content/browser.js
Expand Up @@ -4,8 +4,6 @@

var nightlyApp = {

repository: ['mozilla-central','mozilla-aurora'],

storedTitle: document.documentElement.getAttribute("titlemodifier"),

get defaultTitle() {
Expand Down
2 changes: 0 additions & 2 deletions extension/chrome/content/messenger.js
Expand Up @@ -4,8 +4,6 @@

var nightlyApp = {

repository: ['comm-central','comm-aurora'],

savedTabmailSetDocumentTitle: null,
tabmailSetDocumentTitle: null,

Expand Down
18 changes: 2 additions & 16 deletions extension/chrome/content/nightly.js
Expand Up @@ -57,18 +57,6 @@ getString: function(name, format) {

preferences: null,

isTrunk: function() {
let isNightlyRepo = false;

for each (var repo in nightlyApp.repository) {
isNightlyRepo = isNightlyRepo || nightly.getRepo().indexOf(repo) != -1;
}

return isNightlyRepo
&& (nightly.variables.platformversion.indexOf("pre") != -1 ||
nightly.variables.platformversion.indexOf(".0a") != -1);
},

/**
* A helper function for nsIPromptService.confirmEx().
* Popping up an alert("Hello!") is as simple as nightly.showConfirmEx({text: "Hello!"});
Expand Down Expand Up @@ -131,7 +119,7 @@ init: function() {

var changeset = nightly.getChangeset();
var currChangeset = nightly.preferences.getCharPref("currChangeset");
if (nightly.isTrunk() && (!currChangeset || changeset != currChangeset)) {
if (!currChangeset || changeset != currChangeset) {
// keep track of previous nightly's changeset for pushlog
nightly.preferences.setCharPref("prevChangeset", currChangeset);
nightly.preferences.setCharPref("currChangeset", changeset);
Expand Down Expand Up @@ -292,10 +280,8 @@ menuPopup: function(event, menupopup) {
node.hidden = !attext;
if (node.id.indexOf("-copy") != -1)
node.hidden = attext;
if (node.id == 'nightly-pushlog-lasttocurrent') {
node.hidden = !nightly.isTrunk();
if (node.id == 'nightly-pushlog-lasttocurrent')
node.disabled = !nightly.preferences.getCharPref("prevChangeset");
}
if (node.id == 'nightly-crashme')
node.hidden = !ctypes.libraryName;
if (node.id == 'nightly-compatibility')
Expand Down
2 changes: 0 additions & 2 deletions extension/chrome/content/suite.js
Expand Up @@ -4,8 +4,6 @@

var nightlyApp = {

repository: ['comm-central','comm-aurora'],

_oldUpdateTitlebar: null,
debugQATitleModifierWorkaround: null,

Expand Down