From 88278f8c518477498db51eaeebef274e7ad9efca Mon Sep 17 00:00:00 2001 From: Victor Porof Date: Fri, 23 Dec 2011 20:23:25 +0200 Subject: [PATCH 01/23] Bug 713260 - Add a Tilt test for content location changes. r=rcampbell --- browser/devtools/tilt/test/Makefile.in | 1 + .../test/browser_tilt_05_destruction-url.js | 41 +++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 browser/devtools/tilt/test/browser_tilt_05_destruction-url.js diff --git a/browser/devtools/tilt/test/Makefile.in b/browser/devtools/tilt/test/Makefile.in index 9c3ee17eaea..795bd885466 100644 --- a/browser/devtools/tilt/test/Makefile.in +++ b/browser/devtools/tilt/test/Makefile.in @@ -51,6 +51,7 @@ _BROWSER_TEST_FILES = \ browser_tilt_03_tab_switch.js \ browser_tilt_04_initialization.js \ browser_tilt_05_destruction-esc.js \ + browser_tilt_05_destruction-url.js \ browser_tilt_05_destruction.js \ browser_tilt_arcball.js \ browser_tilt_controller.js \ diff --git a/browser/devtools/tilt/test/browser_tilt_05_destruction-url.js b/browser/devtools/tilt/test/browser_tilt_05_destruction-url.js new file mode 100644 index 00000000000..365170fa28f --- /dev/null +++ b/browser/devtools/tilt/test/browser_tilt_05_destruction-url.js @@ -0,0 +1,41 @@ +/* Any copyright is dedicated to the Public Domain. + http://creativecommons.org/publicdomain/zero/1.0/ */ + +/*global ok, is, info, waitForExplicitFinish, finish, gBrowser */ +/*global isTiltEnabled, isWebGLSupported, createTab, createTilt */ +/*global Services, EventUtils, Tilt, TiltUtils, InspectorUI, TILT_DESTROYED */ +"use strict"; + +function test() { + if (!isTiltEnabled()) { + info("Skipping destruction test because Tilt isn't enabled."); + return; + } + if (!isWebGLSupported()) { + info("Skipping destruction test because WebGL isn't supported."); + return; + } + + waitForExplicitFinish(); + + createTab(function() { + createTilt({ + onTiltOpen: function() + { + Services.obs.addObserver(cleanup, TILT_DESTROYED, false); + window.content.location = "about:mozilla"; + } + }); + }); +} + +function cleanup() { + let id = TiltUtils.getWindowId(gBrowser.selectedBrowser.contentWindow); + + is(Tilt.visualizers[id], null, + "The current instance of the visualizer wasn't destroyed properly."); + + Services.obs.removeObserver(cleanup, TILT_DESTROYED); + gBrowser.removeCurrentTab(); + finish(); +} From 6b153a37f92038b4701b844bcb900eeac7fe04b1 Mon Sep 17 00:00:00 2001 From: Victor Porof Date: Sat, 24 Dec 2011 14:22:22 +0200 Subject: [PATCH 02/23] Bug 711966 - Change Tilt accesskey to "3" on Windows and "D" on OS X and Linux. r=dao,rcampbell --- browser/base/content/browser.xul | 4 ++-- browser/locales/en-US/chrome/browser/browser.dtd | 9 +++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/browser/base/content/browser.xul b/browser/base/content/browser.xul index e5284b74f85..7119f676100 100644 --- a/browser/base/content/browser.xul +++ b/browser/base/content/browser.xul @@ -1014,8 +1014,8 @@