~ubuntu-branches/ubuntu/natty/edbrowse/natty

« back to all changes in this revision

Viewing changes to jsloc.c

  • Committer: Bazaar Package Importer
  • Author(s): Kapil Hari Paranjape
  • Date: 2007-05-09 07:33:04 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20070509073304-ywptg9g6iiitsg17
Tags: 3.2.1-1
* New upstream version (3.2.1). Closes: #421451.
  - can fetch and execute a local javascript file
    if required by local html file.
  - provide COPYING and CHANGES files.
* debian/rules:
  - add CHANGES to dh_installchangelogs line.
  - add dh_installman entry to install the man page.
* debian/copyright: updated to include the COPYING file.
* debian/edbrowse.1: added a basic man page.

Show diffs side-by-side

added added

removed removed

Lines of Context:
300
300
    uo = obj;
301
301
    url_initialize(url, false, true);
302
302
    uo_href = cloneString(url);
 
303
    if(uo == jwloc || uo == jdloc) {
 
304
        char *t;
 
305
        unpercentURL(uo_href);
 
306
        t = resolveURL(cw->fileName, uo_href);
 
307
        nzFree(uo_href);
 
308
        uo_href = t;
 
309
    }
303
310
    return isWinLoc();
304
311
}                               /* setter_loc_href */
305
312
 
793
800
        if(!JSVAL_IS_OBJECT(v)) {
794
801
          badobj:
795
802
            JS_ReportError(jcx,
796
 
               "url object is assigned something that I don't understand; I will not be able to fetch the next web page.");
 
803
               "url object is assigned something that I don't understand; I may not be able to fetch the next web page.");
797
804
            return 0;
798
805
        }
799
806
        lo = JSVAL_TO_OBJECT(v);
 
807
        JS_HasProperty(jcx, lo, "actioncrash", &found);
 
808
        if(found)
 
809
            return 0;
800
810
        if(!JS_InstanceOf(jcx, lo, &url_class, emptyArgs))
801
811
            goto badobj;
802
812
        JS_GetProperty(jcx, lo, "href", &v);