Closed
Bug 1083391
Opened 10 years ago
Closed 10 years ago
TEST-UNEXPECTED-FAIL | jetpack-package/addon-sdk/source/test/test-panel.js.test panel contentScriptFile | Test timed out (after: Panel contentScriptFile with relative path worked)
Categories
(Add-on SDK Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mossop, Assigned: mossop)
References
Details
Attachments
(1 file)
This fails pretty consistently in mochitest-jetpack for some reason
Assignee | ||
Comment 1•10 years ago
|
||
Something about how we load stuff in mochitests makes loading panel content slower. Frequently when onShow is first called the panel frame is still displaying about:blank and this causes problems in tests trying to do things to the frame's content. It strikes me that the show event shouldn't be called until the panel is both visible and its content properly loaded so this pull request makes that change.
Assignee: nobody → dtownsend+bugmail
Attachment #8505813 -
Flags: review?(evold)
Comment 2•10 years ago
|
||
(In reply to Dave Townsend [:mossop] from comment #1)
> Created attachment 8505813 [details] [review]
> pull request
>
> Something about how we load stuff in mochitests makes loading panel content
> slower. Frequently when onShow is first called the panel frame is still
> displaying about:blank and this causes problems in tests trying to do things
> to the frame's content. It strikes me that the show event shouldn't be
> called until the panel is both visible and its content properly loaded so
> this pull request makes that change.
With this change will the `show` event emit for every `DOMContentLoaded` event (while the panel is open)? and that appears to be a change from the previous api.
This appears to be the case to me.
Flags: needinfo?(dtownsend+bugmail)
Assignee | ||
Comment 3•10 years ago
|
||
Ah yes that wasn't intentional. I've corrected that and added a test to check it doesn't happen.
Flags: needinfo?(dtownsend+bugmail)
Comment 4•10 years ago
|
||
Comment on attachment 8505813 [details] [review]
pull request
looks good to me, I just mentioned some test changes that I'd like to see for r+
Attachment #8505813 -
Flags: review?(evold) → feedback+
Assignee | ||
Comment 5•10 years ago
|
||
Comment on attachment 8505813 [details] [review]
pull request
Updated the pull request from the comments.
Attachment #8505813 -
Flags: review?(evold)
Comment 6•10 years ago
|
||
Comment on attachment 8505813 [details] [review]
pull request
Thanks!
Attachment #8505813 -
Flags: review?(evold) → review+
Comment 7•10 years ago
|
||
Commit pushed to master at https://github.com/mozilla/addon-sdk
https://github.com/mozilla/addon-sdk/commit/ea2f56bdd45b54e4ec59bfc97275b9d4added77f
Bug 1083391: Only send panel show/hide events after the panel's document is ready. r=erikvold
Assignee | ||
Updated•10 years ago
|
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 8•10 years ago
|
||
Comment 9•10 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•