Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Question: Reload doesn't work either on WebIDE or through RDP

11 views
Skip to first unread message

Yi-Fan Liao

unread,
Aug 6, 2015, 3:09:32 AM8/6/15
to dev-devel...@lists.mozilla.org
Hi devtool developlers,

I'm writing a live reload script for gaia app development and running into
a RDP reload problem. The script watches file changes in gaia app folders,
and it connects to a b2g runtime at port 6000 and the RDP exchanges are
listed below. The app running on b2g desktop only blinked after sending the
reload message, and I discovered that pressing the relaunch button in
WebIDE is no different.

A colleague and I checked that 1). the app is correctly rebuild and 2).
the profile folder and the application.zip is correctly placed. Does anyone
know the possible cause of this problem? Thank you!


sendMessage: 31:{"to":"root","type":"listTabs"}

handleMessage: { from: 'root',
applicationType: 'operating-system',
testConnectionPrefix: 'server1.conn0.',
traits:
{ sources: true,
editOuterHTML: true,
pasteHTML: true,
highlightable: true,
customHighlighters: true,
urlToImageDataResolver: true,
networkMonitor: true,
storageInspector: true,
storageInspectorReadOnly: true,
conditionalBreakpoints: true,
debuggerSourceActors: true,
bulk: true,
selectorEditable: true,
addNewRule: true,
getUniqueSelector: true,
directorScripts: true,
noBlackBoxing: false,
noPrettyPrinting: false,
getUsedFontFaces: true,
memoryActorAllocations: true,
noNeedToFakeResumptionOnNavigation: true,
webConsoleCommands: true,
allowChromeProcess: true,
profilerDataFilterable: true } }

handleMessage: { from: 'root',
selected: 0,
tabs: [],
promisesActor: 'server1.conn0.promisesActor1',
preferenceActor: 'server1.conn0.preferenceActor2',
actorRegistryActor: 'server1.conn0.actorRegistryActor3',
settingsActor: 'server1.conn0.settingsActor4',
webappsActor: 'server1.conn0.webappsActor5',
deviceActor: 'server1.conn0.deviceActor6',
directorRegistryActor: 'server1.conn0.directorRegistryActor7' }

sendMessage:
114:{"to":"server1.conn0.webappsActor5","type":"getAppActor","manifestURL":"app://
sms.gaiamobile.org/manifest.webapp"}

handleMessage: { actor:
{ actor: 'server1.conn0.child8/tab1',
title: 'Messages',
url: 'app://sms.gaiamobile.org/index.html',
outerWindowID: 15,
consoleActor: 'server1.conn0.child8/consoleActor2',
inspectorActor: 'server1.conn0.child8/inspectorActor3',
callWatcherActor: 'server1.conn0.child8/callWatcherActor4',
canvasActor: 'server1.conn0.child8/canvasActor5',
webglActor: 'server1.conn0.child8/webglActor6',
webaudioActor: 'server1.conn0.child8/webaudioActor7',
styleSheetsActor: 'server1.conn0.child8/styleSheetsActor8',
styleEditorActor: 'server1.conn0.child8/styleEditorActor9',
storageActor: 'server1.conn0.child8/storageActor10',
gcliActor: 'server1.conn0.child8/gcliActor11',
memoryActor: 'server1.conn0.child8/memoryActor12',
framerateActor: 'server1.conn0.child8/framerateActor13',
eventLoopLagActor: 'server1.conn0.child8/eventLoopLagActor14',
reflowActor: 'server1.conn0.child8/reflowActor15',
cssUsageActor: 'server1.conn0.child8/cssUsageActor16',
monitorActor: 'server1.conn0.child8/monitorActor17',
timelineActor: 'server1.conn0.child8/timelineActor18',
directorManagerActor: 'server1.conn0.child8/directorManagerActor19',
profilerActor: 'server1.conn0.child8/profilerActor20',
animationsActor: 'server1.conn0.child8/animationsActor21',
promisesActor: 'server1.conn0.child8/promisesActor22' },
from: 'server1.conn0.webappsActor5' }

sendMessage:
132:{"to":"server1.conn0.child8/tab1","type":"reload","options":{"force":true},"manifestURL":"app://
sms.gaiamobile.org/manifest.webapp"}

handleMessage: { from: 'server1.conn0.child8/tab1' }


Many Thanks,

Yi-Fan

Alexandre poirot

unread,
Aug 6, 2015, 3:20:54 AM8/6/15
to Yi-Fan Liao, dev-developer-tools
You have to reboot b2g and/or the application if you push application.zip
files like that!
Gecko doesn't watch for zip file change and most likely keep the old one.
RDP reload works. It is just that it reloads the currently loaded document
in the targeted app. Then gecko reloads whatever it has access to.
I see two options for you, both involving webapps actor :
- push the application.zip via install method of the webapps actor. This
correctly flush gecko caches so that subsequent reloads works as expected.
- stop and start the app via webapps actor, instead of just reloding the
current document. (Not sure it is enough...)
> _______________________________________________
> dev-developer-tools mailing list
> dev-devel...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-developer-tools
>

Yi-Fan Liao

unread,
Aug 6, 2015, 12:36:20 PM8/6/15
to Alexandre poirot, dev-developer-tools
Thank you! I tried the first option and it works!

On Thu, Aug 6, 2015 at 3:20 PM, Alexandre poirot <poiro...@gmail.com>
wrote:
--
Yi-Fan
0 new messages