Closed Bug 702532 Opened 13 years ago Closed 12 years ago

Unnecessary preprocessing in the devtools jar manifest

Categories

(DevTools :: General, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 15

People

(Reporter: past, Assigned: cedricv)

Details

(Whiteboard: [fixed-in-fx-team])

Attachments

(1 file, 1 obsolete file)

From the 3 files that are marked for preprocessing in browser/devtools/jar.mn, only scratchpad.xul looks like it needs it and that one could probably do without the #ifdef 0 to hide a comment block:

*   content/browser/inspector.html                (highlighter/inspector.html)
*   content/browser/scratchpad.xul                (scratchpad/scratchpad.xul)
*   content/browser/scratchpad.js                 (scratchpad/scratchpad.js)

Hopefully this would shorten build times by a tiny fraction, which might be non-trivial for tinderboxes.
Attached patch patch v1 (obsolete) — Splinter Review
Let's do it ;)
More importantly it avoids surprises when using --enable-chrome-format=symlink.
Assignee: nobody → cedricv
Status: NEW → ASSIGNED
Attachment #596480 - Flags: review?
I remember I had problems when I filed the bug getting a functional build after clobbering. Does this patch work after building from a clean slate? A try run should be sufficient, too.
Comment on attachment 596480 [details] [diff] [review]
patch v1

Unassigned review! Sending to... *spins wheel* dcamp!

Please review/reassign/close as appropriate.
Attachment #596480 - Flags: review? → review?(dcamp)
Comment on attachment 596480 [details] [diff] [review]
patch v1

I dunno. Including that comment in our source file could really bloat the Firefox download size. R+ anyway.
Attachment #596480 - Flags: review?(dcamp) → review+
(totally stole that review from dcamp. swish.)
Is this ready to land?  Does it need rebasing?
Attached patch Patch v2Splinter Review
Updated patch to reflect current reality. Try run:
https://tbpl.mozilla.org/?tree=Try&rev=92e3ddd476b9
Attachment #596480 - Attachment is obsolete: true
Whiteboard: [land-in-fx-team]
https://hg.mozilla.org/integration/fx-team/rev/e7f1d04c8ab1
Whiteboard: [land-in-fx-team] → [fixed-in-fx-team]
https://hg.mozilla.org/mozilla-central/rev/e7f1d04c8ab1
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 15
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: