aboutsummaryrefslogtreecommitdiffstats
path: root/bugs/issue-9c9185a90d9e4bb21d51571e969b8fc126f27376.yaml
blob: edfc8fb27485e10fa40685a47048f3067c556272 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
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: