All users were logged out of Bugzilla on October 13th, 2018

Inspect tools doesn't open within Firefox Mulet

RESOLVED FIXED in Firefox 38

Status

RESOLVED FIXED
4 years ago
3 years ago

People

(Reporter: contato, Assigned: ochameau)

Tracking

unspecified
2.2 S6 (20feb)

Firefox Tracking Flags

(firefox38 fixed)

Details

Attachments

(1 attachment)

(Reporter)

Description

4 years ago
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:37.0) Gecko/20100101 Firefox/37.0
Build ID: 20150120004008

Steps to reproduce:

Created a profile from updated gaia master branch, downloaded Firefox Mulet and run mulet -profile path/to/gaia/profile


Actual results:

Gaia run, but I inspect tools don't. When I try to open it (ctrl + shift + i) a blank sidebar appears in place of inspect tools. Output from terminal:

1422486865470	Marionette	INFO	marionette enabled via build flag and pref
1422486865579	Marionette	INFO	marionette-server.js loaded
1422486865632	Marionette	INFO	Listening on port 2828

1422486865632	Marionette	INFO	Marionette server ready
*** UTM:SVC TimerManager:registerTimer - id: browser-cleanup-thumbnails
ATTENTION: default value of option force_s3tc_enable overridden by environment.
###################################### forms.js loaded
############################### browserElementPanning.js loaded
######################## BrowserElementChildPreload.js loaded
*** UTM:SVC TimerManager:registerTimer - id: user-agent-updates-timer
###################################### forms.js loaded
############################### browserElementPanning.js loaded
######################## BrowserElementChildPreload.js loaded
############################### browserElementPanning.js loaded
######################## BrowserElementChildPreload.js loaded
############################### browserElementPanning.js loaded
######################## BrowserElementChildPreload.js loaded
UpdatePrompt: Forcing update check
*** AUS:SVC Checker: checkForUpdates, force: true
*** AUS:SVC getLocale - getting locale from file: resource://gre/update.locale, locale: en-US
*** AUS:SVC Checker:getUpdateURL - update URL: https://aus4.mozilla.org/update/3/Firefox/38.0a1/20150128101733/%PRODUCT_DEVICE%/en-US/default/Linux%203.7.10-1-MANJARO%20(GTK%202.24.25)/default/default/update.xml?force=1
*** AUS:SVC gCanCheckForUpdates - able to check for updates
*** AUS:SVC recordInHealthReport - updateCheckStart - 0
*** AUS:SVC Checker:checkForUpdates - sending request to: https://aus4.mozilla.org/update/3/Firefox/38.0a1/20150128101733/%PRODUCT_DEVICE%/en-US/default/Linux%203.7.10-1-MANJARO%20(GTK%202.24.25)/default/default/update.xml?force=1
############################### browserElementPanning.js loaded
######################## BrowserElementChildPreload.js loaded
*** AUS:SVC Checker:onLoad - request completed downloading document
*** AUS:SVC Checker:_updates get - unexpected node name!
*** AUS:SVC Checker:onLoad - there was a problem checking for updates. Exception: Error: Unexpected node name, expected: updates, got: parsererror
*** AUS:SVC Checker:onLoad - request.status: 400
*** AUS:SVC getStatusTextFromCode - transfer error: Update XML file not found (404), default code: 404
*** AUS:SVC recordInHealthReport - updateCheckFailed - 1400
UpdatePrompt: Setting gecko.updateStatus: check-error-http-400
*** AUS:SVC Creating UpdateService
*** AUS:SVC UpdateService:onError - error during background update. error code: 1400, status text: Update XML file not found (404)
Handler function DebuggerClient.requester request callback threw an exception: TypeError: this._form is undefined
Stack: TabTarget_makeRemote/attachTab@resource://gre/modules/commonjs/toolkit/loader.js -> resource:///modules/devtools/framework/target.js:396:7
TabTarget_makeRemote/</<@resource://gre/modules/commonjs/toolkit/loader.js -> resource:///modules/devtools/framework/target.js:429:11
DebuggerClient.requester/</<@resource://gre/modules/devtools/dbg-client.jsm:352:9
makeInfallible/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/DevToolsUtils.js:82:14
emit@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/event/core.js:97:9
Request.prototype.emit@resource://gre/modules/devtools/dbg-client.jsm:1115:29
DebuggerClient.prototype.onPacket@resource://gre/modules/devtools/dbg-client.jsm:955:7
LocalDebuggerTransport.prototype.send/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/transport/transport.js:545:11
makeInfallible/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/DevToolsUtils.js:82:14
makeInfallible/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/DevToolsUtils.js:82:14
Line: 396, column: 6



Expected results:

Run Gaia with inspect tools.
I experience the same issue.

A workaround that I found with the help of ythej from #gaia is the following:
Build your gaia profile with 'make DEBUG=1 DESKTOP=0' and run mulet with 'gaia/profile-debug' as the profile folder instead of 'gaia/profile'.
(Reporter)

Comment 2

4 years ago
Didn't worked, Alessandro. Now Gaia don't load (stop on based on Mozilla technology screen) and responsive mode isn't enabled, but this way I can open dev tools.

The output console:

21479424872147942487214794248721479424871422559478580	Marionette	INFO	marionette enabled via build flag and pref
1422559478691	Marionette	INFO	marionette-server.js loaded
1422559478716	Marionette	INFO	Listening on port 2828

1422559478716	Marionette	INFO	Marionette server ready
*** UTM:SVC TimerManager:registerTimer - id: browser-cleanup-thumbnails
console.error: 
JavaScript error: jar:file:///home/nicholascamp/projetos/firefox-mulet/omni.ja!/components/ProcessGlobal.js, line 170: TypeError: can't convert undefined to object
  Message: Unix error 13 during operation open on file /home/nicholascamp/projetos/gaia/profile-debug/sessionstore.js (Permissão negada)
ATTENTION: default value of option force_s3tc_enable overridden by environment.
JavaScript error: app://system.gaiamobile.org/shared/js/dump.js, line 24: TypeError: settings is null
JavaScript error: app://system.gaiamobile.org/js/applications.js, line 85: TypeError: apps.mgmt is undefined
JavaScript error: app://system.gaiamobile.org/js/init_logo_handler.js, line 98: ReferenceError: Service is not defined
JavaScript error: app://system.gaiamobile.org/shared/js/date_time_helper.js, line 33: TypeError: window.navigator.mozSettings is null
JavaScript error: app://system.gaiamobile.org/js/wake_lock_manager.js, line 47: TypeError: navigator.mozPower is undefined
JavaScript error: app://system.gaiamobile.org/js/browser_settings.js, line 26: TypeError: navigator.mozSettings is null
JavaScript error: app://system.gaiamobile.org/js/usb_storage.js, line 212: TypeError: navigator.mozSettings is null
JavaScript error: app://system.gaiamobile.org/shared/js/settings_listener.js, line 28: TypeError: settings is null
JavaScript error: app://system.gaiamobile.org/js/input_window.js, line 51: ReferenceError: AppTransitionController is not defined
LogShake: starting captureLogs listener
JavaScript error: app://system.gaiamobile.org/js/cell_broadcast_system.js, line 42: TypeError: settings is null
JavaScript error: app://system.gaiamobile.org/js/findmydevice_launcher.js, line 67: TypeError: navigator.mozSettings is null
JavaScript error: app://system.gaiamobile.org/shared/js/settings_listener.js, line 28: TypeError: settings is null
JavaScript error: app://system.gaiamobile.org/shared/js/settings_listener.js, line 28: TypeError: settings is null
###################################### forms.js loaded
############################### browserElementPanning.js loaded
######################## BrowserElementChildPreload.js loaded
JavaScript error: app://system.gaiamobile.org/shared/js/version_helper.js, line 52: TypeError: navigator.mozSettings is null
JavaScript error: , line 0: uncaught exception: NotInApp
Alexandre, is this expected? I don't see a reason why it would be though.
Flags: needinfo?(poirot.alex)
Status: UNCONFIRMED → NEW
Ever confirmed: true
(Assignee)

Comment 4

4 years ago
Created attachment 8559915 [details] [diff] [review]
patch v1

https://treeherder.mozilla.org/#/jobs?repo=try&revision=6e968d834f7f

I'm not able to see a blank inspector, but I see various regression.
The system app doesn't automatically loads itself,
and devtools aren't automatically opened when the system app is manually loaded either.
Attachment #8559915 - Flags: review?(fabrice)
(Assignee)

Updated

4 years ago
Flags: needinfo?(poirot.alex)
Comment on attachment 8559915 [details] [diff] [review]
patch v1

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

::: b2g/dev/app/moz.build
@@ +6,5 @@
>  export('DIST_SUBDIR')
>  
>  JS_PREFERENCE_FILES += [
>      '/b2g/app/b2g.js',
> +    '/b2g/dev/app/mulet.js',

That needs to be only added when building Mulet.
Attachment #8559915 - Flags: review?(fabrice) → review-
(Assignee)

Comment 6

4 years ago
Comment on attachment 8559915 [details] [diff] [review]
patch v1

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

(In reply to Fabrice Desré [:fabrice] from comment #5)
> Comment on attachment 8559915 [details] [diff] [review]
> patch v1
> 
> Review of attachment 8559915 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> ::: b2g/dev/app/moz.build
> @@ +6,5 @@
> >  export('DIST_SUBDIR')
> >  
> >  JS_PREFERENCE_FILES += [
> >      '/b2g/app/b2g.js',
> > +    '/b2g/dev/app/mulet.js',
> 
> That needs to be only added when building Mulet.

This file, b2g/dev/app/moz.build, is already mulet specific,
as everything inside b2g/dev, or did I missed something
and b2g/dev is now also used for another product?
Attachment #8559915 - Flags: review- → review?(fabrice)
Comment on attachment 8559915 [details] [diff] [review]
patch v1

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

You're right, I misread the pref file path. sorry!
Attachment #8559915 - Flags: review?(fabrice) → review+
(Assignee)

Updated

4 years ago
Assignee: nobody → poirot.alex
Keywords: checkin-needed
https://hg.mozilla.org/integration/fx-team/rev/38764a9bae60
Keywords: checkin-needed
Whiteboard: [fixed-in-fx-team]
https://hg.mozilla.org/mozilla-central/rev/38764a9bae60
Status: NEW → RESOLVED
Last Resolved: 4 years ago
status-firefox38: --- → fixed
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → 2.2 S6 (20feb)
You need to log in before you can comment on or make changes to this bug.