Page 1 of 1

[bug] Clear History Dialog

Posted: 2019-10-02, 06:36
by fatboy
Good Day Community,

I have come across this bug quite a few times, and it happens at random, and happens when I click on the show history button and select clear recent history. See below. This happens mostly on Windows and occasionally on Linux.
Basilisk_Clear_History.JPG

Clear history window sometimes opens incorrectly

Posted: 2019-10-02, 19:21
by Nixal
This is on Pale Moon 28.7.1 32-bit but I have experienced it on several prior versions, on Windows 7 Professional 64-bit.

Sometimes when trying to clear history the window opens like this. It opens correctly most of the time, but occasionally does this. It's a minor issue, as all I have to do is simply close the window and try to open it again, and it will open correctly. Weird behavior anyway. Maybe it's because of the theme I'm using.
Clear history.jpg

Re: Clear history window sometimes opens incorrectly

Posted: 2019-10-02, 19:55
by Nigaikaze
Nixal wrote:
2019-10-02, 19:21
Maybe it's because of the theme I'm using.
Which is ... ?

Re: [bug] Clear History Dialog

Posted: 2019-10-02, 20:59
by coffeebreak
Someone just reported a similar problem with Pale Moon.

What happens in safe mode?
What theme do you use when this occurs, and does the issue persist if it's disabled?

Re: [bug] Clear History Dialog

Posted: 2019-10-03, 06:38
by fatboy
Using the default theme in Basilisk. This just happened again.

I'll launch safe mode later and see if the issue persists. This bug generally appears randomly, so far as I can tell.

Re: Clear history window sometimes opens incorrectly

Posted: 2019-10-03, 11:38
by Moonchild
Also check the browser/error console when this happens.

Re: [bug] Clear History Dialog

Posted: 2019-10-03, 11:40
by Moonchild
Check the browser's error console when this occurs.

Re: Clear history window sometimes opens incorrectly

Posted: 2019-10-09, 11:00
by loxodont
Happened a very few times for me, mostly on my old Linux/Win7 notebook and just after launching the browser. I couldn't check it in the error console yet, as it actually didn't happen again. My guess is rather a micro hang, as it seemed to occur in a rather "busy state" of the OS or browser getting other things done. On that slow notebook it takes, for example, a few milliseconds to load the custom theme created with Theme Maker, so standard GUI elements sometimes pop up in a row; may be this affects opening the full Clear History window as well.
Anyway, it opened always correctly on 2nd try, like OP said.

Re: Clear history window sometimes opens incorrectly

Posted: 2019-10-10, 06:36
by fatboy
I also reported this issue

viewtopic.php?f=61&t=23045

Re: Clear history window sometimes opens incorrectly

Posted: 2019-10-10, 11:43
by loxodont
Luckily it now happened on my big machine (Win7-x32, Pale Moon 28.7.1) so I could take a look in the error console.
I don't understand it, but this is what it said.
pm2871-clearhistory-snap7988-10-10-2019 12-30c.jpg
edit: The exact same result was shown in the "All" view - nothing else.

Re: Clear history window sometimes opens incorrectly

Posted: 2019-10-10, 11:47
by moonbat
loxodont wrote:
2019-10-10, 11:43
Luckily it now happened on my big machine (Win7-x32, Pale Moon 28.7.1) so I could take a look in the error console.
I don't understand it, but this is what it said.

pm2871-clearhistory-snap7988-10-10-2019 12-30c.jpg
Seems to be from an extension called Listit or List it.

Re: Clear history window sometimes opens incorrectly

Posted: 2019-10-10, 11:57
by loxodont
I use the "List This!"extension, but its icon lives right down in the Status Bar. I could disable it, but this "bug" is so rare, how and when would I know if it's caused by this extension :scratch head:

Re: Clear history window sometimes opens incorrectly

Posted: 2019-10-10, 12:14
by moonbat
I mean, those console messages are to do with List this and not the problem you're facing. Besides, it's a deprecation warning asking the developer to code in a different way, doesn't mean it doesn't work currently.

Re: Clear history window sometimes opens incorrectly

Posted: 2019-10-10, 12:17
by loxodont
OK, thx ... couldn't imagine it has something to do with "List This!" anyway

Re: [bug] Clear History Dialog

Posted: 2019-10-12, 19:08
by fatboy
Experienced this bug on Linux as well.
Screenshot from 2019-10-12 21-05-08.png
Screenshot from 2019-10-12 21-05-34.png

Code: Select all


        Components.utils.reportError("Warning: unrecognized command line flag " + curarg + "\n");
        // To emulate the pre-nsICommandLine behavior, we ignore
        // the argument after an unrecognized flag.
        ++i;
      } else {
        try {
          urilist.push(resolveURIInternal(cmdLine, curarg));
        }
        catch (e) {
          Components.utils.reportError("Error opening URI '" + curarg + "' from the command line: " + e + "\n");
        }
      }
    }

    if (urilist.length) {
      if (cmdLine.state != nsICommandLine.STATE_INITIAL_LAUNCH &&
          urilist.length == 1) {
        // Try to find an existing window and load our URI into the
        // current tab, new tab, or new window as prefs determine.
        try {
          handURIToExistingBrowser(urilist[0], nsIBrowserDOMWindow.OPEN_DEFAULTWINDOW, cmdLine);
          return;
        }
        catch (e) {
        }
      }

      var URLlist = urilist.filter(shouldLoadURI).map(function (u) u.spec);
      if (URLlist.length) {
        openWindow(null, gBrowserContentHandler.chromeURL, "_blank",
                   "chrome,dialog=no,all" + gBrowserContentHandler.getFeatures(cmdLine),
                   URLlist);
      }

    }
    else if (!cmdLine.preventDefault) {
      // Passing defaultArgs, so use NO_EXTERNAL_URIS
      openWindow(null, gBrowserContentHandler.chromeURL, "_blank",
                 "chrome,dialog=no,all" + gBrowserContentHandler.getFeatures(cmdLine),
                 gBrowserContentHandler.defaultArgs, NO_EXTERNAL_URIS);
    }
  },

  helpInfo : "",
};

var components = [nsBrowserContentHandler, nsDefaultCommandLineHandler];
this.NSGetFactory = XPCOMUtils.generateNSGetFactory(components);


Re: [bug] Clear History Dialog

Posted: 2019-10-15, 18:10
by fatboy
Got the same error in Palemoon
Palemoon_Bug.png
palemoon_error_2.png

Re: [bug] Clear History Dialog

Posted: 2019-10-15, 23:51
by Moonchild
Well the console output doesn't show anything directly related at least in the visible part. The error you pointed out is because you're using a wrong command-line option (probably in your shortcut).

I also haven't been able to reproduce it, at all, on my system. I've tried calling up the dialog as quickly as possible after start (since it was said that it was especially a problem on slow hardware) but even that always presented me with the proper and populated dialog. This makes troubleshooting hard to do.

Re: Clear history window sometimes opens incorrectly

Posted: 2019-10-15, 23:56
by Moonchild
Merged both threads here since it's clearly about one and the same issue.

Re: Clear history window sometimes opens incorrectly

Posted: 2019-10-16, 10:07
by fatboy
U get this error if I use the keybinding and also the show your history icon. On both Palemoon and Basilisk, on Linux and Windows.
Could it be that an addon is inducing this error? One that is suppose to clear history? nMatrix or Cookies Autodelete?

Re: Clear history window sometimes opens incorrectly

Posted: 2019-10-16, 10:25
by Moonchild
fatboy wrote:
2019-10-16, 10:07
U get this error if I use the keybinding and also the show your history icon. On both Palemoon and Basilisk, on Linux and Windows.
Could it be that an addon is inducing this error? One that is suppose to clear history? nMatrix or Cookies Autodelete?
I've been using the keybind, Can't reproduce.
And it's quite possible an add-on is interfering, yes. A dialog coming up blank like that is usually because there are definitions mission for the XUL (e.g. strings/labels). If something injects itself there, and its initialization of strings is too slow or lazy-loaded, then it can cause an issue making the XUL invalid and not rendering. That would also be the kind of situation where it would come up just fine a second time.