Page MenuHomePhabricator

Bug in user script User:WikiBhasha.MSR/WikiBhasha.js on Wikipedia
Closed, ResolvedPublic

Description

Author: anil_ande

Description:
It seems that there's a a bug in User:WikiBhasha.MSR/WikiBhasha.js. In the last line:

addOnloadHook(setTimeout(wbGadget.wbLoadGadget,1000));

a function should be passed to addOnloadHook but a return value of setTimeout was getting executed which is effectively a number. So in result it gives an error in runOnloadHook (wikibits.js)


Version: unspecified
Severity: major

Details

Reference
bz26216

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:14 PM
bzimport set Reference to bz26216.

anil_ande wrote:

we have addressed the bug and fixed the user script.
the last line of the user script has been replaced with the following statement.

addOnloadHook(function () { setTimeout(wbGadget.wbLoadGadget, 1000); });