--- !ditz.rubyforge.org,2008-03-06/issue
title: with some bugs (many) scripts seems to be freezing (running endlessly) on bugzilla.mozilla.org
desc: |-
Skript: file:///home/matej/projekty/jetpack-sdk/packages/jetpack-core/lib/securable-module.js
-> resource://jid0-uxmbewgoltuuuqrhkhrr7hw3iqy-bugzilla-triage-lib/bzpage.js:700
but I am not sure how reliable it is ... there doesn't seem to be anything crazy going on there.
type: :bugfix
component: bugzilla-triage
release:
reporter: Matej Cepl <mcepl@redhat.com>
status: :unstarted
disposition:
creation_time: 2011-01-31 19:36:13.148555 Z
references: []
id: 9c9185a90d9e4bb21d51571e969b8fc126f27376
log_events:
- - 2011-01-31 19:36:14.120426 Z
- Matej Cepl <mcepl@redhat.com>
- created
- ""
- - 2011-01-31 19:45:39.701764 Z
- Matej Cepl <mcepl@redhat.com>
- commented
- |-
This is somewhere around the line 700 in that time.
BZPage.prototype.selectOptionByLabel = function selectOptionByLabel(id, label, fireEvent) {
if (!fireEvent) {
fireEvent = true;
}
var sel = this.doc.getElementById(id);
var labelRE = new RegExp(label.trim());
var ourOption = Array.filter(sel.options, function (op) {
return op.textContent.trim() === label;
}, this);
if (ourOption[0]) {
sel.value = ourOption[0].value;
}
if (fireEvent) {
var intEvent = this.doc.createEvent("HTMLEvents");
intEvent.initEvent("change", true, true);
sel.dispatchEvent(intEvent);
}
};
>>>>>>HERE IS THE LINE 700!!!!
/**
* Send mouse click to the specified element
*
* @param String ID of the element to send mouseclick to
* @return None
*/
BZPage.prototype.clickMouse = function clickMouse (targetID) {
var localEvent = this.doc.createEvent("MouseEvents");
localEvent.initMouseEvent("click", true, true, this.doc.defaultView, 0, 0,
0, 0, 0, false, false, false, false, 0, null);
this.doc.getElementById(targetID).dispatchEvent(localEvent);
};
trac_id: