Closed Bug 1005384 Opened 10 years ago Closed 6 years ago

[B2G][1.4] Plugging the phone into the computer does not override a download

Categories

(Firefox OS Graveyard :: Gaia::System, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(b2g-v1.3 unaffected, b2g-v1.4 affected)

RESOLVED WONTFIX
Tracking Status
b2g-v1.3 --- unaffected
b2g-v1.4 --- affected

People

(Reporter: bmorgan, Unassigned)

References

Details

(Whiteboard: LocRun1.4)

Description:
While downloading a file from the Browser, plugging the phone into the computer does not override the download.

Repro Steps:
1) Update a Buri to BuildID: 20140430000201
2) Open the Settings app and enable USB debugging.
3) Open the browser and initiate a download of at least 10MB.
4) While download is in progress, plug the phone into a computer.
5) Navigate to Settings->Downloads.
6) Observe download still in progress.

Actual:
Download not paused when phone connected to computer

Expected:
Connecting phone to a computer pauses the download

1.4 Environmental Variables:
Device: Buri 1.4 MOZ
BuildID: 20140430000201
Gaia: 81e97c3ca58be0487292011bc59efa4cebab30be
Gecko: 123485e733d5
Version: 30.0
Firmware Version: v1.2-device.cfg


Repro frequency: 100%
1.3 Environmental Variables:
Device: Buri 1.3 MOZ
BuildID: 20140425024003
Gaia: 32a9e3db738e0b3bc44a4d4d5c16512a2617a2cf
Gecko: c96b0cf6343f
Version: 28.0
Firmware Version: v1.2-device.cfg

This issue does not occur on 1.3 as string is not implemented
Component: da / Danish → Gaia::System
Product: Mozilla Localizations → Firefox OS
I'm not sure I follow. Why should the download stop when I connect the USB cable?
Amending subject for now.
Summary: [B2G][1.4][l10n][New Strings]Danish: Plugging the phone into the computer does not override a download → [B2G][1.4] Plugging the phone into the computer does not override a download
This issue seems to be related to - 
https://bugzilla.mozilla.org/show_bug.cgi?id=1001618

[B2G][Contacts][Import]Plugging in USB cable while importing contacts from SD card does not halt import.

Both issues involve the SD card in use prior to plugging in the USB cable.
It starts to make sense. My first guess is that we're not talking about "USB debug", but "USB storage".

From a quick test:
* If I plug the cable before doing anything with downloads, I get warnings that the SD card is in use.
* If I plug the cable after the download has started, memory won't be available until the download is complete.

I wonder if this is just the expected result.
If the app doing the download wants to interrupt the download, then it can watch for events that indicate that sharing is being initated.

Currently, the AutoMounter detects that there are open files on the volume to be shared, and defers sharing until the files are closed.

The Gallery/Music/Video apps detect that sharing is desired and will close the open files.

So I either behaviour is achievable. Which one is "correct" is really a UI decision.
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.