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

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

Created:
4 years, 8 months ago by nickie
Modified:
4 years, 8 months ago
CC:
Dan Ehrenberg, chromium-apps-reviews_chromium.org, chromium-reviews, extensions-reviews_chromium.org, Michael Hablich
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 TEST=ran previously failing browser_tests with a version of V8 which includes full ES2015 RegExp semantics, and observed it to pass.

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Minor change and fix rebase #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -8 lines) Patch
M extensions/renderer/resources/binding.js View 1 2 2 chunks +14 lines, -7 lines 6 comments Download
M extensions/renderer/safe_builtins.cc View 1 chunk +1 line, -1 line 4 comments Download

Messages

Total messages: 26 (15 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1863573004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1863573004/20001
4 years, 8 months ago (2016-04-05 14:28:13 UTC) #3
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/191328)
4 years, 8 months ago (2016-04-05 15:30:58 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1863573004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1863573004/40001
4 years, 8 months ago (2016-04-05 17:49:57 UTC) #7
commit-bot: I haz the power
Dry run: No L-G-T-M from a valid reviewer yet. CQ run can only be started ...
4 years, 8 months ago (2016-04-05 17:49:59 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1863573004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1863573004/40001
4 years, 8 months ago (2016-04-05 17:51:47 UTC) #11
Dan Ehrenberg
4 years, 8 months ago (2016-04-05 17:59:08 UTC) #16
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-05 19:05:07 UTC) #19
Devlin
I'd also update the description a bit to make it clear that this is just ...
4 years, 8 months ago (2016-04-05 19:15:50 UTC) #20
Devlin
https://codereview.chromium.org/1863573004/diff/40001/extensions/renderer/safe_builtins.cc File extensions/renderer/safe_builtins.cc (right): https://codereview.chromium.org/1863573004/diff/40001/extensions/renderer/safe_builtins.cc#newcode83 extensions/renderer/safe_builtins.cc:83: " ['exec']);\n" Also, might be worth adding a comment ...
4 years, 8 months ago (2016-04-05 19:16:39 UTC) #21
Dan Ehrenberg
I am not the owner of this patch, so I fixed the issues from the ...
4 years, 8 months ago (2016-04-05 20:20:58 UTC) #24
nickie
4 years, 8 months ago (2016-04-06 07:55:05 UTC) #25
This was moved and landed as https://codereview.chromium.org/1864733002/

Powered by Google App Engine
This is Rietveld 408576698