Closed
Bug 1090759
Opened 10 years ago
Closed 10 years ago
browserElementTestHelpers.js cleanup
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla36
People
(Reporter: kanru, Assigned: kanru)
Details
(Whiteboard: [lang=js])
Attachments
(5 files)
2.08 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
19.23 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
23.14 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
1.21 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
66.86 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
Something I think we could do: 1. Use SpecialPowers.pushPermissions instead of addPermission 2. Use DOM Promise instead of copy Promise.js from addon SDK
Comment 1•10 years ago
|
||
Note, a patch in bug 832700 tried to change the file to use normal Promises.
Assignee | ||
Comment 2•10 years ago
|
||
(In reply to Olli Pettay [:smaug] from comment #1) > Note, a patch in bug 832700 tried to change the file to use normal Promises. Thanks for noticing. Looks like it doesn't land on any branch. I have a patch for that too. We can't simply remove the boilerplate because DOM Promise behave slightly differently. The pattern used in priority/ expectOnlyOneProcessCreated().then(function(chid) { childID = chid; return Promise.all( [expectPriorityChange(childID, 'FOREGROUND'), expectMozbrowserEvent(iframe, 'loadend'), expectMozbrowserEvent(iframe, 'showmodalprompt').then(function(e) { is(e.detail.message, 'onplay', 'showmodalprompt message'); })] ); }).then(function() { ... doesn't work because the priority change event is fired before we create the expectPriorityChange promise. I think this is because the DOM Promise uses microtasks so the observer code gets run first.
Assignee | ||
Comment 3•10 years ago
|
||
https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=31db2b96ec60
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → kchen
Mentor: kchen
Assignee | ||
Comment 4•10 years ago
|
||
Attachment #8514078 -
Flags: review?(bugs)
Assignee | ||
Comment 5•10 years ago
|
||
Attachment #8514079 -
Flags: review?(bugs)
Assignee | ||
Comment 6•10 years ago
|
||
Attachment #8514082 -
Flags: review?(bugs)
Assignee | ||
Comment 7•10 years ago
|
||
Attachment #8514084 -
Flags: review?(bugs)
Assignee | ||
Comment 8•10 years ago
|
||
Attachment #8514086 -
Flags: review?(bugs)
Updated•10 years ago
|
Attachment #8514086 -
Flags: review?(bugs) → review+
Comment 9•10 years ago
|
||
Comment on attachment 8514078 [details] [diff] [review] Part 1. Use pushPermissions Note sure why we need lockTestReady/unlockTestReady but I guess those make the tests more reliable, since they are used to prefs etc.
Attachment #8514078 -
Flags: review?(bugs) → review+
Updated•10 years ago
|
Attachment #8514084 -
Flags: review?(bugs) → review+
Updated•10 years ago
|
Attachment #8514079 -
Flags: review?(bugs) → review+
Updated•10 years ago
|
Attachment #8514082 -
Flags: review?(bugs) → review+
Assignee | ||
Comment 10•10 years ago
|
||
remote: https://hg.mozilla.org/integration/b2g-inbound/rev/4613379d97a8 remote: https://hg.mozilla.org/integration/b2g-inbound/rev/94f7c7974cec remote: https://hg.mozilla.org/integration/b2g-inbound/rev/4e2555692111 remote: https://hg.mozilla.org/integration/b2g-inbound/rev/95e50227bb98 remote: https://hg.mozilla.org/integration/b2g-inbound/rev/ffdc97783d5a
Comment 11•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/4613379d97a8 https://hg.mozilla.org/mozilla-central/rev/94f7c7974cec https://hg.mozilla.org/mozilla-central/rev/4e2555692111 https://hg.mozilla.org/mozilla-central/rev/95e50227bb98 https://hg.mozilla.org/mozilla-central/rev/ffdc97783d5a
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla36
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•