Closed Bug 839670 Opened 11 years ago Closed 11 years ago

Remove usage of gXULAppInfo and createAppInfo in toolkit/components/search/tests/xpcshell/

Categories

(Firefox :: Search, defect)

defect
Not set
minor

Tracking

()

RESOLVED FIXED
Firefox 21

People

(Reporter: MattN, Assigned: joshua.kalpin)

References

()

Details

(Whiteboard: [mentor=MattN][lang=js])

Attachments

(1 file, 2 obsolete files)

First bug for me but I think I should be able to handle it if it hasn't been claimed yet.
Excellent! Let me know if you have any questions.
Assignee: nobody → joshua.kalpin
Status: NEW → ASSIGNED
First attempt at the replacement. Not 100% sure if I did it quite right.
Comment on attachment 714239 [details] [diff] [review]
First patch to remove createAppInfo

Review of attachment 714239 [details] [diff] [review]:
-----------------------------------------------------------------

Excellent work on your first patch! Only a few comments to address below.

Could you update your .hgrc file to include the username field so that it gets included in the commit message? See https://developer.mozilla.org/en-US/docs/Mercurial_FAQ#How_can_I_generate_a_patch_for_somebody_else_to_check-in_for_me.3F

Once you make these changes, go ahead an upload another version in this bug and set the checkin flag to '?' and I will push the patch.

Thanks!

::: toolkit/components/search/tests/xpcshell/head_search.js
@@ -14,1 @@
>  const BROWSER_SEARCH_PREF = "browser.search.";

Could you also remove the definitions of XULAPPINFO_CONTRACTID and XULAPPINFO_CID above this?

::: toolkit/components/search/tests/xpcshell/test_645970.js
@@ +7,5 @@
>  /**
>   * Test nsSearchService with nested jar: uris, without async initialization
>   */
>  function run_test() {
> +  updateAppInfo();  

Nit: there is trailing whitespace on this line.
Attachment #714239 - Flags: review+
Attached patch Second patch (obsolete) — Splinter Review
Attachment #714350 - Flags: checkin?(joshua.kalpin)
Goofed on the first file upload. This is the correct one.
Attachment #714239 - Attachment is obsolete: true
Attachment #714350 - Attachment is obsolete: true
Attachment #714350 - Flags: checkin?(joshua.kalpin)
Attachment #714351 - Flags: checkin?
Comment on attachment 714351 [details] [diff] [review]
Actual second patch

In my landing queue. In the future, please use the checkin-needed keyword at the top instead (we typically use checkin? for bugs with multiple attached patches and only a subset needing checkin).
Attachment #714351 - Flags: checkin?
But thank you for the patch!
https://hg.mozilla.org/mozilla-central/rev/6f47066fa6fd
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 21
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: