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

Issue 1864733002: Prepare Chrome Extensions for ES2015 RegExp semantics (Closed)

Created:
4 years, 8 months ago by Dan Ehrenberg
Modified:
4 years, 8 months ago
Reviewers:
Devlin, meacer
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, extensions-reviews_chromium.org, Michael Hablich, nikolaos
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Prepare Chrome Extensions for ES2015 RegExp semantics This patch maintains Chrome Extensions infrastructure resilient against monkey-patching changes to RegExp.prototype by using exec directly. ES2015 makes methods like RegExp.prototype.test and String.prototype.replace call the current, rather than original, value of RegExp.prototype.exec. This patch avoids calling those functions. BUG=v8:4883 R=rdevlin.cronin@chromium.org,meacer@chromium.org TEST=ran previously failing browser_tests with a version of V8 which includes full ES2015 RegExp semantics, and observed it to pass. Committed: https://crrev.com/a4d29aaa90d74d4461941f2255b93c9813817696 Cr-Commit-Position: refs/heads/master@{#385311}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Move comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -8 lines) Patch
M extensions/renderer/resources/binding.js View 1 2 chunks +21 lines, -7 lines 0 comments Download
M extensions/renderer/safe_builtins.cc View 1 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 10 (3 generated)
Dan Ehrenberg
This new version addresses review feedback from https://codereview.chromium.org/1863573004
4 years, 8 months ago (2016-04-05 20:20:43 UTC) #1
Devlin
lgtm with nit https://codereview.chromium.org/1864733002/diff/1/extensions/renderer/resources/binding.js File extensions/renderer/resources/binding.js (right): https://codereview.chromium.org/1864733002/diff/1/extensions/renderer/resources/binding.js#newcode141 extensions/renderer/resources/binding.js:141: // Use exec rather than test ...
4 years, 8 months ago (2016-04-05 20:37:51 UTC) #2
Dan Ehrenberg
https://codereview.chromium.org/1864733002/diff/1/extensions/renderer/resources/binding.js File extensions/renderer/resources/binding.js (right): https://codereview.chromium.org/1864733002/diff/1/extensions/renderer/resources/binding.js#newcode141 extensions/renderer/resources/binding.js:141: // Use exec rather than test to defend against ...
4 years, 8 months ago (2016-04-05 20:48:47 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1864733002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1864733002/20001
4 years, 8 months ago (2016-04-05 20:49:04 UTC) #6
meacer
Looks straightforward from a security perspective, lgtm too
4 years, 8 months ago (2016-04-05 21:02:34 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 8 months ago (2016-04-05 22:44:39 UTC) #8
commit-bot: I haz the power
4 years, 8 months ago (2016-04-05 22:46:27 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/a4d29aaa90d74d4461941f2255b93c9813817696
Cr-Commit-Position: refs/heads/master@{#385311}

Powered by Google App Engine
This is Rietveld 408576698