diff options
Diffstat (limited to 'bugs/issue-9c9185a90d9e4bb21d51571e969b8fc126f27376.yaml')
-rw-r--r-- | bugs/issue-9c9185a90d9e4bb21d51571e969b8fc126f27376.yaml | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/bugs/issue-9c9185a90d9e4bb21d51571e969b8fc126f27376.yaml b/bugs/issue-9c9185a90d9e4bb21d51571e969b8fc126f27376.yaml new file mode 100644 index 0000000..edfc8fb --- /dev/null +++ b/bugs/issue-9c9185a90d9e4bb21d51571e969b8fc126f27376.yaml @@ -0,0 +1,62 @@ +--- !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: |