[PresentationAPI] Unique origins should not be considered same-origin for Cast |
|||||||
Issue descriptionI don't have a repro case, but looking at the existing Cast MRP code in Android it looks like unique origins (e.g., from sandboxed iframes) all get serialized to "", which makes them same-origin from the perspective of the Cast SDK. I don't think this makes sense, or at least it's not the intent of the SDK to behave this way. See, e.g. https://cs.chromium.org/chromium/src/chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/CastMediaRouteProvider.java?rcl=0&l=438 This bug tracks the work to treat unique origins correctly in the Cast MRP. It should be a one-line fix.
,
Jan 30 2017
,
Feb 5 2017
,
Sep 29 2017
,
Sep 30 2017
Should the bug title be "shouldn't be considered same-origin"?
,
Sep 30 2017
,
Oct 3 2017
,
Oct 4 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/51d2d0d050d25d362409cf24b08a3033d0e261e7 commit 51d2d0d050d25d362409cf24b08a3033d0e261e7 Author: mark a. foltz <mfoltz@chromium.org> Date: Wed Oct 04 23:27:06 2017 [Media Router] Correct origin comparison for unique origins. Fix Android implementation of Media Router to handle empty (unique) origins properly through custom comparison. Adds unit tests and removes redundant code from existing tests. Bug: 685358 Change-Id: I051e5d7856f4fb9476166aa1ddda170bef2d5983 Reviewed-on: https://chromium-review.googlesource.com/699738 Commit-Queue: mark a. foltz <mfoltz@chromium.org> Reviewed-by: Zhiqiang Zhang <zqzhang@chromium.org> Reviewed-by: Derek Cheng <imcheng@chromium.org> Cr-Commit-Position: refs/heads/master@{#506564} [modify] https://crrev.com/51d2d0d050d25d362409cf24b08a3033d0e261e7/chrome/android/java/src/org/chromium/chrome/browser/media/router/MediaRouteProvider.java [modify] https://crrev.com/51d2d0d050d25d362409cf24b08a3033d0e261e7/chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/CastMediaRouteProvider.java [modify] https://crrev.com/51d2d0d050d25d362409cf24b08a3033d0e261e7/chrome/android/junit/src/org/chromium/chrome/browser/media/router/cast/CastMediaRouteProviderTest.java [modify] https://crrev.com/51d2d0d050d25d362409cf24b08a3033d0e261e7/chrome/browser/media/android/router/media_router_android_bridge.cc
,
Oct 4 2017
|
|||||||
►
Sign in to add a comment |
|||||||
Comment 1 by sko...@chromium.org
, Jan 26 2017