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

Side by Side Diff: Source/core/dom/SandboxFlags.h

Issue 1139933002: Prototype an 'allow-unsandboxed-auxiliary' sandbox flag. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Feedback. Created 5 years, 7 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All Rights Reserved. 2 * Copyright (C) 2013 Google Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 28 matching lines...) Expand all
39 SandboxPlugins = 1 << 1, 39 SandboxPlugins = 1 << 1,
40 SandboxOrigin = 1 << 2, 40 SandboxOrigin = 1 << 2,
41 SandboxForms = 1 << 3, 41 SandboxForms = 1 << 3,
42 SandboxScripts = 1 << 4, 42 SandboxScripts = 1 << 4,
43 SandboxTopNavigation = 1 << 5, 43 SandboxTopNavigation = 1 << 5,
44 SandboxPopups = 1 << 6, // See https://www.w3.org/Bugs/Public/show_bug.cgi?i d=12393 44 SandboxPopups = 1 << 6, // See https://www.w3.org/Bugs/Public/show_bug.cgi?i d=12393
45 SandboxAutomaticFeatures = 1 << 7, 45 SandboxAutomaticFeatures = 1 << 7,
46 SandboxPointerLock = 1 << 8, 46 SandboxPointerLock = 1 << 8,
47 SandboxDocumentDomain = 1 << 9, 47 SandboxDocumentDomain = 1 << 9,
48 SandboxOrientationLock = 1 << 10, // See https://w3c.github.io/screen-orient ation/#dfn-sandboxed-orientation-lock-browsing-context-flag. 48 SandboxOrientationLock = 1 << 10, // See https://w3c.github.io/screen-orient ation/#dfn-sandboxed-orientation-lock-browsing-context-flag.
49 SandboxPropagatesToAuxiliaryBrowsingContexts = 1 << 11,
49 SandboxAll = -1 // Mask with all bits set to 1. 50 SandboxAll = -1 // Mask with all bits set to 1.
50 }; 51 };
51 52
52 typedef int SandboxFlags; 53 typedef int SandboxFlags;
53 54
54 SandboxFlags parseSandboxPolicy(const String& policy, String& invalidTokensError Message); 55 SandboxFlags parseSandboxPolicy(const String& policy, String& invalidTokensError Message);
55 SandboxFlags parseSandboxPolicy(const SpaceSplitString& policy, String& invalidT okensErrorMessage); 56 SandboxFlags parseSandboxPolicy(const SpaceSplitString& policy, String& invalidT okensErrorMessage);
56 57
57 } 58 }
58 59
59 #endif 60 #endif
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/security/sandbox-inherit-to-blank-document-unsandboxed.html ('k') | Source/core/dom/SandboxFlags.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698