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

Issue 10870013: Disable DOM MutationEvents for platform apps (Closed)

Created:
8 years, 4 months ago by adamk
Modified:
8 years, 4 months ago
CC:
chromium-reviews, darin-cc_chromium.org, brettw-cc_chromium.org, rafaelw
Base URL:
http://git.chromium.org/chromium/src.git@git-svn
Visibility:
Public.

Description

Disable DOM MutationEvents for platform apps New apps should use MutationObservers instead, which provide similar (or better) capabilities without the performance and stability/security downsides of MutationEvents. BUG=142648 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=152914

Patch Set 1 #

Total comments: 2

Patch Set 2 : Added test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -19 lines) Patch
M chrome/browser/extensions/platform_app_browsertest.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/renderer/chrome_render_view_observer.h View 3 chunks +7 lines, -4 lines 0 comments Download
M chrome/renderer/chrome_render_view_observer.cc View 1 3 chunks +23 lines, -16 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/mutation_events/main.html View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/mutation_events/main.js View 1 1 chunk +42 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/mutation_events/manifest.json View 1 1 chunk +1 line, -1 line 0 comments Download
A + chrome/test/data/extensions/platform_apps/mutation_events/test.js View 1 0 chunks +-1 lines, --1 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
adamk
How do I test this? A similar change for WebComponents didn't add any tests, but ...
8 years, 4 months ago (2012-08-22 17:45:24 UTC) #1
Mihai Parparita -not on Chrome
I later added a test for Shadow DOM being enable for apps only in http://crrev.com/145229. ...
8 years, 4 months ago (2012-08-22 18:46:48 UTC) #2
Mihai Parparita -not on Chrome
https://chromiumcodereview.appspot.com/10870013/diff/1/chrome/renderer/chrome_render_view_observer.cc File chrome/renderer/chrome_render_view_observer.cc (right): https://chromiumcodereview.appspot.com/10870013/diff/1/chrome/renderer/chrome_render_view_observer.cc#newcode538 chrome/renderer/chrome_render_view_observer.cc:538: if (!EqualsASCII(origin.protocol(), chrome::kExtensionScheme)) I don't think you need this ...
8 years, 4 months ago (2012-08-22 20:04:05 UTC) #3
adamk
I've added a test (and verified that it fails without my patch). https://chromiumcodereview.appspot.com/10870013/diff/1/chrome/renderer/chrome_render_view_observer.cc File chrome/renderer/chrome_render_view_observer.cc ...
8 years, 4 months ago (2012-08-22 21:39:53 UTC) #4
Mihai Parparita -not on Chrome
LGTM
8 years, 4 months ago (2012-08-22 21:51:04 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/adamk@chromium.org/10870013/4002
8 years, 4 months ago (2012-08-22 22:01:31 UTC) #6
commit-bot: I haz the power
Presubmit check for 10870013-4002 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 4 months ago (2012-08-22 22:01:41 UTC) #7
adamk
+thakis for chrome OWNERS (randomly-selected).
8 years, 4 months ago (2012-08-22 22:04:34 UTC) #8
Nico
lgtm
8 years, 4 months ago (2012-08-22 22:06:29 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/adamk@chromium.org/10870013/4002
8 years, 4 months ago (2012-08-22 22:07:38 UTC) #10
commit-bot: I haz the power
Try job failure for 10870013-4002 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 4 months ago (2012-08-22 23:21:03 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/adamk@chromium.org/10870013/4002
8 years, 4 months ago (2012-08-22 23:26:11 UTC) #12
commit-bot: I haz the power
8 years, 4 months ago (2012-08-23 01:46:47 UTC) #13
Change committed as 152914

Powered by Google App Engine
This is Rietveld 408576698