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

Side by Side Diff: third_party/WebKit/Source/bindings/IDLExtendedAttributes.md

Issue 2207423002: Implement '[SecureContext]' IDL attribute for interfaces, methods and attributes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Feedback. Created 4 years, 4 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/bindings/IDLExtendedAttributes.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Blink IDL Extended Attributes 1 # Blink IDL Extended Attributes
2 2
3 [TOC] 3 [TOC]
4 4
5 ## Introduction 5 ## Introduction
6 6
7 The main interest in extended attributes are their _semantics_: Blink implements many more extended attributes than the Web IDL standard, to specify various beh avior. 7 The main interest in extended attributes are their _semantics_: Blink implements many more extended attributes than the Web IDL standard, to specify various beh avior.
8 8
9 The authoritative list of allowed extended attributes and values is [bindings/ID LExtendedAttributes.txt](https://code.google.com/p/chromium/codesearch#chromium/ src/third_party/WebKit/Source/bindings/IDLExtendedAttributes.txt). This is compl ete but not necessarily precise (there may be unused extended attributes or valu es), since validation is run on build, but coverage isn't checked. 9 The authoritative list of allowed extended attributes and values is [bindings/ID LExtendedAttributes.txt](https://code.google.com/p/chromium/codesearch#chromium/ src/third_party/WebKit/Source/bindings/IDLExtendedAttributes.txt). This is compl ete but not necessarily precise (there may be unused extended attributes or valu es), since validation is run on build, but coverage isn't checked.
10 10
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 Whether `[Replaceable]` should be specified or not depends on the spec of each a ttribute. 419 Whether `[Replaceable]` should be specified or not depends on the spec of each a ttribute.
420 420
421 ### [SameObject] _(a)_ 421 ### [SameObject] _(a)_
422 422
423 Standard: [SameObject](http://heycam.github.io/webidl/#SameObject) 423 Standard: [SameObject](http://heycam.github.io/webidl/#SameObject)
424 424
425 Summary: Signals that a `readonly` attribute that returns an object type always returns the same object. 425 Summary: Signals that a `readonly` attribute that returns an object type always returns the same object.
426 426
427 This attribute has no effect on code generation and should simply be used in Bli nk IDL files if the specification uses it. If you want the binding layer to cach e the resulting object, use `[SaveSameObject]`. 427 This attribute has no effect on code generation and should simply be used in Bli nk IDL files if the specification uses it. If you want the binding layer to cach e the resulting object, use `[SaveSameObject]`.
428 428
429 ### [SecureContext] _(a, i, m)_
430
431 Standard: [SecureContext](https://heycam.github.io/webidl/#SecureContext)
432
433 Summary: Interfaces and interface members with a `SecureContext` attribute are e xposed only inside ["Secure Contexts"](https://w3c.github.io/webappsec-secure-co ntexts/).
434
429 ### [TreatNullAs] _(a,p)_, [TreatUndefinedAs] _(a,p)_ 435 ### [TreatNullAs] _(a,p)_, [TreatUndefinedAs] _(a,p)_
430 436
431 Standard: [TreatNullAs](http://heycam.github.io/webidl/#TreatNullAs) 437 Standard: [TreatNullAs](http://heycam.github.io/webidl/#TreatNullAs)
432 438
433 `[TreatUndefinedAs]` has been been removed from the spec. 439 `[TreatUndefinedAs]` has been been removed from the spec.
434 440
435 Summary: They control the behavior when a JavaScript null or undefined is passed to a DOMString attribute or parameter. 441 Summary: They control the behavior when a JavaScript null or undefined is passed to a DOMString attribute or parameter.
436 442
437 Implementation: **Non-standard:** Web IDL specifies the EmptyString identifier f or both these extended attributes, and `Null` and `Missing` for `TreatUndefinedA s`. Blink uses the `NullString` identifier instead of `EmptyString` which yields a Blink null string, corresponding to JavaScript `null`, for which both `String ::IsEmpty()` and `String::IsNull()` return true, instead of the empty string `"" `, which is empty but not `null`. This is for performance reasons; see [Strings in Blink](https://docs.google.com/a/google.com/document/d/1kOCUlJdh2WJMJGDf-WoEQ hmnjKLaOYRbiHz5TiGJl14/edit) for reference. It also does not implement `TreatUnd efinedAs=Null` or `TreatUndefinedAs=Missing`. 443 Implementation: **Non-standard:** Web IDL specifies the EmptyString identifier f or both these extended attributes, and `Null` and `Missing` for `TreatUndefinedA s`. Blink uses the `NullString` identifier instead of `EmptyString` which yields a Blink null string, corresponding to JavaScript `null`, for which both `String ::IsEmpty()` and `String::IsNull()` return true, instead of the empty string `"" `, which is empty but not `null`. This is for performance reasons; see [Strings in Blink](https://docs.google.com/a/google.com/document/d/1kOCUlJdh2WJMJGDf-WoEQ hmnjKLaOYRbiHz5TiGJl14/edit) for reference. It also does not implement `TreatUnd efinedAs=Null` or `TreatUndefinedAs=Missing`.
438 444
(...skipping 1137 matching lines...) Expand 10 before | Expand all | Expand 10 after
1576 Copyright (C) 2009 Apple Inc. All rights reserved. 1582 Copyright (C) 2009 Apple Inc. All rights reserved.
1577 1583
1578 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1584 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1579 1585
1580 1. Redistributions of source code must retain the above copyright notice, this l ist of conditions and the following disclaimer. 1586 1. Redistributions of source code must retain the above copyright notice, this l ist of conditions and the following disclaimer.
1581 1587
1582 2. Redistributions in binary form must reproduce the above copyright notice, thi s list of conditions and the following disclaimer in the documentation and/or ot her materials provided with the distribution. 1588 2. Redistributions in binary form must reproduce the above copyright notice, thi s list of conditions and the following disclaimer in the documentation and/or ot her materials provided with the distribution.
1583 1589
1584 THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS “AS IS” AND ANY EXP RESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIE S OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, I NCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMI TED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFI TS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHE THER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSI BILITY OF SUCH DAMAGE. 1590 THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS “AS IS” AND ANY EXP RESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIE S OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, I NCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMI TED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFI TS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHE THER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSI BILITY OF SUCH DAMAGE.
1585 *** 1591 ***
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/IDLExtendedAttributes.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698