This commit is contained in:
Ryan VanderMeulen 2013-09-30 16:56:29 -04:00
Родитель ccdcb7bf86 ad7d17c453
Коммит b3cf6d5c2a
902 изменённых файлов: 15009 добавлений и 15381 удалений

Просмотреть файл

@ -31,6 +31,7 @@
#include "nsIServiceManager.h"
#include "nsTextFragment.h"
#include "mozilla/Selection.h"
#include "mozilla/MathAlgorithms.h"
#include "gfxSkipChars.h"
#include <algorithm>
@ -195,7 +196,7 @@ HyperTextAccessible::GetBoundsForString(nsIFrame* aFrame, uint32_t aStartRendere
NS_ENSURE_SUCCESS(rv, nsIntRect());
frameScreenRect.x += std::min(frameTextStartPoint.x, frameTextEndPoint.x);
frameScreenRect.width = std::abs(frameTextStartPoint.x - frameTextEndPoint.x);
frameScreenRect.width = mozilla::Abs(frameTextStartPoint.x - frameTextEndPoint.x);
screenRect.UnionRect(frameScreenRect, screenRect);

Просмотреть файл

@ -3,17 +3,3 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
MOCHITEST_A11Y_FILES =\
test_anchors.html \
test_aria.html \
test_general.html \
test_general.xul \
test_controls.html \
test_keys_menu.xul \
test_keys.html \
test_link.html \
test_media.html \
test_select.html \
test_tree.xul \
test_treegrid.xul \
$(NULL)

Просмотреть файл

@ -0,0 +1,14 @@
[DEFAULT]
[test_anchors.html]
[test_aria.html]
[test_controls.html]
[test_general.html]
[test_general.xul]
[test_keys.html]
[test_keys_menu.xul]
[test_link.html]
[test_media.html]
[test_select.html]
[test_tree.xul]
[test_treegrid.xul]

Просмотреть файл

@ -3,3 +3,6 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
A11Y_MANIFESTS += ['a11y.ini']

Просмотреть файл

@ -3,13 +3,3 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
MOCHITEST_A11Y_FILES =\
test_obj.html \
test_obj_css.html \
test_obj_css.xul \
test_obj_group.html \
test_obj_group.xul \
test_obj_group_tree.xul \
test_tag.html \
test_xml-roles.html \
$(NULL)

Просмотреть файл

@ -0,0 +1,10 @@
[DEFAULT]
[test_obj.html]
[test_obj_css.html]
[test_obj_css.xul]
[test_obj_group.html]
[test_obj_group.xul]
[test_obj_group_tree.xul]
[test_tag.html]
[test_xml-roles.html]

Просмотреть файл

@ -4,3 +4,5 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
A11Y_MANIFESTS += ['a11y.ini']

Просмотреть файл

@ -3,9 +3,3 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
MOCHITEST_A11Y_FILES =\
test_list.html \
test_select.html \
test_zoom_text.html \
test_zoom.html \
$(NULL)

Просмотреть файл

@ -0,0 +1,6 @@
[DEFAULT]
[test_list.html]
[test_select.html]
[test_zoom.html]
[test_zoom_text.html]

Просмотреть файл

@ -4,3 +4,5 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
A11Y_MANIFESTS += ['a11y.ini']

Просмотреть файл

@ -3,8 +3,3 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
MOCHITEST_A11Y_FILES =\
editabletext.js \
test_1.html \
test_2.html \
$(NULL)

Просмотреть файл

@ -0,0 +1,5 @@
[DEFAULT]
support-files = editabletext.js
[test_1.html]
[test_2.html]

Просмотреть файл

@ -4,3 +4,5 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
A11Y_MANIFESTS += ['a11y.ini']

Просмотреть файл

@ -3,10 +3,3 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
MOCHITEST_A11Y_FILES =\
test_figure.html \
test_HTMLSpec.html \
test_listbox.xul \
test_nsApplicationAcc.html \
test_plugin.html \
$(NULL)

Просмотреть файл

@ -0,0 +1,7 @@
[DEFAULT]
[test_HTMLSpec.html]
[test_figure.html]
[test_listbox.xul]
[test_nsApplicationAcc.html]
[test_plugin.html]

Просмотреть файл

@ -4,3 +4,5 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
A11Y_MANIFESTS += ['a11y.ini']

Просмотреть файл

@ -3,56 +3,6 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
MOCHITEST_A11Y_FILES =\
docload_wnd.html \
focus.html \
scroll.html \
test_aria_alert.html \
test_aria_menu.html \
test_aria_objattr.html \
test_aria_statechange.html \
test_attrs.html \
test_caretmove.html \
test_caretmove.xul \
test_coalescence.html \
test_contextmenu.html \
test_docload_aria.html \
test_docload.html \
test_docload.xul \
test_dragndrop.html \
test_flush.html \
test_focus_aria_activedescendant.html \
test_focus_browserui.xul \
test_focus_canvas.html \
test_focus_contextmenu.xul \
test_focus_controls.html \
test_focus_dialog.html \
test_focus_doc.html \
test_focus_general.html \
test_focus_general.xul \
test_focus_listcontrols.xul \
test_focus_menu.xul \
test_focus_name.html \
test_focus_selects.html \
test_focus_tabbox.xul \
test_focus_tree.xul \
test_fromUserInput.html \
test_label.xul \
test_menu.xul \
test_mutation.html \
test_mutation.xhtml \
test_scroll.xul \
test_selection_aria.html \
test_selection.html \
test_selection.xul \
test_statechange.html \
test_text_alg.html \
test_text.html \
test_textattrchange.html \
test_tree.xul \
test_valuechange.html \
$(NULL)
# Disabled on Linux and Windows due to frequent failures - bug 695019, bug 890795
ifeq (,$(filter Linux WINNT,$(OS_ARCH)))
MOCHITEST_A11Y_FILES += \

Просмотреть файл

@ -0,0 +1,50 @@
[DEFAULT]
support-files =
docload_wnd.html
focus.html
scroll.html
[test_aria_alert.html]
[test_aria_menu.html]
[test_aria_objattr.html]
[test_aria_statechange.html]
[test_attrs.html]
[test_caretmove.html]
[test_caretmove.xul]
[test_coalescence.html]
[test_contextmenu.html]
[test_docload.html]
[test_docload.xul]
[test_docload_aria.html]
[test_dragndrop.html]
[test_flush.html]
[test_focus_aria_activedescendant.html]
[test_focus_browserui.xul]
[test_focus_canvas.html]
[test_focus_contextmenu.xul]
[test_focus_controls.html]
[test_focus_dialog.html]
[test_focus_doc.html]
[test_focus_general.html]
[test_focus_general.xul]
[test_focus_listcontrols.xul]
[test_focus_menu.xul]
[test_focus_name.html]
[test_focus_selects.html]
[test_focus_tabbox.xul]
[test_focus_tree.xul]
[test_fromUserInput.html]
[test_label.xul]
[test_menu.xul]
[test_mutation.html]
[test_mutation.xhtml]
[test_scroll.xul]
[test_selection.html]
[test_selection.xul]
[test_selection_aria.html]
[test_statechange.html]
[test_text.html]
[test_text_alg.html]
[test_textattrchange.html]
[test_tree.xul]
[test_valuechange.html]

Просмотреть файл

@ -4,3 +4,5 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
A11Y_MANIFESTS += ['a11y.ini']

Просмотреть файл

@ -3,8 +3,3 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
MOCHITEST_A11Y_FILES =\
test_focusedChild.html \
test_takeFocus.html \
test_takeFocus.xul \
$(NULL)

Просмотреть файл

@ -0,0 +1,5 @@
[DEFAULT]
[test_focusedChild.html]
[test_takeFocus.html]
[test_takeFocus.xul]

Просмотреть файл

@ -4,3 +4,5 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
A11Y_MANIFESTS += ['a11y.ini']

Просмотреть файл

@ -3,12 +3,3 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
MOCHITEST_A11Y_FILES = \
test_browser.html \
test_general.html \
test_menu.xul \
test_zoom_text.html \
test_zoom_tree.xul \
test_zoom.html \
zoom_tree.xul \
$(NULL)

Просмотреть файл

@ -0,0 +1,9 @@
[DEFAULT]
support-files = zoom_tree.xul
[test_browser.html]
[test_general.html]
[test_menu.xul]
[test_zoom.html]
[test_zoom_text.html]
[test_zoom_tree.xul]

Просмотреть файл

@ -4,3 +4,5 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
A11Y_MANIFESTS += ['a11y.ini']

Просмотреть файл

@ -3,8 +3,3 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
MOCHITEST_A11Y_FILES =\
hyperlink.js \
test_general.html \
test_general.xul \
$(NULL)

Просмотреть файл

@ -0,0 +1,5 @@
[DEFAULT]
support-files = hyperlink.js
[test_general.html]
[test_general.xul]

Просмотреть файл

@ -4,3 +4,5 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
A11Y_MANIFESTS += ['a11y.ini']

Просмотреть файл

@ -3,7 +3,3 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
MOCHITEST_A11Y_FILES = \
test_general.html \
test_update.html \
$(NULL)

Просмотреть файл

@ -0,0 +1,4 @@
[DEFAULT]
[test_general.html]
[test_update.html]

Просмотреть файл

@ -4,3 +4,5 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
A11Y_MANIFESTS += ['a11y.ini']

Просмотреть файл

@ -3,14 +3,3 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
MOCHITEST_A11Y_FILES =\
jsatcommon.js \
output.js \
test_alive.html \
test_braille.html \
test_explicit_names.html \
test_landmarks.html \
test_live_regions.html \
test_tables.html \
test_utterance_order.html \
$(NULL)

Просмотреть файл

@ -0,0 +1,12 @@
[DEFAULT]
support-files =
jsatcommon.js
output.js
[test_alive.html]
[test_braille.html]
[test_explicit_names.html]
[test_landmarks.html]
[test_live_regions.html]
[test_tables.html]
[test_utterance_order.html]

Просмотреть файл

@ -1,4 +1,7 @@
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
A11Y_MANIFESTS += ['a11y.ini']

Просмотреть файл

@ -3,17 +3,3 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
MOCHITEST_A11Y_FILES =\
general.css \
general.xbl \
markup.js \
test_general.html \
test_general.xul \
test_link.html \
test_list.html \
test_markup.html \
test_svg.html \
test_tree.xul \
test_browserui.xul \
markuprules.xml \
$(NULL)

Просмотреть файл

@ -0,0 +1,15 @@
[DEFAULT]
support-files =
general.css
general.xbl
markup.js
markuprules.xml
[test_browserui.xul]
[test_general.html]
[test_general.xul]
[test_link.html]
[test_list.html]
[test_markup.html]
[test_svg.html]
[test_tree.xul]

Просмотреть файл

@ -4,3 +4,5 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
A11Y_MANIFESTS += ['a11y.ini']

Просмотреть файл

@ -3,9 +3,3 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
MOCHITEST_A11Y_FILES = \
doc_virtualcursor.html \
doc_virtualcursor_text.html \
test_virtualcursor.html \
test_virtualcursor_text.html \
$(NULL)

Просмотреть файл

@ -0,0 +1,7 @@
[DEFAULT]
support-files =
doc_virtualcursor.html
doc_virtualcursor_text.html
[test_virtualcursor.html]
[test_virtualcursor_text.html]

Просмотреть файл

@ -4,3 +4,5 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
A11Y_MANIFESTS += ['a11y.ini']

Просмотреть файл

@ -3,13 +3,3 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
MOCHITEST_A11Y_FILES =\
test_bindings.xhtml \
test_embeds.xul \
test_general.html \
test_general.xul \
test_tabbrowser.xul \
test_tree.xul \
test_ui_modalprompt.html \
test_update.html \
$(NULL)

Просмотреть файл

@ -0,0 +1,10 @@
[DEFAULT]
[test_bindings.xhtml]
[test_embeds.xul]
[test_general.html]
[test_general.xul]
[test_tabbrowser.xul]
[test_tree.xul]
[test_ui_modalprompt.html]
[test_update.html]

Просмотреть файл

@ -4,3 +4,5 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
A11Y_MANIFESTS += ['a11y.ini']

Просмотреть файл

@ -2,10 +2,3 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
MOCHITEST_A11Y_FILES =\
test_aria.html \
test_aria.xul \
test_general.html \
test_general.xul \
test_svg.html \
$(NULL)

Просмотреть файл

@ -0,0 +1,7 @@
[DEFAULT]
[test_aria.html]
[test_aria.xul]
[test_general.html]
[test_general.xul]
[test_svg.html]

Просмотреть файл

@ -4,3 +4,5 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
A11Y_MANIFESTS += ['a11y.ini']

Просмотреть файл

@ -3,7 +3,3 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
MOCHITEST_A11Y_FILES =\
test_zoom_text.html \
test_zoom.html \
$(NULL)

Просмотреть файл

@ -0,0 +1,4 @@
[DEFAULT]
[test_zoom.html]
[test_zoom_text.html]

Просмотреть файл

@ -4,3 +4,5 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
A11Y_MANIFESTS += ['a11y.ini']

Просмотреть файл

@ -3,11 +3,3 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
MOCHITEST_A11Y_FILES =\
test_aria.html \
test_listbox.xul \
test_menu.xul \
test_menulist.xul \
test_select.html \
test_tree.xul \
$(NULL)

Просмотреть файл

@ -0,0 +1,8 @@
[DEFAULT]
[test_aria.html]
[test_listbox.xul]
[test_menu.xul]
[test_menulist.xul]
[test_select.html]
[test_tree.xul]

Просмотреть файл

@ -4,3 +4,5 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
A11Y_MANIFESTS += ['a11y.ini']

Просмотреть файл

@ -3,32 +3,3 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
MOCHITEST_A11Y_FILES =\
test_aria.html \
test_aria_imgmap.html \
test_aria_widgetitems.html \
test_buttons.html \
test_controls.html \
test_controls.xul \
test_doc.html \
test_doc_busy.html \
test_docarticle.html \
test_editablebody.html \
test_expandable.xul \
test_frames.html \
test_inputs.html \
test_link.html \
test_popup.xul \
test_selects.html \
test_stale.html \
test_textbox.xul \
test_tabs.xul \
test_tree.xul \
test_visibility.html \
test_visibility.xul \
z_frames.html \
z_frames_article.html \
z_frames_checkbox.html \
z_frames_textbox.html \
z_frames_update.html \
$(NULL)

Просмотреть файл

@ -0,0 +1,30 @@
[DEFAULT]
support-files =
z_frames.html
z_frames_article.html
z_frames_checkbox.html
z_frames_textbox.html
z_frames_update.html
[test_aria.html]
[test_aria_imgmap.html]
[test_aria_widgetitems.html]
[test_buttons.html]
[test_controls.html]
[test_controls.xul]
[test_doc.html]
[test_doc_busy.html]
[test_docarticle.html]
[test_editablebody.html]
[test_expandable.xul]
[test_frames.html]
[test_inputs.html]
[test_link.html]
[test_popup.xul]
[test_selects.html]
[test_stale.html]
[test_tabs.xul]
[test_textbox.xul]
[test_tree.xul]
[test_visibility.html]
[test_visibility.xul]

Просмотреть файл

@ -4,3 +4,5 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
A11Y_MANIFESTS += ['a11y.ini']

Просмотреть файл

@ -3,25 +3,3 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
MOCHITEST_A11Y_FILES = \
test_headers_ariagrid.html \
test_headers_listbox.xul \
test_headers_table.html \
test_headers_tree.xul \
test_indexes_ariagrid.html \
test_indexes_listbox.xul \
test_indexes_table.html \
test_indexes_tree.xul \
test_layoutguess.html \
test_sels_ariagrid.html \
test_sels_listbox.xul \
test_sels_table.html \
test_sels_tree.xul \
test_struct_ariagrid.html \
test_struct_ariatreegrid.html \
test_struct_listbox.xul \
test_struct_table.html \
test_struct_tree.xul \
test_table_1.html \
test_table_2.html \
$(NULL)

Просмотреть файл

@ -0,0 +1,22 @@
[DEFAULT]
[test_headers_ariagrid.html]
[test_headers_listbox.xul]
[test_headers_table.html]
[test_headers_tree.xul]
[test_indexes_ariagrid.html]
[test_indexes_listbox.xul]
[test_indexes_table.html]
[test_indexes_tree.xul]
[test_layoutguess.html]
[test_sels_ariagrid.html]
[test_sels_listbox.xul]
[test_sels_table.html]
[test_sels_tree.xul]
[test_struct_ariagrid.html]
[test_struct_ariatreegrid.html]
[test_struct_listbox.xul]
[test_struct_table.html]
[test_struct_tree.xul]
[test_table_1.html]
[test_table_2.html]

Просмотреть файл

@ -4,3 +4,5 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
A11Y_MANIFESTS += ['a11y.ini']

Просмотреть файл

@ -3,17 +3,3 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
MOCHITEST_A11Y_FILES = \
doc.html \
test_atcaretoffset.html \
test_charboundary.html \
test_doc.html \
test_general.xul \
test_gettext.html \
test_hypertext.html \
test_lineboundary.html \
test_passwords.html \
test_selection.html \
test_wordboundary.html \
test_words.html \
$(NULL)

Просмотреть файл

@ -0,0 +1,14 @@
[DEFAULT]
support-files = doc.html
[test_atcaretoffset.html]
[test_charboundary.html]
[test_doc.html]
[test_general.xul]
[test_gettext.html]
[test_hypertext.html]
[test_lineboundary.html]
[test_passwords.html]
[test_selection.html]
[test_wordboundary.html]
[test_words.html]

Просмотреть файл

@ -4,3 +4,5 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
A11Y_MANIFESTS += ['a11y.ini']

Просмотреть файл

@ -3,7 +3,3 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
MOCHITEST_A11Y_FILES =\
test_general.html \
test_invalid.html \
$(NULL)

Просмотреть файл

@ -0,0 +1,4 @@
[DEFAULT]
[test_general.html]
[test_invalid.html]

Просмотреть файл

@ -4,3 +4,5 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
A11Y_MANIFESTS += ['a11y.ini']

Просмотреть файл

@ -3,7 +3,3 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
MOCHITEST_A11Y_FILES = \
test_browserui.xul \
test_general.html \
$(NULL)

Просмотреть файл

@ -0,0 +1,4 @@
[DEFAULT]
[test_browserui.xul]
[test_general.html]

Просмотреть файл

@ -4,3 +4,5 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
A11Y_MANIFESTS += ['a11y.ini']

Просмотреть файл

@ -3,7 +3,3 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
MOCHITEST_A11Y_FILES = \
test_general.html \
test_userinput.html \
$(NULL)

Просмотреть файл

@ -0,0 +1,4 @@
[DEFAULT]
[test_general.html]
[test_userinput.html]

Просмотреть файл

@ -4,3 +4,5 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
A11Y_MANIFESTS += ['a11y.ini']

Просмотреть файл

@ -3,27 +3,3 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
MOCHITEST_A11Y_FILES =\
test_ariadialog.html \
test_canvas.html \
test_colorpicker.xul \
test_cssoverflow.html \
test_contextmenu.xul \
test_deck.xul \
test_doc.html \
test_gencontent.html \
test_hidden.html \
test_imagemap.html \
test_list_editabledoc.html \
test_list.html \
test_listbox.xul \
test_menu.xul \
test_menubutton.xul \
test_optgroup.html \
test_recreation.html \
test_select.html \
test_bug852150.xhtml \
test_textleaf.html \
test_visibility.html \
test_whitespace.html \
$(NULL)

Просмотреть файл

@ -0,0 +1,24 @@
[DEFAULT]
[test_ariadialog.html]
[test_bug852150.xhtml]
[test_canvas.html]
[test_colorpicker.xul]
[test_contextmenu.xul]
[test_cssoverflow.html]
[test_deck.xul]
[test_doc.html]
[test_gencontent.html]
[test_hidden.html]
[test_imagemap.html]
[test_list.html]
[test_list_editabledoc.html]
[test_listbox.xul]
[test_menu.xul]
[test_menubutton.xul]
[test_optgroup.html]
[test_recreation.html]
[test_select.html]
[test_textleaf.html]
[test_visibility.html]
[test_whitespace.html]

Просмотреть файл

@ -4,3 +4,5 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
A11Y_MANIFESTS += ['a11y.ini']

Просмотреть файл

@ -3,9 +3,3 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
MOCHITEST_A11Y_FILES =\
test_general.html \
test_progress.html \
test_progress.xul \
test_range.html \
$(NULL)

Просмотреть файл

@ -0,0 +1,6 @@
[DEFAULT]
[test_general.html]
[test_progress.html]
[test_progress.xul]
[test_range.html]

Просмотреть файл

@ -4,3 +4,5 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
A11Y_MANIFESTS += ['a11y.ini']

Просмотреть файл

@ -925,7 +925,7 @@ function getSelectionRange(element) {
// Get the selection range of contenteditable elements
let win = element.ownerDocument.defaultView;
let sel = win.getSelection();
if (sel) {
if (sel && sel.rangeCount > 0) {
start = getContentEditableSelectionStart(element, sel);
end = start + getContentEditableSelectionLength(element, sel);
} else {

Просмотреть файл

@ -1,4 +1,4 @@
{
"revision": "290fc4628fbf4de6c75fd2ea796b1065a6e50043",
"revision": "a4a7f42eac6eb7813b097c716b264d675fceeae8",
"repo_path": "/integration/gaia-central"
}

Просмотреть файл

@ -54,4 +54,6 @@ MOZ_PAY=1
MOZ_TOOLKIT_SEARCH=
MOZ_PLACES=
MOZ_B2G=1
#MOZ_NUWA_PROCESS=1
MOZ_FOLD_LIBS=1

Просмотреть файл

@ -2,6 +2,3 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
MOCHITEST_CHROME_FILES = \
test_aboutCrashed.xul \
$(NULL)

Просмотреть файл

@ -0,0 +1,3 @@
[DEFAULT]
[test_aboutCrashed.xul]

Просмотреть файл

@ -4,3 +4,5 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
MOCHITEST_CHROME_MANIFESTS += ['chrome.ini']

Просмотреть файл

@ -2,35 +2,6 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
MOCHITEST_FILES = \
head_plain.js \
bug364677-data.xml \
bug364677-data.xml^headers^ \
bug395533-data.txt \
ctxmenu-image.png \
feed_discovery.html \
gZipOfflineChild.cacheManifest \
gZipOfflineChild.cacheManifest^headers^ \
gZipOfflineChild.html \
gZipOfflineChild.html^headers^ \
offlineChild.cacheManifest \
offlineChild.cacheManifest^headers^ \
offlineChild.html \
offlineChild2.cacheManifest \
offlineChild2.cacheManifest^headers^ \
offlineChild2.html \
offlineEvent.cacheManifest \
offlineEvent.cacheManifest^headers^ \
offlineEvent.html \
test_bug364677.html \
test_bug395533.html \
test_feed_discovery.html \
test_offline_gzip.html \
test_offlineNotification.html \
video.ogg \
offlineByDefault.js \
$(NULL)
# test_contextmenu.html and test_contextmenu_input are disabled on Linux due to bug 513558
ifndef MOZ_WIDGET_GTK
MOCHITEST_FILES += \
@ -55,290 +26,6 @@ endif
# browser_bug321000.js is disabled because newline handling is shaky (bug 592528)
MOCHITEST_BROWSER_FILES = \
head.js \
alltabslistener.html \
app_bug575561.html \
app_subframe_bug575561.html \
authenticate.sjs \
blockNoPlugins.xml \
blockPluginHard.xml \
blockPluginVulnerableNoUpdate.xml \
blockPluginVulnerableUpdatable.xml \
browser_aboutHealthReport.js \
browser_aboutHome.js \
browser_aboutSyncProgress.js \
browser_addKeywordSearch.js \
browser_addon_bar_aomlistener.js \
browser_addon_bar_close_button.js \
browser_addon_bar_shortcut.js \
browser_alltabslistener.js \
browser_blob-channelname.js \
browser_bug304198.js \
browser_bug329212.js \
browser_bug356571.js \
browser_bug380960.js \
browser_bug386835.js \
browser_bug405137.js \
browser_bug406216.js \
browser_bug409481.js \
browser_bug409624.js \
browser_bug413915.js \
browser_bug416661.js \
browser_bug417483.js \
browser_bug419612.js \
browser_bug422590.js \
browser_bug424101.js \
browser_bug427559.js \
browser_bug432599.js \
browser_bug435035.js \
browser_bug435325.js \
browser_bug441778.js \
browser_bug455852.js \
browser_bug460146.js \
browser_bug462673.js \
browser_bug477014.js \
browser_bug479408_sample.html \
browser_bug479408.js \
browser_bug481560.js \
browser_bug484315.js \
browser_bug491431.js \
browser_bug495058.js \
browser_bug517902.js \
browser_bug519216.js \
browser_bug520538.js \
browser_bug521216.js \
browser_bug533232.js \
browser_bug537013.js \
browser_bug537474.js \
browser_bug550565.js \
browser_bug553455.js \
browser_bug555224.js \
browser_bug555767.js \
browser_bug556061.js \
browser_bug559991.js \
browser_bug561623.js \
browser_bug561636.js \
browser_bug562649.js \
browser_bug563588.js \
browser_bug565575.js \
browser_bug567306.js \
browser_bug575561.js \
browser_bug575830.js \
browser_bug577121.js \
browser_bug578534.js \
browser_bug579872.js \
browser_bug580638.js \
browser_bug580956.js \
browser_bug581242.js \
browser_bug581253.js \
browser_bug581947.js \
browser_bug585558.js \
browser_bug585785.js \
browser_bug585830.js \
browser_bug590206.js \
browser_bug592338.js \
browser_bug594131.js \
browser_bug595507.js \
browser_bug596687.js \
browser_bug597218.js \
browser_bug598923.js \
browser_bug599325.js \
browser_bug609700.js \
browser_bug616836.js \
browser_bug623155.js \
browser_bug623893.js \
browser_bug624734.js \
browser_bug647886.js \
browser_bug655584.js \
browser_bug664672.js \
browser_bug676619.js \
browser_bug678392-1.html \
browser_bug678392-2.html \
browser_bug678392.js \
browser_bug710878.js \
browser_bug719271.js \
browser_bug724239.js \
browser_bug734076.js \
browser_bug735471.js \
browser_bug743421.js \
browser_bug744745.js \
browser_bug749738.js \
browser_bug752516.js \
browser_bug763468_perwindowpb.js \
browser_bug767836_perwindowpb.js \
browser_bug771331.js \
browser_bug783614.js \
browser_bug787619.js \
browser_bug797677.js \
browser_bug812562.js \
browser_bug816527.js \
browser_bug817947.js \
browser_bug818118.js \
browser_bug820497.js \
browser_bug822367.js \
browser_bug902156.js \
browser_bug832435.js \
browser_bug839103.js \
browser_bug880101.js \
browser_bug882977.js \
browser_bug887515.js \
browser_canonizeURL.js \
browser_mixedcontent_securityflags.js \
browser_clearplugindata_noage.html \
browser_clearplugindata.html \
browser_clearplugindata.js \
browser_contentAreaClick.js \
browser_contextSearchTabPosition.js \
browser_CTP_drag_drop.js \
browser_CTP_data_urls.js \
browser_CTP_nonplugins.js \
browser_CTP_resize.js \
browser_ctrlTab.js \
browser_customize_popupNotification.js \
browser_customize.js \
browser_disablechrome.js \
browser_discovery.js \
browser_duplicateIDs.js \
browser_findbarClose.js \
browser_fullscreen-window-open.js \
browser_gestureSupport.js \
browser_getshortcutoruri.js \
browser_hide_removing.js \
browser_homeDrop.js \
browser_identity_UI.js \
browser_keywordBookmarklets.js \
browser_keywordSearch_postData.js \
browser_keywordSearch.js \
browser_lastAccessedTab.js \
browser_locationBarCommand.js \
browser_locationBarExternalLoad.js \
browser_middleMouse_inherit.js \
browser_minimize.js \
browser_offlineQuotaNotification.js \
browser_overflowScroll.js \
browser_page_style_menu.js \
browser_pageInfo_plugins.js \
browser_pageInfo.js \
browser_pinnedTabs.js \
browser_plainTextLinks.js \
browser_pluginnotification.js \
browser_pluginplaypreview.js \
browser_pluginplaypreview2.js \
browser_plugins_added_dynamically.js \
browser_popupUI.js \
browser_private_browsing_window.js \
browser_private_no_prompt.js \
browser_relatedTabs.js \
browser_removeTabsToTheEnd.js \
browser_sanitize-passwordDisabledHosts.js \
browser_sanitize-sitepermissions.js \
browser_sanitize-timespans.js \
browser_sanitizeDialog.js \
browser_save_link-perwindowpb.js \
browser_save_private_link_perwindowpb.js \
browser_save_video.js \
browser_scope.js \
browser_selectTabAtIndex.js \
browser_tab_drag_drop_perwindow.js \
browser_tab_dragdrop.js \
browser_tab_dragdrop2_frame1.xul \
browser_tab_dragdrop2.js \
browser_tabDrop.js \
browser_tabfocus.js \
browser_tabMatchesInAwesomebar_perwindowpb.js \
browser_tabopen_reflows.js \
browser_tabs_isActive.js \
browser_tabs_owner.js \
browser_typeAheadFind.js \
browser_unloaddialogs.js \
browser_urlbar_search_healthreport.js \
browser_urlbarAutoFillTrimURLs.js \
browser_urlbarCopying.js \
browser_urlbarEnter.js \
browser_urlbarRevert.js \
browser_URLBarSetURI.js \
browser_urlbarStop.js \
browser_urlbarTrimURLs.js \
browser_urlHighlight.js \
browser_utilityOverlay.js \
browser_visibleFindSelection.js \
browser_visibleTabs_bookmarkAllPages.js \
browser_visibleTabs_bookmarkAllTabs.js \
browser_visibleTabs_contextMenu.js \
browser_visibleTabs_tabPreview.js \
browser_visibleTabs.js \
browser_wyciwyg_urlbarCopying.js \
browser_zbug569342.js \
bug564387_video1.ogv \
bug564387_video1.ogv^headers^ \
bug564387.html \
bug592338.html \
bug792517-2.html \
bug792517.html \
bug792517.sjs \
bug839103.css \
disablechrome.html \
discovery.html \
domplate_test.js \
download_page.html \
dummy_page.html \
feed_tab.html \
file_bug550565_favicon.ico \
file_bug550565_popup.html \
file_bug822367_1.html \
file_bug822367_1.js \
file_bug822367_2.html \
file_bug822367_3.html \
file_bug822367_4.html \
file_bug822367_4.js \
file_bug822367_4B.html \
file_bug822367_5.html \
file_bug822367_6.html \
file_bug902156_1.html \
file_bug902156_2.html \
file_bug902156_3.html \
file_bug902156.js \
file_fullscreen-window-open.html \
healthreport_testRemoteCommands.html \
moz.png \
offlineQuotaNotification.cacheManifest \
offlineQuotaNotification.html \
page_style_sample.html \
plugin_add_dynamically.html \
plugin_alternate_content.html \
plugin_both.html \
plugin_both2.html \
plugin_bug744745.html \
plugin_bug749455.html \
plugin_bug752516.html \
plugin_bug787619.html \
plugin_bug797677.html \
plugin_bug820497.html \
plugin_clickToPlayAllow.html \
plugin_clickToPlayDeny.html \
plugin_hidden_to_visible.html \
plugin_small.html \
plugin_test.html \
plugin_test2.html \
plugin_test3.html \
plugin_two_types.html \
plugin_data_url.html \
plugin_unknown.html \
POSTSearchEngine.xml \
print_postdata.sjs \
redirect_bug623155.sjs \
test_bug435035.html \
test_bug462673.html \
test_bug628179.html \
test_bug839103.html \
test_wyciwyg_copying.html \
test-mixedcontent-securityerrors.html \
title_test.svg \
video.ogg \
zoom_test.html \
$(NULL)
# Disable tests on Windows due to frequent failures (bugs 825739, 841341)
ifneq (windows,$(MOZ_WIDGET_TOOLKIT))
MOCHITEST_BROWSER_FILES += \

Просмотреть файл

@ -0,0 +1,284 @@
[DEFAULT]
support-files =
POSTSearchEngine.xml
alltabslistener.html
app_bug575561.html
app_subframe_bug575561.html
authenticate.sjs
blockNoPlugins.xml
blockPluginHard.xml
blockPluginVulnerableNoUpdate.xml
blockPluginVulnerableUpdatable.xml
bug564387.html
bug564387_video1.ogv
bug564387_video1.ogv^headers^
bug592338.html
bug792517-2.html
bug792517.html
bug792517.sjs
bug839103.css
disablechrome.html
discovery.html
domplate_test.js
download_page.html
dummy_page.html
feed_tab.html
file_bug550565_favicon.ico
file_bug550565_popup.html
file_bug822367_1.html
file_bug822367_1.js
file_bug822367_2.html
file_bug822367_3.html
file_bug822367_4.html
file_bug822367_4.js
file_bug822367_4B.html
file_bug822367_5.html
file_bug822367_6.html
file_bug902156.js
file_bug902156_1.html
file_bug902156_2.html
file_bug902156_3.html
file_fullscreen-window-open.html
head.js
healthreport_testRemoteCommands.html
moz.png
offlineQuotaNotification.cacheManifest
offlineQuotaNotification.html
page_style_sample.html
plugin_add_dynamically.html
plugin_alternate_content.html
plugin_both.html
plugin_both2.html
plugin_bug744745.html
plugin_bug749455.html
plugin_bug752516.html
plugin_bug787619.html
plugin_bug797677.html
plugin_bug820497.html
plugin_clickToPlayAllow.html
plugin_clickToPlayDeny.html
plugin_data_url.html
plugin_hidden_to_visible.html
plugin_small.html
plugin_test.html
plugin_test2.html
plugin_test3.html
plugin_two_types.html
plugin_unknown.html
print_postdata.sjs
redirect_bug623155.sjs
test-mixedcontent-securityerrors.html
test_bug435035.html
test_bug462673.html
test_bug628179.html
test_bug839103.html
test_wyciwyg_copying.html
title_test.svg
video.ogg
zoom_test.html
[browser_CTP_data_urls.js]
[browser_CTP_drag_drop.js]
[browser_CTP_nonplugins.js]
[browser_CTP_resize.js]
[browser_URLBarSetURI.js]
[browser_aboutHealthReport.js]
[browser_aboutHome.js]
[browser_aboutSyncProgress.js]
[browser_addKeywordSearch.js]
[browser_addon_bar_aomlistener.js]
[browser_addon_bar_close_button.js]
[browser_addon_bar_shortcut.js]
[browser_alltabslistener.js]
[browser_blob-channelname.js]
[browser_bug304198.js]
[browser_bug329212.js]
[browser_bug356571.js]
[browser_bug380960.js]
[browser_bug386835.js]
[browser_bug405137.js]
[browser_bug406216.js]
[browser_bug409481.js]
[browser_bug409624.js]
[browser_bug413915.js]
[browser_bug416661.js]
[browser_bug417483.js]
[browser_bug419612.js]
[browser_bug422590.js]
[browser_bug424101.js]
[browser_bug427559.js]
[browser_bug432599.js]
[browser_bug435035.js]
[browser_bug435325.js]
[browser_bug441778.js]
[browser_bug455852.js]
[browser_bug460146.js]
[browser_bug462673.js]
[browser_bug477014.js]
[browser_bug479408.js]
[browser_bug479408_sample.html]
[browser_bug481560.js]
[browser_bug484315.js]
[browser_bug491431.js]
[browser_bug495058.js]
[browser_bug517902.js]
[browser_bug519216.js]
[browser_bug520538.js]
[browser_bug521216.js]
[browser_bug533232.js]
[browser_bug537013.js]
[browser_bug537474.js]
[browser_bug550565.js]
[browser_bug553455.js]
[browser_bug555224.js]
[browser_bug555767.js]
[browser_bug556061.js]
[browser_bug559991.js]
[browser_bug561623.js]
[browser_bug561636.js]
[browser_bug562649.js]
[browser_bug563588.js]
[browser_bug565575.js]
[browser_bug567306.js]
[browser_bug575561.js]
[browser_bug575830.js]
[browser_bug577121.js]
[browser_bug578534.js]
[browser_bug579872.js]
[browser_bug580638.js]
[browser_bug580956.js]
[browser_bug581242.js]
[browser_bug581253.js]
[browser_bug581947.js]
[browser_bug585558.js]
[browser_bug585785.js]
[browser_bug585830.js]
[browser_bug590206.js]
[browser_bug592338.js]
[browser_bug594131.js]
[browser_bug595507.js]
[browser_bug596687.js]
[browser_bug597218.js]
[browser_bug598923.js]
[browser_bug599325.js]
[browser_bug609700.js]
[browser_bug616836.js]
[browser_bug623155.js]
[browser_bug623893.js]
[browser_bug624734.js]
[browser_bug647886.js]
[browser_bug655584.js]
[browser_bug664672.js]
[browser_bug676619.js]
[browser_bug678392-1.html]
[browser_bug678392-2.html]
[browser_bug678392.js]
[browser_bug710878.js]
[browser_bug719271.js]
[browser_bug724239.js]
[browser_bug734076.js]
[browser_bug735471.js]
[browser_bug743421.js]
[browser_bug744745.js]
[browser_bug749738.js]
[browser_bug752516.js]
[browser_bug763468_perwindowpb.js]
[browser_bug767836_perwindowpb.js]
[browser_bug771331.js]
[browser_bug783614.js]
[browser_bug787619.js]
[browser_bug797677.js]
[browser_bug812562.js]
[browser_bug816527.js]
[browser_bug817947.js]
[browser_bug818118.js]
[browser_bug820497.js]
[browser_bug822367.js]
[browser_bug832435.js]
[browser_bug839103.js]
[browser_bug880101.js]
[browser_bug882977.js]
[browser_bug887515.js]
[browser_bug902156.js]
[browser_canonizeURL.js]
[browser_clearplugindata.html]
[browser_clearplugindata.js]
[browser_clearplugindata_noage.html]
[browser_contentAreaClick.js]
[browser_contextSearchTabPosition.js]
[browser_ctrlTab.js]
[browser_customize.js]
[browser_customize_popupNotification.js]
[browser_disablechrome.js]
[browser_discovery.js]
[browser_duplicateIDs.js]
[browser_findbarClose.js]
[browser_fullscreen-window-open.js]
[browser_gestureSupport.js]
[browser_getshortcutoruri.js]
[browser_hide_removing.js]
[browser_homeDrop.js]
[browser_identity_UI.js]
[browser_keywordBookmarklets.js]
[browser_keywordSearch.js]
[browser_keywordSearch_postData.js]
[browser_lastAccessedTab.js]
[browser_locationBarCommand.js]
[browser_locationBarExternalLoad.js]
[browser_middleMouse_inherit.js]
[browser_minimize.js]
[browser_mixedcontent_securityflags.js]
[browser_offlineQuotaNotification.js]
[browser_overflowScroll.js]
[browser_pageInfo.js]
[browser_pageInfo_plugins.js]
[browser_page_style_menu.js]
[browser_pinnedTabs.js]
[browser_plainTextLinks.js]
[browser_pluginnotification.js]
[browser_pluginplaypreview.js]
[browser_pluginplaypreview2.js]
[browser_plugins_added_dynamically.js]
[browser_popupUI.js]
[browser_private_browsing_window.js]
[browser_private_no_prompt.js]
[browser_relatedTabs.js]
[browser_removeTabsToTheEnd.js]
[browser_sanitize-passwordDisabledHosts.js]
[browser_sanitize-sitepermissions.js]
[browser_sanitize-timespans.js]
[browser_sanitizeDialog.js]
[browser_save_link-perwindowpb.js]
[browser_save_private_link_perwindowpb.js]
[browser_save_video.js]
[browser_scope.js]
[browser_selectTabAtIndex.js]
[browser_tabDrop.js]
[browser_tabMatchesInAwesomebar_perwindowpb.js]
[browser_tab_drag_drop_perwindow.js]
[browser_tab_dragdrop.js]
[browser_tab_dragdrop2.js]
[browser_tab_dragdrop2_frame1.xul]
[browser_tabfocus.js]
[browser_tabopen_reflows.js]
[browser_tabs_isActive.js]
[browser_tabs_owner.js]
[browser_typeAheadFind.js]
[browser_unloaddialogs.js]
[browser_urlHighlight.js]
[browser_urlbarAutoFillTrimURLs.js]
[browser_urlbarCopying.js]
[browser_urlbarEnter.js]
[browser_urlbarRevert.js]
[browser_urlbarStop.js]
[browser_urlbarTrimURLs.js]
[browser_urlbar_search_healthreport.js]
[browser_utilityOverlay.js]
[browser_visibleFindSelection.js]
[browser_visibleTabs.js]
[browser_visibleTabs_bookmarkAllPages.js]
[browser_visibleTabs_bookmarkAllTabs.js]
[browser_visibleTabs_contextMenu.js]
[browser_visibleTabs_tabPreview.js]
[browser_wyciwyg_urlbarCopying.js]
[browser_zbug569342.js]

Просмотреть файл

@ -13,7 +13,6 @@ function test() {
registerCleanupFunction(function() {
clearAllPluginPermissions();
Services.prefs.clearUserPref("extensions.blocklist.suppressUI");
getTestPlugin().enabledState = Ci.nsIPluginTag.STATE_ENABLED;
});
Services.prefs.setBoolPref("extensions.blocklist.suppressUI", true);
@ -23,7 +22,7 @@ function test() {
gTestBrowser.addEventListener("load", pageLoad, true);
Services.prefs.setBoolPref("plugins.click_to_play", true);
getTestPlugin().enabledState = Ci.nsIPluginTag.STATE_CLICKTOPLAY;
setTestPluginEnabledState(Ci.nsIPluginTag.STATE_CLICKTOPLAY);
prepareTest(runAfterPluginBindingAttached(test1), gHttpTestRoot + "plugin_test.html");
}

Просмотреть файл

@ -59,8 +59,6 @@ function test() {
registerCleanupFunction(function() {
clearAllPluginPermissions();
Services.prefs.clearUserPref("extensions.blocklist.suppressUI");
getTestPlugin().enabledState = Ci.nsIPluginTag.STATE_ENABLED;
getTestPlugin("Second Test Plug-in").enabledState = Ci.nsIPluginTag.STATE_ENABLED;
});
Services.prefs.setBoolPref("extensions.blocklist.suppressUI", true);
@ -70,8 +68,8 @@ function test() {
gTestBrowser.addEventListener("load", pageLoad, true);
Services.prefs.setBoolPref("plugins.click_to_play", true);
getTestPlugin().enabledState = Ci.nsIPluginTag.STATE_CLICKTOPLAY;
getTestPlugin("Second Test Plug-in").enabledState = Ci.nsIPluginTag.STATE_CLICKTOPLAY;
setTestPluginEnabledState(Ci.nsIPluginTag.STATE_CLICKTOPLAY);
setTestPluginEnabledState(Ci.nsIPluginTag.STATE_CLICKTOPLAY, "Second Test Plug-in");
prepareTest(test1a, gHttpTestRoot + "plugin_data_url.html");
}

Просмотреть файл

@ -13,12 +13,9 @@ function test() {
registerCleanupFunction(function() {
clearAllPluginPermissions();
Services.prefs.clearUserPref("plugins.click_to_play");
let plugin = getTestPlugin();
plugin.enabledState = Ci.nsIPluginTag.STATE_ENABLED;
});
Services.prefs.setBoolPref("plugins.click_to_play", true);
let plugin = getTestPlugin();
plugin.enabledState = Ci.nsIPluginTag.STATE_CLICKTOPLAY;
setTestPluginEnabledState(Ci.nsIPluginTag.STATE_CLICKTOPLAY);
gBrowser.selectedTab = gBrowser.addTab();
gBrowser.selectedBrowser.addEventListener("PluginBindingAttached", handleEvent, true, true);

Просмотреть файл

@ -10,12 +10,9 @@ function test() {
registerCleanupFunction(function() {
clearAllPluginPermissions();
Services.prefs.clearUserPref("plugins.click_to_play");
var plugin = getTestPlugin();
plugin.enabledState = Ci.nsIPluginTag.STATE_ENABLED;
});
Services.prefs.setBoolPref("plugins.click_to_play", true);
var plugin = getTestPlugin();
plugin.enabledState = Ci.nsIPluginTag.STATE_CLICKTOPLAY;
setTestPluginEnabledState(Ci.nsIPluginTag.STATE_CLICKTOPLAY);
var newTab = gBrowser.addTab();
gBrowser.selectedTab = newTab;

Просмотреть файл

@ -11,16 +11,13 @@ function test() {
waitForExplicitFinish();
registerCleanupFunction(function() {
Services.prefs.clearUserPref("plugins.click_to_play");
var plugin = getTestPlugin();
plugin.enabledState = Ci.nsIPluginTag.STATE_ENABLED;
gTestBrowser.removeEventListener("PluginBindingAttached", pluginBindingAttached, true, true);
gBrowser.removeCurrentTab();
window.focus();
});
Services.prefs.setBoolPref("plugins.click_to_play", true);
var plugin = getTestPlugin();
plugin.enabledState = Ci.nsIPluginTag.STATE_CLICKTOPLAY;
setTestPluginEnabledState(Ci.nsIPluginTag.STATE_CLICKTOPLAY);
gBrowser.selectedTab = gBrowser.addTab();
gTestBrowser = gBrowser.selectedBrowser;

Просмотреть файл

@ -10,15 +10,12 @@ function test() {
waitForExplicitFinish();
registerCleanupFunction(function() {
Services.prefs.clearUserPref("plugins.click_to_play");
let plugin = getTestPlugin();
plugin.enabledState = Ci.nsIPluginTag.STATE_ENABLED;
gBrowser.removeCurrentTab();
window.focus();
});
Services.prefs.setBoolPref("plugins.click_to_play", true);
let plugin = getTestPlugin();
plugin.enabledState = Ci.nsIPluginTag.STATE_CLICKTOPLAY;
setTestPluginEnabledState(Ci.nsIPluginTag.STATE_CLICKTOPLAY);
gBrowser.selectedTab = gBrowser.addTab();
gTestBrowser = gBrowser.selectedBrowser;

Просмотреть файл

@ -7,12 +7,9 @@ function test() {
waitForExplicitFinish();
registerCleanupFunction(function() {
Services.prefs.clearUserPref("plugins.click_to_play");
let plugin = getTestPlugin();
plugin.enabledState = Ci.nsIPluginTag.STATE_ENABLED;
});
Services.prefs.setBoolPref("plugins.click_to_play", true);
let plugin = getTestPlugin();
plugin.enabledState = Ci.nsIPluginTag.STATE_CLICKTOPLAY;
setTestPluginEnabledState(Ci.nsIPluginTag.STATE_CLICKTOPLAY);
gBrowser.selectedTab = gBrowser.addTab();
gTestBrowser = gBrowser.selectedBrowser;

Просмотреть файл

@ -8,12 +8,9 @@ function test() {
waitForExplicitFinish();
registerCleanupFunction(function() {
Services.prefs.clearUserPref("plugins.click_to_play");
var plugin = getTestPlugin();
plugin.enabledState = Ci.nsIPluginTag.STATE_ENABLED;
});
Services.prefs.setBoolPref("plugins.click_to_play", true);
var plugin = getTestPlugin();
plugin.enabledState = Ci.nsIPluginTag.STATE_CLICKTOPLAY;
setTestPluginEnabledState(Ci.nsIPluginTag.STATE_CLICKTOPLAY);
var newTab = gBrowser.addTab();
gBrowser.selectedTab = newTab;

Просмотреть файл

@ -7,14 +7,11 @@ function test() {
waitForExplicitFinish();
registerCleanupFunction(function() {
Services.prefs.clearUserPref("plugins.click_to_play");
var plugin = getTestPlugin();
plugin.enabledState = Ci.nsIPluginTag.STATE_ENABLED;
gTestBrowser.removeEventListener("load", pageLoad, true);
});
Services.prefs.setBoolPref("plugins.click_to_play", true);
var plugin = getTestPlugin();
plugin.enabledState = Ci.nsIPluginTag.STATE_CLICKTOPLAY;
setTestPluginEnabledState(Ci.nsIPluginTag.STATE_CLICKTOPLAY);
gBrowser.selectedTab = gBrowser.addTab();
gTestBrowser = gBrowser.selectedBrowser;

Просмотреть файл

@ -11,16 +11,14 @@ function test() {
waitForExplicitFinish();
registerCleanupFunction(function() {
Services.prefs.clearUserPref("plugins.click_to_play");
getTestPlugin().enabledState = Ci.nsIPluginTag.STATE_ENABLED;
getTestPlugin("Second Test Plug-in").enabledState = Ci.nsIPluginTag.STATE_ENABLED;
gTestBrowser.removeEventListener("PluginBindingAttached", pluginBindingAttached, true, true);
gBrowser.removeCurrentTab();
window.focus();
});
Services.prefs.setBoolPref("plugins.click_to_play", true);
getTestPlugin().enabledState = Ci.nsIPluginTag.STATE_CLICKTOPLAY;
getTestPlugin("Second Test Plug-in").enabledState = Ci.nsIPluginTag.STATE_CLICKTOPLAY;
setTestPluginEnabledState(Ci.nsIPluginTag.STATE_CLICKTOPLAY);
setTestPluginEnabledState(Ci.nsIPluginTag.STATE_CLICKTOPLAY, "Second Test Plug-in");
gBrowser.selectedTab = gBrowser.addTab();
gTestBrowser = gBrowser.selectedBrowser;

Просмотреть файл

@ -16,7 +16,7 @@ const pluginHostIface = Ci.nsIPluginHost;
var pluginHost = Cc["@mozilla.org/plugin/host;1"].getService(Ci.nsIPluginHost);
pluginHost.QueryInterface(pluginHostIface);
var pluginTag;
var pluginTag = getTestPlugin();
var s;
function stored(needles) {
@ -36,17 +36,7 @@ function stored(needles) {
function test() {
waitForExplicitFinish();
var tags = pluginHost.getPluginTags();
// Find the test plugin
for (var i = 0; i < tags.length; i++)
{
if (tags[i].name == "Test Plug-in")
{
pluginTag = tags[i];
}
}
setTestPluginEnabledState(Ci.nsIPluginTag.STATE_ENABLED);
s = new Sanitizer();
s.ignoreTimespan = false;

Просмотреть файл

@ -41,8 +41,6 @@ function finishTest() {
gPermissionManager.remove("127.0.0.1:8888", gTestPermissionString);
gPermissionManager.remove("127.0.0.1:8888", gSecondTestPermissionString);
Services.prefs.clearUserPref("plugins.click_to_play");
getTestPlugin().enabledState = Ci.nsIPluginTag.STATE_ENABLED;
getTestPlugin("Second Test Plug-in").enabledState = Ci.nsIPluginTag.STATE_ENABLED;
gBrowser.removeCurrentTab();
finish();
}
@ -50,8 +48,8 @@ function finishTest() {
function test() {
waitForExplicitFinish();
Services.prefs.setBoolPref("plugins.click_to_play", true);
getTestPlugin().enabledState = Ci.nsIPluginTag.STATE_CLICKTOPLAY;
getTestPlugin("Second Test Plug-in").enabledState = Ci.nsIPluginTag.STATE_ENABLED;
setTestPluginEnabledState(Ci.nsIPluginTag.STATE_CLICKTOPLAY);
setTestPluginEnabledState(Ci.nsIPluginTag.STATE_ENABLED, "Second Test Plug-in");
gBrowser.selectedTab = gBrowser.addTab();
gTestBrowser = gBrowser.selectedBrowser;
gPermissionManager.remove("127.0.0.1:8888", gTestPermissionString);

Просмотреть файл

@ -12,6 +12,7 @@ function test() {
// Crashing the plugin takes up a lot of time, so extend the test timeout.
requestLongerTimeout(runs.length);
waitForExplicitFinish();
setTestPluginEnabledState(Ci.nsIPluginTag.STATE_ENABLED);
// The test harness sets MOZ_CRASHREPORTER_NO_REPORT, which disables plugin
// crash reports. This test needs them enabled. The test also needs a mock

Просмотреть файл

@ -60,13 +60,11 @@ function test() {
registerCleanupFunction(function() {
clearAllPluginPermissions();
Services.prefs.clearUserPref("extensions.blocklist.suppressUI");
getTestPlugin().enabledState = Ci.nsIPluginTag.STATE_ENABLED;
getTestPlugin("Second Test Plug-in").enabledState = Ci.nsIPluginTag.STATE_ENABLED;
});
Services.prefs.setBoolPref("extensions.blocklist.suppressUI", true);
var plugin = getTestPlugin();
plugin.enabledState = Ci.nsIPluginTag.STATE_ENABLED;
setTestPluginEnabledState(Ci.nsIPluginTag.STATE_CLICKTOPLAY);
setTestPluginEnabledState(Ci.nsIPluginTag.STATE_CLICKTOPLAY, "Second Test Plug-in");
var newTab = gBrowser.addTab();
gBrowser.selectedTab = newTab;

Просмотреть файл

@ -139,8 +139,6 @@ function test() {
if (gPlayPreviewRegistration)
gPlayPreviewRegistration.unregister();
Services.prefs.clearUserPref("plugins.click_to_play");
var plugin = getTestPlugin();
plugin.enabledState = Ci.nsIPluginTag.STATE_ENABLED;
});
var newTab = gBrowser.addTab();
@ -149,6 +147,7 @@ function test() {
gTestBrowser.addEventListener("load", pageLoad, true);
gTestBrowser.addEventListener("PluginBindingAttached", handleBindingAttached, true, true);
setTestPluginEnabledState(Ci.nsIPluginTag.STATE_ENABLED);
registerPlayPreview('application/x-test', 'about:');
prepareTest(test1a, gTestRoot + "plugin_test.html", 1);
}
@ -255,8 +254,7 @@ function test3() {
registerPlayPreview('application/x-test', 'about:');
Services.prefs.setBoolPref("plugins.click_to_play", true);
var plugin = getTestPlugin();
plugin.enabledState = Ci.nsIPluginTag.STATE_CLICKTOPLAY;
setTestPluginEnabledState(Ci.nsIPluginTag.STATE_CLICKTOPLAY);
prepareTest(test4a, gTestRoot + "plugin_test.html", 1);
}

Просмотреть файл

@ -39,8 +39,6 @@ function test() {
if (gPlayPreviewRegistration)
gPlayPreviewRegistration.unregister();
Services.prefs.clearUserPref("plugins.click_to_play");
var plugin = getTestPlugin();
plugin.enabledState = Ci.nsIPluginTag.STATE_ENABLED;
});
var newTab = gBrowser.addTab();
@ -50,8 +48,7 @@ function test() {
gTestBrowser.addEventListener("PluginBindingAttached", handleBindingAttached, true, true);
Services.prefs.setBoolPref("plugins.click_to_play", true);
var plugin = getTestPlugin();
plugin.enabledState = Ci.nsIPluginTag.STATE_CLICKTOPLAY;
setTestPluginEnabledState(Ci.nsIPluginTag.STATE_CLICKTOPLAY);
registerPlayPreview('application/x-test', 'about:');
prepareTest(test1a, gTestRoot + "plugin_test.html", 1);

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше