Post Reply 
Strange popup from Proxo
May. 20, 2009, 12:16 PM (This post was last modified: May. 20, 2009 12:19 PM by sidki3003.)
Post: #2
RE: Strange popup from Proxo
LOL, that is still Paul Rupe's wording.

Some pages present you with never ending (e.g. because looping) dialog boxes. These boxes - prompt/confirm/alert - are modal, making the browser inaccessible while active. Now, Proxomitron is intercepting after the tenth such box.

However, if you chose "allow boxes", that is "Cancel", the next interception should wait for further ten boxes, instead of popping in after each one. I have changed that. Also, the Proxomitron message is more descriptive now, see screencap:
.png  dialog.png (Size: 7.68 KB / Downloads: 836)

You can also turn off that behavior entirely, by deactivating the "Restrict Message Boxes" webfilter.


In case someone wants to have it changed right now, here is the modified respective function:
Code:
// Returns false if alert/confirm/prompt have been called a bunch of times
  // already.  Used to stop runaway scripts abusing these popup functions.
  prxO.oInt.inBoxCheck = function () {
    var ceci = arguments.callee;
    if (!prxO.oAss.asLastClick || ceci.count == 999) return false;
    if (ceci.count == undefined) ceci.count = prxO.oSet._catchBoxes;
    if (--ceci.count >= 0) return true;
    var msg = "\t*** PROXOMITRON ALERT ***\nThis page has already launched " +
      prxO.oSet._catchBoxes + " dialog boxes.\n" +
      "Block further ones?\t\t-> Press OK\n" +
      "Or allow another " + prxO.oSet._catchBoxes + "?\t-> Press Cancel";
    if (PrxRLconfirm(msg)) {
      ceci.count = 999;
      throw "Prox: JS killed!";
    }
    ceci.count = prxO.oSet._catchBoxes;
    return true;
  }
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
Strange popup from Proxo - Mele20 - May. 20, 2009, 09:25 AM
RE: Strange popup from Proxo - sidki3003 - May. 20, 2009 12:16 PM
RE: Strange popup from Proxo - Mele20 - May. 21, 2009, 07:39 AM

Forum Jump: