Check For Updates Debugging

Discussions for the Apple Mac OS builds of Pale Moon

Moderator: dbsoft

Forum rules
Important note:
The old Mac OS versions of Pale Moon were provided by various people and not official or in any way organized. Please make sure you check the date of topic threads to know if the topic is current or relevant! We are using this board for both old discussions and new development of Pale Moon on Mac.

Any specific bugs you find that don't have their own topic yet: please make a new topic; one bug per topic please to keep things organized.
HarmonicResonance

Check For Updates Debugging

Unread post by HarmonicResonance » 2017-09-30, 18:41

Ok, I've looked into this and this is what I've found.

Code: Select all

Timestamp: 9/30/17, 2:33:08 PM
Error: formatURLPref: Couldn't get pref: app.update.url.manual
Source File: file:///xxxxx/obj-x86_64-apple-darwin13.4.0/dist/NewMoon.app/Contents/Resources/components/nsURLFormatter.js
Line: 135
That brings me to nsURLFormatter.js:

Code: Select all

  formatURLPref: function uf_formatURLPref(aPref) {
    var format = null;
    var PS = Cc['@mozilla.org/preferences-service;1'].
             getService(Ci.nsIPrefBranch);

    try {
      format = PS.getComplexValue(aPref, Ci.nsISupportsString).data;
    } catch(ex) {
      Cu.reportError("formatURLPref: Couldn't get pref: " + aPref);
      return "about:blank";
    }
       if (!PS.prefHasUserValue(aPref) &&
        /^(data:text\/plain,.+=.+|chrome:\/\/.+\/locale\/.+\.properties)$/.test(format)) {
      // This looks as if it might be a localised preference
      try {
        format = PS.getComplexValue(aPref, Ci.nsIPrefLocalizedString).data;
      } catch(ex) {}
    }

    return this.formatURL(format);
  }
};
    
Why is this calling mozilla.org? It works on official distros, so I wonder if something is set locally -- if so, it's missing for the Mac.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35474
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Check For Updates Debugging

Unread post by Moonchild » 2017-09-30, 18:53

It's not calling mozilla.org -- it's just indicating that the pref is missing.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

HarmonicResonance

Re: Check For Updates Debugging

Unread post by HarmonicResonance » 2017-10-01, 17:50

Got it. Diving into the preference structure now. So far I've created the preference manually (through about:config) -- no difference in behavior. Work is ongoing.

Locked