Closed
Bug 295124
Opened 19 years ago
Closed 19 years ago
[FIXr]dom.max_script_run_time kicks in to early for xbl content
Categories
(Core :: XBL, defect, P1)
Core
XBL
Tracking
()
RESOLVED
FIXED
mozilla1.8beta3
People
(Reporter: bernd_mozilla, Assigned: bzbarsky)
Details
Attachments
(6 files)
1.11 KB,
text/xml
|
Details | |
1.51 KB,
text/xml
|
Details | |
155 bytes,
text/css
|
Details | |
391 bytes,
text/xml
|
Details | |
42.61 KB,
image/png
|
Details | |
1.46 KB,
patch
|
jst
:
review+
jst
:
superreview+
asa
:
approval1.8b3+
|
Details | Diff | Splinter Review |
I will try to attach svg xbl testcase ( so you need either a svg enabled build or a ff nightly). When the same script is used from a xml file it does not show the warning.
Attachment #184250 -
Attachment mime type: text/xml → text/text
Attachment #184250 -
Attachment mime type: text/text → text/css
Attachment #184250 -
Attachment mime type: text/css → text/xml
running the sample from a local disk makes the warning appear much earlier, so that there will be confusion whether 5 sec elapsed or not
Assignee | ||
Comment 6•19 years ago
|
||
bernd, I can't reproduce this in my Mozilla build (from a week or two ago) or my Firefox build (from this morning) -- the SVG shows properly, I get no dialog at all.
I get this with my debug build (from yesterday) and a recent ff nightly. This happens usually at least on the second load.
Assignee | ||
Comment 8•19 years ago
|
||
I can definitely see the problem on reload. The issue is that XBL constructors/destructors don't call ScriptEvaluated(), so they never reset the mBranchCallbackTime on the nsJSContext to zero when they're done. They also never reset mBranchCallbackCount. So on reload in this case we put up the alert at 5 seconds minus the time the first load took.... The fix is to just use the nsCxPusher helper to manage the JSContext stack for us and handle calling ScriptEvaluated as needed.
Assignee: general → bzbarsky
Status: NEW → ASSIGNED
Attachment #184903 -
Flags: superreview?(jst)
Attachment #184903 -
Flags: review?(jst)
Assignee | ||
Updated•19 years ago
|
OS: Windows XP → All
Priority: -- → P1
Hardware: PC → All
Summary: dom.max_script_run_time kicks in to early for xbl content → [FIX]dom.max_script_run_time kicks in to early for xbl content
Target Milestone: --- → mozilla1.8beta3
Comment 9•19 years ago
|
||
Comment on attachment 184903 [details] [diff] [review] Proposed fix r+sr=jst
Attachment #184903 -
Flags: superreview?(jst)
Attachment #184903 -
Flags: superreview+
Attachment #184903 -
Flags: review?(jst)
Attachment #184903 -
Flags: review+
Assignee | ||
Comment 10•19 years ago
|
||
Comment on attachment 184903 [details] [diff] [review] Proposed fix Requesting 1.8b3 approval. This makes us not put up the "slow script" alert incorrectly when XBL is involved.
Attachment #184903 -
Flags: approval1.8b3?
Assignee | ||
Updated•19 years ago
|
Summary: [FIX]dom.max_script_run_time kicks in to early for xbl content → [FIXr]dom.max_script_run_time kicks in to early for xbl content
Updated•19 years ago
|
Attachment #184903 -
Flags: approval1.8b3? → approval1.8b3+
Assignee | ||
Comment 11•19 years ago
|
||
Fixed.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•