Menu

#78 JavaScript error in IE for Yahoo news pa

3.0.x
closed
filters (152)
5
2002-10-07
2002-09-13
No

This following page

http://news.yahoo.com/news?tmpl=story2&cid=540&ncid=736&e=1&u=/ap/20020912/ap_on_re_mi_ea/israel_palestinians

generates Javascript error when showing it using with
3.0 stock configuration with IE 6.x. The error as follows:

Line: 2
Char: 7
Error: Invalid Character
Code: 0

and the page itself shows as:

<html>
<head>
<title>

Discussion

  • Andreas Oesterhelt

    Logged In: YES
    user_id=78811

    Have an idea. Can you please try

    {-handle-as-image}
    /.*\.js

    as the last section of user.action?

     
  • Gábor Lipták

    Gábor Lipták - 2002-09-28

    Logged In: YES
    user_id=79346

    Thanks for the suggestion, but it did not help. It seems
    that it is not the js file which gets processed wrong, but
    an actual GIF loaded by it?

     
  • Andreas Oesterhelt

    Logged In: YES
    user_id=78811

    Unless you configured it otherwise, Privoxy will
    block the javascript at the given URL and replace it
    with an image. To verify, look at

    http://config.privoxy.org/show-url-info?url=http%3A//us.a1.yimg.com/us.yimg.com/a/1-/jscodes/072002/fs_pb_fitted_072002b.js

    You should see +image and +set-image-blocker{pattern} under
    "Final results".

    So the contents of the original JS, including any contained
    image URLs, does not matter. What upsets your browser
    is most likely that it expects a JS but gets a GIF (or HTML, if
    you followed my previous suggestion) instead.

    So, as a test, try:

    {+handle-as-image
    +set-image-blocker{http://www.privoxy.org/nop.js}}
    /.*\.js

    Which also shows very nicely why FR 538239makes sense.

    Alternatively, you could unblock all JSs from yimg.com:

    {-block}
    .yimg.com/.*\.js

     
  • Andreas Oesterhelt

    Logged In: YES
    user_id=78811

    Have now verified that both approaches solve the
    problem. Rising prio on FR 538239 which will
    allow supplying the proper substitute without
    abusing set-image-blocker and without storing
    it somewhere on the web.

     
  • Andreas Oesterhelt

    • assigned_to: nobody --> oes
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB