Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Issue 1820173002: Close USB device connections when the page is hidden. (Closed)

Created:
4 years, 9 months ago by Reilly Grant (use Gerrit)
Modified:
4 years, 9 months ago
Reviewers:
ortuno
CC:
blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Close USB device connections when the page is hidden. This is a temporary measure to make up for the lack of a visible indication that a page has an open connection to a USB device. If the page becomes hidden then all open device connections are closed and cannot be reopened until it is visible again. BUG=595375 Committed: https://crrev.com/d83aa53f1beb27037f5f77fc06d5b6b0c2e05642 Cr-Commit-Position: refs/heads/master@{#382654}

Patch Set 1 #

Patch Set 2 : Rebased. #

Total comments: 2

Patch Set 3 : Rebased and fixed nit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -28 lines) Patch
A third_party/WebKit/LayoutTests/usb/disconnect-when-hidden-or-closed.html View 1 chunk +79 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/usb/resources/usb-helpers.js View 1 chunk +10 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/usb/usbDevice.html View 1 1 chunk +0 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/modules/webusb/USBDevice.h View 1 3 chunks +9 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webusb/USBDevice.cpp View 1 2 6 chunks +47 lines, -17 lines 0 comments Download

Messages

Total messages: 10 (5 generated)
Reilly Grant (use Gerrit)
Please take a look.
4 years, 9 months ago (2016-03-22 01:57:20 UTC) #3
ortuno
lgtm https://codereview.chromium.org/1820173002/diff/40001/third_party/WebKit/Source/modules/webusb/USBDevice.cpp File third_party/WebKit/Source/modules/webusb/USBDevice.cpp (right): https://codereview.chromium.org/1820173002/diff/40001/third_party/WebKit/Source/modules/webusb/USBDevice.cpp#newcode682 third_party/WebKit/Source/modules/webusb/USBDevice.cpp:682: if (ensurePageVisible(resolver)) { nit: if you want to ...
4 years, 9 months ago (2016-03-22 02:09:08 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1820173002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1820173002/60001
4 years, 9 months ago (2016-03-22 18:16:39 UTC) #7
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 9 months ago (2016-03-22 19:54:14 UTC) #8
commit-bot: I haz the power
4 years, 9 months ago (2016-03-22 19:55:38 UTC) #10
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/d83aa53f1beb27037f5f77fc06d5b6b0c2e05642
Cr-Commit-Position: refs/heads/master@{#382654}

Powered by Google App Engine
This is Rietveld 408576698