зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset df4ae5ba7d6e (bug 978861) due to m-o test failures.
This commit is contained in:
Родитель
a3006ab351
Коммит
6ef0a43d82
|
@ -523,11 +523,7 @@ pref("accessibility.typeaheadfind.timeout", 4000);
|
|||
pref("accessibility.typeaheadfind.enabletimeout", true);
|
||||
pref("accessibility.typeaheadfind.soundURL", "beep");
|
||||
pref("accessibility.typeaheadfind.enablesound", true);
|
||||
#ifdef XP_MACOSX
|
||||
pref("accessibility.typeaheadfind.prefillwithselection", false);
|
||||
#else
|
||||
pref("accessibility.typeaheadfind.prefillwithselection", true);
|
||||
#endif
|
||||
pref("accessibility.typeaheadfind.matchesCountTimeout", 250);
|
||||
pref("accessibility.typeaheadfind.matchesCountLimit", 100);
|
||||
|
||||
|
|
|
@ -33,12 +33,6 @@
|
|||
var gClipboard = Cc["@mozilla.org/widget/clipboard;1"].getService(Ci.nsIClipboard);
|
||||
var gHasFindClipboard = gClipboard.supportsFindClipboard();
|
||||
|
||||
// Since bug 978861, this pref is set to `false` on OSX. For this test, we'll
|
||||
// set it `true` to disable the find clipboard on OSX, which interferes with
|
||||
// our tests.
|
||||
let prefsvc = Cc["@mozilla.org/preferences-service;1"].getService(Ci.nsIPrefBranch);
|
||||
prefsvc.setBoolPref("accessibility.typeaheadfind.prefillwithselection", true);
|
||||
|
||||
var gStatusText;
|
||||
var gXULBrowserWindow = {
|
||||
QueryInterface: function(aIID) {
|
||||
|
@ -365,10 +359,12 @@
|
|||
highlightButton.click();
|
||||
ok(highlightButton.checked, "testFindWithHighlight 3: Highlight All should be checked.");
|
||||
|
||||
a = gFindBar._findField.value;
|
||||
b = gFindBar._browser.finder._fastFind.searchString;
|
||||
c = gFindBar._browser.finder.searchString;
|
||||
ok(a == searchStr && b == c, "testFindWithHighlight 4: " + a + ", " + b + ", " + c + ".");
|
||||
if (!gHasFindClipboard) {
|
||||
a = gFindBar._findField.value;
|
||||
b = gFindBar._browser.finder._fastFind.searchString;
|
||||
c = gFindBar._browser.finder.searchString;
|
||||
ok(a == searchStr && b == c, "testFindWithHighlight 4: " + a + ", " + b + ", " + c + ".");
|
||||
}
|
||||
|
||||
gFindBar.onFindAgainCommand();
|
||||
a = gFindBar._findField.value;
|
||||
|
@ -493,6 +489,9 @@
|
|||
}
|
||||
|
||||
function testClipboardSearchString(aExpected) {
|
||||
if (!gHasFindClipboard)
|
||||
return;
|
||||
|
||||
if (!aExpected)
|
||||
aExpected = "";
|
||||
var searchStr = gFindBar.browser.finder.clipboardSearchString;
|
||||
|
|
|
@ -1198,13 +1198,6 @@
|
|||
|
||||
<method name="_onFindFieldFocus">
|
||||
<body><![CDATA[
|
||||
let prefsvc =
|
||||
Components.classes["@mozilla.org/preferences-service;1"]
|
||||
.getService(Components.interfaces.nsIPrefBranch);
|
||||
const kPref = "accessibility.typeaheadfind.prefillwithselection";
|
||||
if (this.prefillWithSelection && prefsvc.getBoolPref(kPref))
|
||||
return;
|
||||
|
||||
let clipboardSearchString = this._browser.finder.clipboardSearchString;
|
||||
if (clipboardSearchString && this._findField.value != clipboardSearchString) {
|
||||
this._findField.value = clipboardSearchString;
|
||||
|
|
Загрузка…
Ссылка в новой задаче