Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1446545 - (void 0) is not a function
Summary: (void 0) is not a function
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: elinks
Version: 26
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Kamil Dudka
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-04-28 10:32 UTC by Vadim Raskhozhev
Modified: 2017-05-10 08:52 UTC (History)
2 users (show)

Fixed In Version: elinks-0.12-0.52.pre6.fc27 elinks-0.12-0.52.pre6.fc26
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-05-06 17:11:29 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
An error message (17.38 KB, image/png)
2017-04-28 10:32 UTC, Vadim Raskhozhev
no flags Details

Description Vadim Raskhozhev 2017-04-28 10:32:11 UTC
Created attachment 1274863 [details]
An error message

ELinks produces several error messages in a row stating "(void 0) is not a function" on right after opening any URL or clicking any link (see screenshot attached). Turning ECMAScript itself off or adding 'set ecmascript.error_reporting = 0' into ~/.elinks/elinks.conf changes nothing.

Version-Release number of selected component (if applicable): elinks-0.12-0.51.pre6.fc26.x86_64, js-1.8.5-27.fc26.x86_64

How reproducible: always

Steps to Reproduce:
elinks http:/fedoraproject.org
or, say, elinks /etc/hosts
or elinks whateveryouwant

Actual results: the abovementioned error

Expected results: the actual contents

Comment 1 Kamil Dudka 2017-04-28 10:54:10 UTC
Confirmed.  I can reproduce it on f26 and rawhide but not on f25.  ELinks code has not changed since f23.  So I suspect this is caused by a change elsewhere.

A possible solution would be to disable JavaScript completely.  We have been debugging bugs like this recently despite most ELinks' users do not use the feature.  To be honest, I am not aware of any web site where one could take an advantage of the JavaScript support in ELinks.

Let me poll fedora-devel to see whether we still have any ELinks/JavaScript users out there before I try to debug it further.

Comment 2 Kamil Dudka 2017-04-28 11:29:54 UTC
(In reply to Kamil Dudka from comment #1)
> Let me poll fedora-devel to see whether we still have any ELinks/JavaScript
> users out there before I try to debug it further.

https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/BPY7AJSTQQDICEQWGUBVIAZW6LMN3F3J/

Comment 3 Vadim Raskhozhev 2017-04-28 11:42:59 UTC
> https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/BPY7AJSTQQDICEQWGUBVIAZW6LMN3F3J/

Replying here since I'm not subscribed to the list yet: actually, I (occasionally) use JS in ELinks and would be happy to help with testing it. Currently there's a bunch of mozjs* packages in Fedora and I'm trying to build/run elinks against those. Will report in here as soon as I get some actual result.

Comment 4 Kamil Dudka 2017-05-02 16:39:45 UTC
This bug is caused by the following patch:

https://src.fedoraproject.org/cgit/rpms/js.git/tree/mozjs1.8.5-tag.patch?id=a2f53826

Just rebuilding elinks seems to fix it.

Comment 6 Fedora Update System 2017-05-02 16:56:41 UTC
elinks-0.12-0.52.pre6.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-217a6778d5

Comment 7 Vadim Raskhozhev 2017-05-03 17:15:43 UTC
https://kojipkgs.fedoraproject.org//packages/elinks/0.12/0.52.pre6.fc26/x86_64/elinks-0.12-0.52.pre6.fc26.x86_64.rpm semi-works for me: I was able to log in GMail and read emails but got a crash while opening https://github.com/valr/awf/blob/master/Makefile.am and https://mail.ya.ru with JS enabled.

Comment 8 Fedora Update System 2017-05-04 22:05:16 UTC
elinks-0.12-0.52.pre6.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-217a6778d5

Comment 9 Fedora Update System 2017-05-06 17:11:29 UTC
elinks-0.12-0.52.pre6.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.

Comment 10 Kamil Dudka 2017-05-10 08:52:50 UTC
(In reply to Vadim Raskhozhev from comment #7)
> https://kojipkgs.fedoraproject.org//packages/elinks/0.12/0.52.pre6.fc26/
> x86_64/elinks-0.12-0.52.pre6.fc26.x86_64.rpm semi-works for me: I was able
> to log in GMail and read emails

I am also able to read e-mails in GMail but it redirected me to the basic HTML version because my browser was not supported.

> but got a crash while opening
> https://github.com/valr/awf/blob/master/Makefile.am and https://mail.ya.ru
> with JS enabled.

Not that I have any account there, but those pages load fine in my ELinks.


Note You need to log in before you can comment on or make changes to this bug.