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

Side by Side Diff: third_party/WebKit/LayoutTests/installedapp/getinstalledrelatedapps-iframe.html

Issue 2800523004: Restrict navigator.getInstalledRelatedApps() to top-level frames (Closed)
Patch Set: update error (top-level frames -> top-level browing contexts) Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/installedapp/NavigatorInstalledApp.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script>
4 <iframe srcdoc="
5 <!DOCTYPE html>
6 <script>
7 window.top.promise_test(function() {
8 var expectedError = 'InvalidStateError';
9 var promise = navigator.getInstalledRelatedApps();
10 return window.top.promise_rejects(this, expectedError, promise);
11 }, 'getInstalledRelatedApps() should error when called in an iframe.');
12 </script>
13 "></iframe>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/installedapp/NavigatorInstalledApp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698