BUg 1163317 browser_tabopen_reflow.js should ignore reflow when IMEContentObserver notifies IME of selection change r=ttaubert
authorMasayuki Nakano <masayuki@d-toybox.com>
Sun, 10 May 2015 01:09:05 +0900
changeset 243343 bc7b2813eb3b00e960100c1fab8660e6e2f5443f
parent 243342 a5401e748b13276db9be4e577654d67f142db5f7
child 243344 d5d2f6e45d70aa590a0e5942323994a1e5a5911c
push id28738
push usercbook@mozilla.com
push dateTue, 12 May 2015 14:11:31 +0000
treeherderautoland@bedce1b405a3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersttaubert
bugs1163317
milestone40.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
BUg 1163317 browser_tabopen_reflow.js should ignore reflow when IMEContentObserver notifies IME of selection change r=ttaubert
browser/base/content/test/general/browser_tabopen_reflows.js
--- a/browser/base/content/test/general/browser_tabopen_reflows.js
+++ b/browser/base/content/test/general/browser_tabopen_reflows.js
@@ -41,16 +41,25 @@ const EXPECTED_REFLOWS = [
     "TabItems_link@chrome://browser/content/tabview.js|" +
     "TabItems_init/this._eventListeners.open@chrome://browser/content/tabview.js|",
 
   // SessionStore.getWindowDimensions()
   "ssi_getWindowDimension@resource:///modules/sessionstore/SessionStore.jsm|" +
     "ssi_updateWindowFeatures/<@resource:///modules/sessionstore/SessionStore.jsm|" +
     "ssi_updateWindowFeatures@resource:///modules/sessionstore/SessionStore.jsm|" +
     "ssi_collectWindowData@resource:///modules/sessionstore/SessionStore.jsm|",
+
+  // selection change notification may cause querying the focused editor content
+  // by IME and that will cause reflow.
+  "select@chrome://global/content/bindings/textbox.xml|" +
+    "focusAndSelectUrlBar@chrome://browser/content/browser.js|" +
+    "openLinkIn@chrome://browser/content/utilityOverlay.js|" +
+    "openUILinkIn@chrome://browser/content/utilityOverlay.js|" +
+    "BrowserOpenTab@chrome://browser/content/browser.js|",
+
 ];
 
 const PREF_PRELOAD = "browser.newtab.preload";
 const PREF_NEWTAB_DIRECTORYSOURCE = "browser.newtabpage.directory.source";
 
 /*
  * This test ensures that there are no unexpected
  * uninterruptible reflows when opening new tabs.