Closed Bug 1417664 Opened 7 years ago Closed 7 years ago

Package Layout Debugger interface for use with debug artifact builds

Categories

(Core :: Layout, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla59
Tracking Status
firefox59 --- fixed

People

(Reporter: jryans, Assigned: jryans)

References

Details

Attachments

(1 file)

Layout debugger is almost usable in debug artifact builds, but the XPCOM interface is not packaged, the debugger UI throws an error on use.

Adding the .xpt to the package manifest should solve this.
Comment on attachment 8928710 [details]
Bug 1417664 - Include layout debugger interface for packaged builds.

https://reviewboard.mozilla.org/r/199970/#review205110

I think it would be good to include this in DEBUG artifact builds,
but I'm not familiar with packaging at all so you should probably
also ask someone who is for an additional review (unless you feel
familiar enough with it yourself).
Attachment #8928710 - Flags: review?(mats) → review+
Comment on attachment 8928710 [details]
Bug 1417664 - Include layout debugger interface for packaged builds.

https://reviewboard.mozilla.org/r/199970/#review205110

I've fixed missing XPCOM interfaces with similar changes in the past, so I believe the approach is correct...

But just to be sure, I'll also check with a build peer.
Attachment #8928710 - Flags: review?(core-build-config-reviews)
Comment on attachment 8928710 [details]
Bug 1417664 - Include layout debugger interface for packaged builds.

https://reviewboard.mozilla.org/r/199970/#review205136

Does this not make sense on Fennec?  Perhaps it's always the host (Desktop) debugging client who would use the XPT?  In any case, this looks fine.

::: browser/installer/package-manifest.in:249
(Diff revision 1)
>  @RESPATH@/components/jar.xpt
>  @RESPATH@/components/jsdebugger.xpt
>  @RESPATH@/components/jsdownloads.xpt
>  @RESPATH@/browser/components/jsinspector.xpt
>  @RESPATH@/components/layout_base.xpt
> +#ifdef MOZ_DEBUG

y u no https://searchfox.org/mozilla-central/source/mobile/android/installer/package-manifest.in#173?
Attachment #8928710 - Flags: review+
Comment on attachment 8928710 [details]
Bug 1417664 - Include layout debugger interface for packaged builds.

https://reviewboard.mozilla.org/r/199970/#review205136

> y u no https://searchfox.org/mozilla-central/source/mobile/android/installer/package-manifest.in#173?

Hmm, at the moment, the layout debugger UI that uses this XPCOM interface opens as a separate window in Firefox desktop via a browser.xul overlay:

https://searchfox.org/mozilla-central/source/layout/tools/layout-debug/ui/content/layoutdebug-overlay.xul

so there's not really a Fennec equivalent I don't think...

However, we do still appear to package and ship the code behind the interface for Fennec debug builds...  So, I think just for general sanity, I'll add it to Fennec as well.  (We may want to decide separately to not build any of this for Fennec, but I'll leave that for another bug.)
Pushed by jryans@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/07d02e9d114c
Include layout debugger interface for packaged builds. r=mats,nalexander
(In reply to J. Ryan Stinnett [:jryans] (use ni?) from comment #5)
> Hmm, at the moment, the layout debugger UI that uses this XPCOM interface
> opens as a separate window in Firefox desktop...

FYI, you can also run it from the command line with -layoutdebug,
then you get only that one window.
https://hg.mozilla.org/mozilla-central/rev/07d02e9d114c
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
(In reply to J. Ryan Stinnett [:jryans] (use ni?) from comment #5)

<snip>

> I'll add it to Fennec as well.  (We may want to decide separately to not
> build any of this for Fennec, but I'll leave that for another bug.)

I've filed https://bugzilla.mozilla.org/show_bug.cgi?id=1417978 to track removing this from Android as appropriate.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: