Cancelling WebIDE Wi-Fi device discovery QR scanner accidentally activated flash painted area mode

RESOLVED WONTFIX

Status

Firefox OS
Developer Tools
RESOLVED WONTFIX
3 years ago
2 years ago

People

(Reporter: emorley, Unassigned)

Tracking

({foxfood})

Firefox Tracking Flags

(Not tracked)

Details

Using a foxfood device running:
* build identifier: 20150727151800
* build number: eng.worker.20150619.224059

...and the latest nightly.

1) Go to settings -> developer
2) Make sure "devtools via wifi" is ticked
3) In nightly use the "select runtime" dropdown, and choose the phone name
4) On the phone, select "scan and remember"
5) When the phone asks if you want to share camera, select back camera, and wait for the camera to activate
6) On the phone, press cancel on the camera QR scanner screen

Expected:
Returned to the developer menu with no other side effects.

Actual:
After a couple of seconds the phone UI turns purple (and a couple of other colours) - guessing it is in the "inspect" mode of devtools?
Hmm actually I think when pressing cancel I must have accidentally pressed the "flash painted area" option in the developer menu. I don't know if I double pressed, or if there is some lag issue - unfortunately I can't figure out how to undo the "scan and remember", so I can try again. Where can I clear the list of paired devices?
Summary: Cancelling WebIDE Wi-Fi device discovery QR scanner makes phone enter inspect mode → Cancelling WebIDE Wi-Fi device discovery QR scanner accidentally activated flash painted area mode
(In reply to Ed Morley [:emorley] from comment #1)
> Hmm actually I think when pressing cancel I must have accidentally pressed
> the "flash painted area" option in the developer menu. 

Yes, it sounds like that's what happened.

> I don't know if I
> double pressed, or if there is some lag issue - unfortunately I can't figure
> out how to undo the "scan and remember", so I can try again. Where can I
> clear the list of paired devices?

For the moment, there is no easy way to do so.  I filed bug 1190485 to add a button in the Settings app for this.

One brute-force way via ADB is to remove the "/data/local/storage/permanent/indexeddb+++fx-devtools" IndexedDB storage that holds the saved client list:

1. $ adb root
2. $ adb shell stop b2g
3. $ adb shell rm -rf /data/local/storage/permanent/indexeddb+++fx-devtools
4. $ adb shell start b2g

This should be relative safe and only affect DevTools settings, as that is all it contains, but no guarantees.
Thank you for filing a bug to do that. I can't use the ADB method unfortunately, since I'd prefer not to install Java.

Once bug 1190485 has landed I'll try to repro this again :-)
(In reply to Ed Morley [:emorley] from comment #3)
> Thank you for filing a bug to do that. I can't use the ADB method
> unfortunately, since I'd prefer not to install Java.

FWIW you don't need to have Java to run adb. The ADBHeper add-on ships the adb binary for your platform.
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.