Closed
Bug 1347677
Opened 4 years ago
Closed 4 years ago
Use BrowserTestUtils.waitForErrorPage in browser_bug431826.js
Categories
(Firefox :: Security, enhancement, P5)
Firefox
Security
Tracking
()
RESOLVED
FIXED
Firefox 55
| Tracking | Status | |
|---|---|---|
| firefox55 | --- | fixed |
People
(Reporter: johannh, Assigned: dbugs, Mentored)
References
Details
Attachments
(1 file)
In browser_bug431826.js, on two occasions[0] we use a custom waitForEvent call that listens to DOMContentLoaded, which is prone to cause intermittent errors. We should replace both with the more reliable BrowserTestUtils.waitForErrorPage[1] function and make sure the affected tests still run correctly. [0] http://searchfox.org/mozilla-central/rev/ca7015fa45b30b29176fbaa70ba0a36fe9263c38/browser/base/content/test/general/browser_bug431826.js#8,33 [1] http://searchfox.org/mozilla-central/rev/8fa84ca6444e2e01fb405e078f6d2c8da0e55723/testing/mochitest/BrowserTestUtils/BrowserTestUtils.jsm#689 You can run the test with ./mach mochitest browser/base/content/test/general/browser_bug431826.js and learn more about Mochitest here: https://developer.mozilla.org/en-US/docs/Mozilla/Projects/Mochitest
Comment 1•4 years ago
|
||
Can I assigned me to this bug?
| Reporter | ||
Comment 2•4 years ago
|
||
Thanks! Let me know if you have any questions. :)
Assignee: nobody → alesilva241
Status: NEW → ASSIGNED
Priority: -- → P5
| Reporter | ||
Comment 3•4 years ago
|
||
Hi Alexandra, I'm unassigning you for now. Let me know if you still want to work on it.
Assignee: alesilva241 → nobody
Status: ASSIGNED → NEW
Updated•4 years ago
|
Assignee: nobody → dbugs
| Comment hidden (mozreview-request) |
| Reporter | ||
Comment 5•4 years ago
|
||
| mozreview-review | ||
Comment on attachment 8857921 [details] bug 1347677 - Use BrowserTestUtils.waitForErrorPage in browser_bug431826.js. https://reviewboard.mozilla.org/r/129954/#review132512 Looks great, thank you! Now we need to trigger a try build (https://wiki.mozilla.org/ReleaseEngineering/TryServer) to make sure all tests are still passing. I'll also set the checkin-needed flag. That means if the try run looks good, someone will land the patch for us.
Attachment #8857921 -
Flags: review?(jhofmann) → review+
| Reporter | ||
Updated•4 years ago
|
Keywords: checkin-needed
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/integration/autoland/rev/f709675d6a79 Use BrowserTestUtils.waitForErrorPage in browser_bug431826.js. r=johannh
Keywords: checkin-needed
Comment 7•4 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/f709675d6a79
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 55
You need to log in
before you can comment on or make changes to this bug.
Description
•