Closed Bug 772633 Opened 12 years ago Closed 11 years ago

Search for the command line arg 'metrodesktop' across all command line parameters

Categories

(Firefox for Metro Graveyard :: General, defect)

x86_64
Windows 8.1
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jimm, Assigned: jimm)

References

Details

(Whiteboard: completed-elm)

Attachments

(1 file)

Attached patch patchSplinter Review
This will be handy in getting tests running using the metrodesktop command line arg. The test harness adds a number of params before it appends user set args when launching the browser.
Attachment #640765 - Flags: review?(netzen)
Comment on attachment 640765 [details] [diff] [review]
patch

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

I noticed this bug before too and meant to post a task for it, thanks!

::: browser/app/nsBrowserApp.cpp
@@ +187,5 @@
> +    } else {
> +      // This command-line flag is used to test the metro browser in a desktop
> +      // environment.
> +      for (int idx = 1; idx < argc; idx++) {
> +        if (IsParameterArg(argv[idx]) && IsArg(argv[idx], "metrodesktop")) {

Couldn't we just call IsArg and scrap the call to IsParameterArg?
IsArg returns false if the string doesn't start with - or /
Attachment #640765 - Flags: review?(netzen) → review+
(In reply to Brian R. Bondy [:bbondy] from comment #1)
> Couldn't we just call IsArg and scrap the call to IsParameterArg?
> IsArg returns false if the string doesn't start with - or /

ah yes IsParameterArg is totally redundant. I'll update.
https://hg.mozilla.org/projects/elm/rev/e3f69b867e6e
Blocks: elm-merge
Whiteboard: completed-elm
Looks good, thanks for the update
No longer blocks: elm-merge
Product: Firefox → Firefox for Metro
Resolving bugs in the Firefox for Metro product that are fixed on the elm branch.  Sorry for the bugspam.  Search your email for "bugspam-elm" if you want to find and delete all of these messages at once.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
OS: Windows 8 Metro → Windows 8.1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: