Package: libjs-extjs-doc
Version: 3.0.3+dfsg0-1
Severity: important

Hello,

I'm trying to learn more about ExtJS, so I installed this package.

Pointing my browser to file:///usr/share/doc/libjs-extjs-doc/index.html, showed
only a "Loading" splash image.

Opening up a console in chromium, revealed that the page is looking for needed
JS/CSS files in the wrong places:

Failed to load resource file:///usr/share/doc/resources/css/ext-all.css
Failed to load resource file:///usr/share/doc/adapter/ext/ext-base.js
Failed to load resource file:///usr/share/doc/ext-all.js
Uncaught ReferenceError: Ext is not defined TabCloseMenu.js:2
Failed to load resource file:///usr/share/doc/libjs-extjs-doc/resources/docs.js
Failed to load resource file:///usr/share/doc/libjs-extjs-doc/output/tree.js

In particular:

- all "../" referenced in the code should be substituted by
  "/usr/share/javascript/extjs/" (this adds a runtime dependency from
  libjs-extjs-doc to libjs-extjs);
- docs.js and tree.js are gzipped inside the .deb; they should be kept
  uncompressed;
- even fixing the two above, chromium still complains:

XMLHttpRequest cannot load file:///usr/share/doc/libjs-extjs-doc/welcome.html.
Origin null is not allowed by Access-Control-Allow-Origin.

The same when clicking _any_ of the links shown in index.html.

If you want, you can put your package under Debian JavaScript Team's umbrella :)

Thanks,
David

-- 
 . ''`.   Debian developer | http://wiki.debian.org/DavidPaleino
 : :'  : Linuxer #334216 --|-- http://www.hanskalabs.net/
 `. `'`  GPG: 1392B174 ----|---- http://deb.li/dapal
   `-   2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174

Attachment: signature.asc
Description: PGP signature

Reply via email to