Closed
Bug 883592
Opened 11 years ago
Closed 11 years ago
nsScriptLoader::EvaluateScript sometimes tries to evaluate scripts for documents with no inner windows
Categories
(Core :: General, defect)
Core
General
Tracking
()
RESOLVED
FIXED
mozilla25
People
(Reporter: Gavin, Assigned: Gavin)
References
Details
(Whiteboard: [qa-])
Attachments
(1 file, 1 obsolete file)
2.60 KB,
patch
|
sicking
:
review+
|
Details | Diff | Splinter Review |
This is the cause of bug 861700. See comments there for the debugging that led to filing this. I'm filing this separately to be able to work without the tbplbot spam.
Assignee | ||
Comment 1•11 years ago
|
||
Per bug 861700 comment 393, this is one way to avoid the problem. Maybe this check could be at a different level (haven't really studied he path to ProcessRequest()), but this solves the orange according to try. Null push of current trunk: https://tbpl.mozilla.org/?tree=Try&rev=7492ebe933b7 * bug 861700 occurred immediately Push with this patch: https://tbpl.mozilla.org/?tree=Try&rev=a43e3930f86e * no failures in 20+ runs, it usually takes much less than that to trigger it, per previous try pushes: - https://tbpl.mozilla.org/?tree=Try&rev=3cda13682a35 - https://tbpl.mozilla.org/?tree=Try&rev=5e9cfc0e9f95 - https://tbpl.mozilla.org/?tree=Try&rev=0a5e0cd2c54a
Assignee | ||
Updated•11 years ago
|
Attachment #763194 -
Flags: review? → review?(bzbarsky)
Comment 2•11 years ago
|
||
Comment on attachment 763194 [details] [diff] [review] patch Jonas, is skipping the ScriptAvailable/ScriptEvaluated calls here OK? Especially for XSLT?
Attachment #763194 -
Flags: review?(bzbarsky) → review?(jonas)
Assignee | ||
Comment 3•11 years ago
|
||
I spoke to sicking on IRC, he wasn't confident that it's OK to skip the FireScriptAvailable/FireScriptEvaluated notifications in this case. So I'm going to prepare a more conservative patch that only skips the same stuff we'd skip if the beforescriptexecute event was preventDefault()ed.
Assignee | ||
Comment 4•11 years ago
|
||
Attachment #763194 -
Attachment is obsolete: true
Attachment #763194 -
Flags: review?(jonas)
Attachment #765621 -
Flags: review?(jonas)
Attachment #765621 -
Flags: review?(jonas) → review+
Assignee | ||
Comment 5•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/19d5caf61217
Target Milestone: --- → mozilla25
Comment 6•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/19d5caf61217
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Comment 7•11 years ago
|
||
Is this something that would be worth uplifting to 24?
Assignee | ||
Comment 8•11 years ago
|
||
I don't see any reason to; short of causing some errors to throw off tests, there aren't really any negative effects here. Are you asking because bug 861700 is annoying?
Flags: needinfo?(gavin.sharp)
Comment 9•11 years ago
|
||
I uplifted the fix for bug 861700 et al to beta this morning. Was just going through the list and wondered if this had any other usefulness.
Comment 10•11 years ago
|
||
Assuming no QA needed here. Please remove [qa-] from the whiteboard and add the verifyme keyword if this needs QA.
Whiteboard: [qa-]
Depends on: 916788
Comment 11•11 years ago
|
||
(In reply to Ryan VanderMeulen [:RyanVM UTC-4] from comment #7) > Is this something that would be worth uplifting to 24? (In reply to :Gavin Sharp (use gavin@gavinsharp.com for email) from comment #8) > I don't see any reason to Seems like we should. In rare cases it can cause random crashes and there is no risk taking it...
Assignee | ||
Comment 12•11 years ago
|
||
Which random crashes? As far as I know the negative effects of this bug was limited to not-so-useful error events.
Comment 13•11 years ago
|
||
David, do you think that the crash that you described in bug 916788 might happen without your patch queue? As in... do you think it worth to uplift this patch to avoid random crashes like the one you ran into?
Flags: needinfo?(dbaron)
Assignee | ||
Comment 14•11 years ago
|
||
The crash in bug 916788 was the same issue as bug 897399 (a regression from this bug's patch), caused by async script loading (bug 906371), and fixed in bug 915625. The patch in this bug doesn't fix any crashes, just wasted work.
Comment 15•11 years ago
|
||
Indeed, I mixed up two bugs hence my confusion, sorry for wasting your time.
Flags: needinfo?(dbaron)
You need to log in
before you can comment on or make changes to this bug.
Description
•