Closed Bug 1264804 Opened 10 years ago Closed 10 years ago

Close tabs and toolboxes between tasks in browser_webconsole_netlogging.js

Categories

(DevTools :: Console, defect, P3)

46 Branch
defect

Tracking

(firefox48 fixed)

RESOLVED FIXED
Firefox 48
Tracking Status
firefox48 --- fixed

People

(Reporter: bgrins, Assigned: bgrins)

References

Details

Attachments

(1 file)

Also adds a new closeTabAndToolbox helper function to shared-head.js Review commit: https://reviewboard.mozilla.org/r/46563/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/46563/
Attachment #8741549 - Flags: review?(pbrosset)
Patrick, I flagged you because of the new shared-head.js function. I think it's pretty useful and was surprised that we didn't have it already but let me know what you think.
Assignee: nobody → bgrinstead
Status: NEW → ASSIGNED
Comment on attachment 8741549 [details] MozReview Request: Bug 1264804 - Clean up tabs between tests in browser_webconsole_netlogging.js;r=pbro https://reviewboard.mozilla.org/r/46563/#review43319 ::: devtools/client/framework/test/shared-head.js:279 (Diff revision 1) > + let target = TargetFactory.forTab(gBrowser.selectedTab); > + if (target) { > + yield gDevTools.closeToolbox(target); > + } > + > + gBrowser.removeCurrentTab(); Maybe call `removeTab` here instead, since we have this function available in the module. It seems to wait for some event, not sure if this is necessary. ::: devtools/client/framework/test/shared-head.js:286 (Diff revision 1) > + > +/** > * Close a toolbox and the current tab. > * @param {Toolbox} toolbox The toolbox to close. > * @return {Promise} Resolves when the toolbox and tab have been destroyed and > - * closed. > + * closed. nit: you made a change here to vertically align "closed" below "Resolves", but you didn't do this in the jsdoc of the new `closeTabAndToolbox` function. Let's be consistent with the rest of the file.
Attachment #8741549 - Flags: review?(pbrosset) → review+
Comment on attachment 8741549 [details] MozReview Request: Bug 1264804 - Clean up tabs between tests in browser_webconsole_netlogging.js;r=pbro Review request updated; see interdiff: https://reviewboard.mozilla.org/r/46563/diff/1-2/
Started using removeTab in both closeToolboxAndTab and closeTabAndToolbox
Comment on attachment 8741549 [details] MozReview Request: Bug 1264804 - Clean up tabs between tests in browser_webconsole_netlogging.js;r=pbro Review request updated; see interdiff: https://reviewboard.mozilla.org/r/46563/diff/2-3/
devtools tests look fine on the try push
Keywords: checkin-needed
has conflicts summary: Bug 1264804 - Clean up tabs between tests in browser_webconsole_netlogging.js;r=pbro apply changeset? [ynmpcq?]: y applying 23f9a79ec673 patching file devtools/client/framework/test/shared-head.js Hunk #1 FAILED at 259 1 out of 1 hunks FAILED -- saving rejects to file devtools/client/framework/test/shared-head.js.rej patch failed to apply abort: fix up the working directory and run hg transplant --continue could you take a look, thanks !
Flags: needinfo?(bgrinstead)
Keywords: checkin-needed
Comment on attachment 8741549 [details] MozReview Request: Bug 1264804 - Clean up tabs between tests in browser_webconsole_netlogging.js;r=pbro Review request updated; see interdiff: https://reviewboard.mozilla.org/r/46563/diff/3-4/
Should be rebased now, thanks
Flags: needinfo?(bgrinstead)
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 48
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: