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

Issue 1862953002: Disallow use of Web Bluetooth from cross-origin iframes. (Closed)

Created:
4 years, 8 months ago by Jeffrey Yasskin
Modified:
4 years, 8 months ago
Reviewers:
palmer, ortuno, raymes
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, dglazkov+blink, haraken, jam, Mike West, ortuno+watch_chromium.org, qsr+mojo_chromium.org, scheib+watch_chromium.org, scheib, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@lkcr
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Disallow use of Web Bluetooth from cross-origin iframes. This should be a little safer from abuse for the EF launch and more forward-compatible with https://noncombatant.github.io/permission-delegation-api/. Also refactored the tests to let all iframe tests share a single helper resource. BUG=518042 Committed: https://crrev.com/4eca58f59046e7832e83a13ca150d2380319e0ff Cr-Commit-Position: refs/heads/master@{#385653}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Use IsSameOriginWith instead of !=; still needs a test before submitting. #

Total comments: 2

Patch Set 3 : Add a test. #

Messages

Total messages: 34 (15 generated)
Jeffrey Yasskin
mkwst for url/origin.h palmer and raymes for this first bad approximation at the delegation API. ...
4 years, 8 months ago (2016-04-06 05:38:31 UTC) #2
Mike West
https://codereview.chromium.org/1862953002/diff/1/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1862953002/diff/1/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode1143 content/browser/bluetooth/bluetooth_dispatcher_host.cc:1143: if (embedding_origin != requesting_origin) { I'd prefer `!embedding_origin.IsSameOriginWith(requesting_origin)` here. ...
4 years, 8 months ago (2016-04-06 06:06:59 UTC) #3
Jeffrey Yasskin
https://codereview.chromium.org/1862953002/diff/1/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1862953002/diff/1/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode1143 content/browser/bluetooth/bluetooth_dispatcher_host.cc:1143: if (embedding_origin != requesting_origin) { On 2016/04/06 06:06:59, Mike ...
4 years, 8 months ago (2016-04-06 06:17:15 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1862953002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1862953002/20001
4 years, 8 months ago (2016-04-06 06:17:24 UTC) #7
raymes
Generally looks good to me, thanks for the FYI!
4 years, 8 months ago (2016-04-06 06:33:51 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-06 07:37:01 UTC) #10
palmer
LGTM with 1 question. https://codereview.chromium.org/1862953002/diff/20001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1862953002/diff/20001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode1150 content/browser/bluetooth/bluetooth_dispatcher_host.cc:1150: // themselves. Therefore I don't ...
4 years, 8 months ago (2016-04-06 19:44:35 UTC) #11
Jeffrey Yasskin
https://codereview.chromium.org/1862953002/diff/20001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1862953002/diff/20001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode1150 content/browser/bluetooth/bluetooth_dispatcher_host.cc:1150: // themselves. On 2016/04/06 19:44:35, palmer wrote: > Therefore ...
4 years, 8 months ago (2016-04-06 21:03:02 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1862953002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1862953002/40001
4 years, 8 months ago (2016-04-06 21:27:57 UTC) #14
Jeffrey Yasskin
This depends on https://codereview.chromium.org/1869523003/ now to share the resources with the new HTTP test.
4 years, 8 months ago (2016-04-06 21:30:39 UTC) #15
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_dbg_simulator_gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_gn/builds/15117) ios_dbg_simulator_ninja on ...
4 years, 8 months ago (2016-04-06 21:33:41 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1862953002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1862953002/40001
4 years, 8 months ago (2016-04-06 23:56:42 UTC) #19
ortuno
lgtm
4 years, 8 months ago (2016-04-07 00:41:24 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1862953002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1862953002/40001
4 years, 8 months ago (2016-04-07 00:55:00 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/207058)
4 years, 8 months ago (2016-04-07 03:09:59 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1862953002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1862953002/40001
4 years, 8 months ago (2016-04-07 03:11:36 UTC) #29
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-04-07 04:09:17 UTC) #31
commit-bot: I haz the power
Failed to apply patch for third_party/WebKit/LayoutTests/http/tests/bluetooth/https/requestDevice/cross-origin-iframe.html: While running git apply --index -3 -p1; Falling back ...
4 years, 8 months ago (2016-04-07 04:09:36 UTC) #32
commit-bot: I haz the power
4 years, 8 months ago (2016-04-07 04:10:48 UTC) #34
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/4eca58f59046e7832e83a13ca150d2380319e0ff
Cr-Commit-Position: refs/heads/master@{#385653}

Powered by Google App Engine
This is Rietveld 408576698