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

Issue 2780093003: V8 bindings gen: Error if OriginTrialEnabled and SecureContext together. (Closed)

Created:
3 years, 8 months ago by Matt Giuca
Modified:
3 years, 8 months ago
Reviewers:
falken, haraken, Mike West, Yuki
CC:
chromium-reviews, iclelland+watch_chromuim.org, blink-reviews, blink-reviews-bindings_chromium.org, chasej+watch_chromium.org, chasej, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

V8 bindings gen: Error if OriginTrialEnabled and SecureContext together. If these are found together, they currently generate completely broken code (the origin trial is not checked). Therefore, throw an error at compile time and point the unlucky developer to a workaround. BUG=695123 Review-Url: https://codereview.chromium.org/2780093003 Cr-Commit-Position: refs/heads/master@{#461653} Committed: https://chromium.googlesource.com/chromium/src/+/eb6e06daaefc9d173132724d905ce77a3ece95d3

Patch Set 1 #

Total comments: 4

Patch Set 2 : NavigationPreloadManager: Avoid hitting the error. #

Total comments: 4

Patch Set 3 : Added TODO on NavigationPreloadManager. #

Patch Set 4 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -14 lines) Patch
M third_party/WebKit/Source/bindings/modules/v8/ConditionalFeaturesForModules.cpp View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/scripts/v8_utilities.py View 3 chunks +14 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/NavigationPreloadManager.idl View 1 2 1 chunk +8 lines, -5 lines 0 comments Download

Messages

Total messages: 37 (19 generated)
Matt Giuca
https://codereview.chromium.org/2780093003/diff/1/third_party/WebKit/Source/bindings/scripts/v8_utilities.py File third_party/WebKit/Source/bindings/scripts/v8_utilities.py (right): https://codereview.chromium.org/2780093003/diff/1/third_party/WebKit/Source/bindings/scripts/v8_utilities.py#newcode407 third_party/WebKit/Source/bindings/scripts/v8_utilities.py:407: % definition_or_member.name) This was crashing on idl_name... idl_name was ...
3 years, 8 months ago (2017-03-29 05:09:33 UTC) #4
Matt Giuca
https://codereview.chromium.org/2780093003/diff/20001/third_party/WebKit/Source/modules/serviceworkers/NavigationPreloadManager.idl File third_party/WebKit/Source/modules/serviceworkers/NavigationPreloadManager.idl (right): https://codereview.chromium.org/2780093003/diff/20001/third_party/WebKit/Source/modules/serviceworkers/NavigationPreloadManager.idl#newcode11 third_party/WebKit/Source/modules/serviceworkers/NavigationPreloadManager.idl:11: [SecureContext, CallWith=ScriptState] Promise<void> enable(); Oh no this is awful. ...
3 years, 8 months ago (2017-03-29 06:24:37 UTC) #8
Matt Giuca
+falken@ for NavigationPreloadManager.idl.
3 years, 8 months ago (2017-03-29 06:25:08 UTC) #11
Yuki
https://codereview.chromium.org/2780093003/diff/1/third_party/WebKit/Source/bindings/scripts/v8_utilities.py File third_party/WebKit/Source/bindings/scripts/v8_utilities.py (right): https://codereview.chromium.org/2780093003/diff/1/third_party/WebKit/Source/bindings/scripts/v8_utilities.py#newcode419 third_party/WebKit/Source/bindings/scripts/v8_utilities.py:419: is_feature_policy_enabled = 'FeaturePolicy' in extended_attributes On 2017/03/29 05:09:33, Matt ...
3 years, 8 months ago (2017-03-29 06:38:06 UTC) #12
haraken
Mu gut feeling is that the implementation of [SecureContext] is not sufficient in a couple ...
3 years, 8 months ago (2017-03-29 06:39:45 UTC) #14
falken
Sorry I'm having trouble understanding the current state of things vs the state after the ...
3 years, 8 months ago (2017-03-29 06:41:18 UTC) #16
haraken
https://codereview.chromium.org/2780093003/diff/1/third_party/WebKit/Source/bindings/scripts/v8_utilities.py File third_party/WebKit/Source/bindings/scripts/v8_utilities.py (right): https://codereview.chromium.org/2780093003/diff/1/third_party/WebKit/Source/bindings/scripts/v8_utilities.py#newcode419 third_party/WebKit/Source/bindings/scripts/v8_utilities.py:419: is_feature_policy_enabled = 'FeaturePolicy' in extended_attributes On 2017/03/29 06:38:06, Yuki ...
3 years, 8 months ago (2017-03-29 06:43:11 UTC) #18
falken
https://codereview.chromium.org/2780093003/diff/20001/third_party/WebKit/Source/modules/serviceworkers/NavigationPreloadManager.idl File third_party/WebKit/Source/modules/serviceworkers/NavigationPreloadManager.idl (right): https://codereview.chromium.org/2780093003/diff/20001/third_party/WebKit/Source/modules/serviceworkers/NavigationPreloadManager.idl#newcode11 third_party/WebKit/Source/modules/serviceworkers/NavigationPreloadManager.idl:11: [SecureContext, CallWith=ScriptState] Promise<void> enable(); On 2017/03/29 06:38:06, Yuki wrote: ...
3 years, 8 months ago (2017-03-29 06:43:45 UTC) #19
Matt Giuca
On 2017/03/29 06:39:45, haraken wrote: > Mu gut feeling is that the implementation of [SecureContext] ...
3 years, 8 months ago (2017-03-30 02:41:34 UTC) #22
Matt Giuca
https://codereview.chromium.org/2780093003/diff/20001/third_party/WebKit/Source/modules/serviceworkers/NavigationPreloadManager.idl File third_party/WebKit/Source/modules/serviceworkers/NavigationPreloadManager.idl (right): https://codereview.chromium.org/2780093003/diff/20001/third_party/WebKit/Source/modules/serviceworkers/NavigationPreloadManager.idl#newcode11 third_party/WebKit/Source/modules/serviceworkers/NavigationPreloadManager.idl:11: [SecureContext, CallWith=ScriptState] Promise<void> enable(); On 2017/03/29 06:43:45, falken wrote: ...
3 years, 8 months ago (2017-03-30 02:57:28 UTC) #23
falken
> (Which generates the same code... note that even now, NavigationPreloadManager itself is still available ...
3 years, 8 months ago (2017-03-30 05:33:24 UTC) #24
Reilly Grant (use Gerrit)
Note that in theory [OriginTrialEnabled] would imply [SecureContext] except that when the --experimental-web-platform-features flag is ...
3 years, 8 months ago (2017-03-30 06:47:05 UTC) #25
Yuki
Thanks for the explanation. LGTM.
3 years, 8 months ago (2017-03-30 07:43:00 UTC) #26
haraken
LGTM However, it's unfortunate that the current implementation of [SecureContext] is wrong and causing a ...
3 years, 8 months ago (2017-03-30 14:25:26 UTC) #28
Matt Giuca
Leaving this open to decide what to do about the FeaturePolicy part (I sent an ...
3 years, 8 months ago (2017-03-31 05:27:37 UTC) #29
Matt Giuca
I didn't hear back from Ian. Under the "better than nothing" policy, I'm going to ...
3 years, 8 months ago (2017-04-04 05:36:51 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2780093003/60001
3 years, 8 months ago (2017-04-04 05:42:04 UTC) #33
commit-bot: I haz the power
3 years, 8 months ago (2017-04-04 07:23:29 UTC) #36
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/eb6e06daaefc9d173132724d905c...

Powered by Google App Engine
This is Rietveld 408576698