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)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mossop, Assigned: mossop)

References

Details

Attachments

(1 file)

46 bytes, text/x-github-pull-request
evold
: review+
evold
: feedback+
Details | Review
This fails pretty consistently in mochitest-jetpack for some reason
Attached file 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.
Assignee: nobody → dtownsend+bugmail
Attachment #8505813 - Flags: review?(evold)
(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)
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 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+
Comment on attachment 8505813 [details] [review] pull request Updated the pull request from the comments.
Attachment #8505813 - Flags: review?(evold)
Comment on attachment 8505813 [details] [review] pull request Thanks!
Attachment #8505813 - Flags: review?(evold) → review+
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
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: