2024-11-24 14:35 UTC

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0002429NetSurfJavascriptpublic2016-03-07 13:37
ReporterChris Young 
Assigned To 
SeverityminorReproducibilityalways 
StatusacknowledgedResolutionopen 
PlatformAmigaOSAmigaOSOS Version4.1
Product Version3.4 
Target VersionFixed in Version 
Summary0002429: Button onclick does not run
DescriptionA button with the following code does not execute:
<input type="button" onclick="self.location.href='comment_new.php?com_itemid=2359&com_order=0&com_mode=flat'" class="formButton" value="Publish Comment" />
The log is in additional information.
Steps To ReproduceVisit http://www.amigans.net/modules/news/article.php?storyid=2359 and click on the first "Publish Comment" button (next to "Refresh", not the one right at the bottom of the page)
Additional Information(215.071750) render/html.c:89 fire_dom_event: Dispatching 'click' against 0x4ba7b7a8
(217.888851) render/html.c:89 fire_dom_event: Dispatching 'click' against 0x513495d8
(217.895597) javascript/duktape/dukky.c:815 dukky_generic_event_handler: WOOP WOOP, An event:
(217.903153) javascript/duktape/dukky.c:822 dukky_generic_event_handler: Event's name is click
(217.912093) javascript/duktape/dukky.c:832 dukky_generic_event_handler: Event phase is: at-target (2)
(217.920908) javascript/duktape/dukky.c:85 dukky_create_object: name=NETSURF_DUKTAPE_PROTOTYPE_EVENT nargs=1
(217.928683) javascript/duktape/dukky.c:77 dukky_populate_object: Call the init function
(217.937817) javascript/duktape/dukky.c:106 dukky_create_object: created
(217.945051) javascript/duktape/dukky.c:865 dukky_generic_event_handler: OH NOES! An error running a callback. Meh.
(217.953193) javascript/duktape/dukky.c:876 dukky_generic_event_handler: Uncaught error in JS: TypeError: cannot read property 'location' of undefined
(217.967463) javascript/duktape/dukky.c:878 dukky_generic_event_handler: was at: internal raw uncompiled handler line 1
(217.975447) javascript/duktape/dukky.c:879 dukky_generic_event_handler: Stack trace: TypeError: cannot read property 'location' of undefined
    duk_hobject_props.c:2259
    anon internal raw uncompiled handler:1 preventsyield
TagsNo tags attached.
Fixed in CI build #
Reported in CI build #3421
URL of problem pagehttp://www.amigans.net/modules/news/article.php?storyid=2359
Attached Files

-Relationships
+Relationships

-Notes
Dave Higton

~0001330

Dave Higton (developer)

Can you check the URL, please, Chris? I can't find "Refresh" on the page, nor "Publish comment". Same result with Firefox on Ubuntu.
Chris Young

~0001333

Chris Young (developer)

Hmm, appears that you need to be logged in to see the button. Copying and pasting the input button from my description into a new page should enable the problem to be seen.

It looks like it doesn't like "self.". The code does work in Firefox.
+Notes

-Issue History
Date Modified Username Field Change
2016-02-21 15:41 Chris Young New Issue
2016-02-21 20:31 Dave Higton Note Added: 0001330
2016-02-21 21:10 Chris Young Note Added: 0001333
2016-03-07 13:37 Vincent Sanders Status new => acknowledged
2016-03-07 13:37 Vincent Sanders Description Updated View Revisions
2016-03-07 13:37 Vincent Sanders Additional Information Updated View Revisions
+Issue History