Closed Bug 308835 Opened 19 years ago Closed 19 years ago

calendar magic style sheet not being populated

Categories

(Calendar :: Lightning Only, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dmosedale, Assigned: dmosedale)

Details

Attachments

(2 files)

For some time, I've been seeing complaints about the calendar pref style sheet
not being found.  Turns out this was a race: the code that does the setup was
sometimes running before the stylesheet was available to the DOM.  Solved by
creating a general load listener, consolidating a bit of other code into that,
and not doing the stylesheet setup until then.
Attached patch use load listener, v1 β€” β€” Splinter Review
Attachment #196337 - Flags: first-review?(shaver)
Comment on attachment 196337 [details] [diff] [review]
use load listener, v1

Bah.  I'm seeing the race again.  So apparently I just thought this patch fixed
it, when in fact I coincidentally won the race a bunch of times in a row while
testing.
Attachment #196337 - Flags: first-review?(shaver)
The race seems to be of a different nature than I thought.  According to DOMI,
on runs when I see that error message, it's not that the stylesheet shows up
late; in fact, it's not showing up at all.
Attached patch get chrome stylesheet β€” β€” Splinter Review
I'm pretty sure this is the solution we agreed on in IRC.
Attachment #197132 - Flags: first-review?(shaver)
Comment on attachment 197132 [details] [diff] [review]
get chrome stylesheet

Hrm.  I think I'd prefer to either do a full-URL match, or just give that
stylesheet the title we were using before.

Though, honestly, we could just grab the last stylesheet and use it, and lose
only some debugging juice.

r=shaver with whatever of those paths you take.  Wish I knew why we had that
problem, though. =/
Attachment #197132 - Flags: first-review?(shaver) → first-review+
patch checked in
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
QA Contact: shaver → lightning
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: