mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
05efe27693
--HG-- rename : toolkit/components/console/hudservice/AutocompletePopup.jsm => browser/devtools/webconsole/AutocompletePopup.jsm rename : toolkit/components/console/hudservice/HUDService.jsm => browser/devtools/webconsole/HUDService.jsm rename : toolkit/components/console/hudservice/Makefile.in => browser/devtools/webconsole/Makefile.in rename : toolkit/components/console/hudservice/NetworkHelper.jsm => browser/devtools/webconsole/NetworkHelper.jsm rename : toolkit/components/console/hudservice/NetworkPanel.xhtml => browser/devtools/webconsole/NetworkPanel.xhtml rename : toolkit/components/console/hudservice/PropertyPanel.jsm => browser/devtools/webconsole/PropertyPanel.jsm rename : toolkit/components/console/hudservice/tests/Makefile.in => browser/devtools/webconsole/test/Makefile.in rename : toolkit/components/console/hudservice/tests/browser/Makefile.in => browser/devtools/webconsole/test/browser/Makefile.in rename : toolkit/components/console/hudservice/tests/browser/browser_warn_user_about_replaced_api.js => browser/devtools/webconsole/test/browser/browser_warn_user_about_replaced_api.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_abbreviate_source_url.js => browser/devtools/webconsole/test/browser/browser_webconsole_abbreviate_source_url.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_basic_net_logging.js => browser/devtools/webconsole/test/browser/browser_webconsole_basic_net_logging.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_578437_page_reload.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_578437_page_reload.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_579412_input_focus.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_579412_input_focus.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_580001_closing_after_completion.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_580001_closing_after_completion.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_580030_errors_after_page_reload.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_580030_errors_after_page_reload.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_580400_groups.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_580400_groups.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_580454_timestamp_l10n.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_580454_timestamp_l10n.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_581231_close_button.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_581231_close_button.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_582201_duplicate_errors.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_582201_duplicate_errors.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_583816_tab_focus.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_583816_tab_focus.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_585237_line_limit.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_585237_line_limit.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_585956_console_trace.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_585956_console_trace.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_585991_autocomplete_keys.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_585991_autocomplete_keys.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_585991_autocomplete_popup.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_585991_autocomplete_popup.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_586388_select_all.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_586388_select_all.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_587617_output_copy.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_587617_output_copy.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_588342_document_focus.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_588342_document_focus.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_588730_text_node_insertion.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_588730_text_node_insertion.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_588967_input_expansion.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_588967_input_expansion.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_589162_css_filter.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_589162_css_filter.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_592442_closing_brackets.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_592442_closing_brackets.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_593003_iframe_wrong_hud.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_593003_iframe_wrong_hud.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_594477_clickable_output.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_594477_clickable_output.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_594497_history_arrow_keys.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_594497_history_arrow_keys.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_595223_file_uri.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_595223_file_uri.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_595350_multiple_windows_and_tabs.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_595350_multiple_windows_and_tabs.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_595934_message_categories.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_595934_message_categories.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_597103_deactivateHUDForContext_unfocused_window.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_597103_deactivateHUDForContext_unfocused_window.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_597136_external_script_errors.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_597136_external_script_errors.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_597136_network_requests_from_chrome.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_597136_network_requests_from_chrome.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_597460_filter_scroll.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_597460_filter_scroll.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_597756_reopen_closed_tab.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_597756_reopen_closed_tab.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_598357_jsterm_output.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_598357_jsterm_output.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_599725_response_headers.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_599725_response_headers.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_600183_charset.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_600183_charset.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_601177_log_levels.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_601177_log_levels.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_601352_scroll.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_601352_scroll.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_601667_filter_buttons.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_601667_filter_buttons.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_601909_remember_height.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_601909_remember_height.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_602572_log_bodies_checkbox.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_602572_log_bodies_checkbox.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_603750_websocket.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_603750_websocket.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_611795.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_611795.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_613013_console_api_iframe.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_613013_console_api_iframe.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_613280_jsterm_copy.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_613280_jsterm_copy.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_613642_maintain_scroll.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_613642_maintain_scroll.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_613642_prune_scroll.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_613642_prune_scroll.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_614793_jsterm_scroll.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_614793_jsterm_scroll.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_618078_network_exceptions.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_618078_network_exceptions.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_618311_close_panels.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_618311_close_panels.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_618311_private_browsing.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_618311_private_browsing.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_621644_jsterm_dollar.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_621644_jsterm_dollar.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_626484_output_copy_order.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_626484_output_copy_order.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_630733_response_redirect_headers.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_630733_response_redirect_headers.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_632275_getters_document_width.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_632275_getters_document_width.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_632347_iterators_generators.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_632347_iterators_generators.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_632817.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_632817.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_642108_pruneTest.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_642108_pruneTest.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_642615_autocomplete.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_642615_autocomplete.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_644419_log_limits.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_644419_log_limits.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_646025_console_file_location.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_646025_console_file_location.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_651501_document_body_autocomplete.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_651501_document_body_autocomplete.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_660806_history_nav.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_660806_history_nav.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_663443_panel_title.js => browser/devtools/webconsole/test/browser/browser_webconsole_bug_663443_panel_title.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_chrome.js => browser/devtools/webconsole/test/browser/browser_webconsole_chrome.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_completion.js => browser/devtools/webconsole/test/browser/browser_webconsole_completion.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_console_extras.js => browser/devtools/webconsole/test/browser/browser_webconsole_console_extras.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_console_logging_api.js => browser/devtools/webconsole/test/browser/browser_webconsole_console_logging_api.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_consoleonpage.js => browser/devtools/webconsole/test/browser/browser_webconsole_consoleonpage.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_copying_multiple_messages_inserts_newlines_in_between.js => browser/devtools/webconsole/test/browser/browser_webconsole_copying_multiple_messages_inserts_newlines_in_between.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_execution_scope.js => browser/devtools/webconsole/test/browser/browser_webconsole_execution_scope.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_history.js => browser/devtools/webconsole/test/browser/browser_webconsole_history.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_hud_getters.js => browser/devtools/webconsole/test/browser/browser_webconsole_hud_getters.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_js_input_and_output_styling.js => browser/devtools/webconsole/test/browser/browser_webconsole_js_input_and_output_styling.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_js_input_expansion.js => browser/devtools/webconsole/test/browser/browser_webconsole_js_input_expansion.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_jsterm.js => browser/devtools/webconsole/test/browser/browser_webconsole_jsterm.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_live_filtering_of_message_types.js => browser/devtools/webconsole/test/browser/browser_webconsole_live_filtering_of_message_types.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_live_filtering_on_search_strings.js => browser/devtools/webconsole/test/browser/browser_webconsole_live_filtering_on_search_strings.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_log_node_classes.js => browser/devtools/webconsole/test/browser/browser_webconsole_log_node_classes.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_message_node_id.js => browser/devtools/webconsole/test/browser/browser_webconsole_message_node_id.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_netlogging.js => browser/devtools/webconsole/test/browser/browser_webconsole_netlogging.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_network_panel.js => browser/devtools/webconsole/test/browser/browser_webconsole_network_panel.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_notifications.js => browser/devtools/webconsole/test/browser/browser_webconsole_notifications.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_null_and_undefined_output.js => browser/devtools/webconsole/test/browser/browser_webconsole_null_and_undefined_output.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_output_order.js => browser/devtools/webconsole/test/browser/browser_webconsole_output_order.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_position_ui.js => browser/devtools/webconsole/test/browser/browser_webconsole_position_ui.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_property_panel.js => browser/devtools/webconsole/test/browser/browser_webconsole_property_panel.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_property_provider.js => browser/devtools/webconsole/test/browser/browser_webconsole_property_provider.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_registries.js => browser/devtools/webconsole/test/browser/browser_webconsole_registries.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_storage_create_display.js => browser/devtools/webconsole/test/browser/browser_webconsole_storage_create_display.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_storage_iteration.js => browser/devtools/webconsole/test/browser/browser_webconsole_storage_iteration.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_storage_record_entry.js => browser/devtools/webconsole/test/browser/browser_webconsole_storage_record_entry.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_storage_record_many_entries.js => browser/devtools/webconsole/test/browser/browser_webconsole_storage_record_many_entries.js rename : toolkit/components/console/hudservice/tests/browser/browser_webconsole_view_source.js => browser/devtools/webconsole/test/browser/browser_webconsole_view_source.js rename : toolkit/components/console/hudservice/tests/browser/head.js => browser/devtools/webconsole/test/browser/head.js rename : toolkit/components/console/hudservice/tests/browser/test-bug-585956-console-trace.html => browser/devtools/webconsole/test/browser/test-bug-585956-console-trace.html rename : toolkit/components/console/hudservice/tests/browser/test-bug-593003-iframe-wrong-hud-iframe.html => browser/devtools/webconsole/test/browser/test-bug-593003-iframe-wrong-hud-iframe.html rename : toolkit/components/console/hudservice/tests/browser/test-bug-593003-iframe-wrong-hud.html => browser/devtools/webconsole/test/browser/test-bug-593003-iframe-wrong-hud.html rename : toolkit/components/console/hudservice/tests/browser/test-bug-595934-canvas-css.html => browser/devtools/webconsole/test/browser/test-bug-595934-canvas-css.html rename : toolkit/components/console/hudservice/tests/browser/test-bug-595934-canvas-css.js => browser/devtools/webconsole/test/browser/test-bug-595934-canvas-css.js rename : toolkit/components/console/hudservice/tests/browser/test-bug-595934-canvas.html => browser/devtools/webconsole/test/browser/test-bug-595934-canvas.html rename : toolkit/components/console/hudservice/tests/browser/test-bug-595934-canvas.js => browser/devtools/webconsole/test/browser/test-bug-595934-canvas.js rename : toolkit/components/console/hudservice/tests/browser/test-bug-595934-css-loader.css => browser/devtools/webconsole/test/browser/test-bug-595934-css-loader.css rename : toolkit/components/console/hudservice/tests/browser/test-bug-595934-css-loader.css^headers^ => browser/devtools/webconsole/test/browser/test-bug-595934-css-loader.css^headers^ rename : toolkit/components/console/hudservice/tests/browser/test-bug-595934-css-loader.html => browser/devtools/webconsole/test/browser/test-bug-595934-css-loader.html rename : toolkit/components/console/hudservice/tests/browser/test-bug-595934-css-parser.css => browser/devtools/webconsole/test/browser/test-bug-595934-css-parser.css rename : toolkit/components/console/hudservice/tests/browser/test-bug-595934-css-parser.html => browser/devtools/webconsole/test/browser/test-bug-595934-css-parser.html rename : toolkit/components/console/hudservice/tests/browser/test-bug-595934-dom-events-external2.html => browser/devtools/webconsole/test/browser/test-bug-595934-dom-events-external2.html rename : toolkit/components/console/hudservice/tests/browser/test-bug-595934-dom-events-external2.js => browser/devtools/webconsole/test/browser/test-bug-595934-dom-events-external2.js rename : toolkit/components/console/hudservice/tests/browser/test-bug-595934-dom-events.html => browser/devtools/webconsole/test/browser/test-bug-595934-dom-events.html rename : toolkit/components/console/hudservice/tests/browser/test-bug-595934-dom-html-external.html => browser/devtools/webconsole/test/browser/test-bug-595934-dom-html-external.html rename : toolkit/components/console/hudservice/tests/browser/test-bug-595934-dom-html-external.js => browser/devtools/webconsole/test/browser/test-bug-595934-dom-html-external.js rename : toolkit/components/console/hudservice/tests/browser/test-bug-595934-dom-html.html => browser/devtools/webconsole/test/browser/test-bug-595934-dom-html.html rename : toolkit/components/console/hudservice/tests/browser/test-bug-595934-empty-getelementbyid.html => browser/devtools/webconsole/test/browser/test-bug-595934-empty-getelementbyid.html rename : toolkit/components/console/hudservice/tests/browser/test-bug-595934-empty-getelementbyid.js => browser/devtools/webconsole/test/browser/test-bug-595934-empty-getelementbyid.js rename : toolkit/components/console/hudservice/tests/browser/test-bug-595934-html.html => browser/devtools/webconsole/test/browser/test-bug-595934-html.html rename : toolkit/components/console/hudservice/tests/browser/test-bug-595934-image.html => browser/devtools/webconsole/test/browser/test-bug-595934-image.html rename : toolkit/components/console/hudservice/tests/browser/test-bug-595934-image.jpg => browser/devtools/webconsole/test/browser/test-bug-595934-image.jpg rename : toolkit/components/console/hudservice/tests/browser/test-bug-595934-imagemap.html => browser/devtools/webconsole/test/browser/test-bug-595934-imagemap.html rename : toolkit/components/console/hudservice/tests/browser/test-bug-595934-malformedxml-external.html => browser/devtools/webconsole/test/browser/test-bug-595934-malformedxml-external.html rename : toolkit/components/console/hudservice/tests/browser/test-bug-595934-malformedxml-external.xml => browser/devtools/webconsole/test/browser/test-bug-595934-malformedxml-external.xml rename : toolkit/components/console/hudservice/tests/browser/test-bug-595934-malformedxml.xhtml => browser/devtools/webconsole/test/browser/test-bug-595934-malformedxml.xhtml rename : toolkit/components/console/hudservice/tests/browser/test-bug-595934-svg.xhtml => browser/devtools/webconsole/test/browser/test-bug-595934-svg.xhtml rename : toolkit/components/console/hudservice/tests/browser/test-bug-595934-workers.html => browser/devtools/webconsole/test/browser/test-bug-595934-workers.html rename : toolkit/components/console/hudservice/tests/browser/test-bug-595934-workers.js => browser/devtools/webconsole/test/browser/test-bug-595934-workers.js rename : toolkit/components/console/hudservice/tests/browser/test-bug-597136-external-script-errors.html => browser/devtools/webconsole/test/browser/test-bug-597136-external-script-errors.html rename : toolkit/components/console/hudservice/tests/browser/test-bug-597136-external-script-errors.js => browser/devtools/webconsole/test/browser/test-bug-597136-external-script-errors.js rename : toolkit/components/console/hudservice/tests/browser/test-bug-597756-reopen-closed-tab.html => browser/devtools/webconsole/test/browser/test-bug-597756-reopen-closed-tab.html rename : toolkit/components/console/hudservice/tests/browser/test-bug-599725-response-headers.sjs => browser/devtools/webconsole/test/browser/test-bug-599725-response-headers.sjs rename : toolkit/components/console/hudservice/tests/browser/test-bug-600183-charset.html => browser/devtools/webconsole/test/browser/test-bug-600183-charset.html rename : toolkit/components/console/hudservice/tests/browser/test-bug-600183-charset.html^headers^ => browser/devtools/webconsole/test/browser/test-bug-600183-charset.html^headers^ rename : toolkit/components/console/hudservice/tests/browser/test-bug-601177-log-levels.html => browser/devtools/webconsole/test/browser/test-bug-601177-log-levels.html rename : toolkit/components/console/hudservice/tests/browser/test-bug-601177-log-levels.js => browser/devtools/webconsole/test/browser/test-bug-601177-log-levels.js rename : toolkit/components/console/hudservice/tests/browser/test-bug-603750-websocket.html => browser/devtools/webconsole/test/browser/test-bug-603750-websocket.html rename : toolkit/components/console/hudservice/tests/browser/test-bug-603750-websocket.js => browser/devtools/webconsole/test/browser/test-bug-603750-websocket.js rename : toolkit/components/console/hudservice/tests/browser/test-bug-613013-console-api-iframe.html => browser/devtools/webconsole/test/browser/test-bug-613013-console-api-iframe.html rename : toolkit/components/console/hudservice/tests/browser/test-bug-618078-network-exceptions.html => browser/devtools/webconsole/test/browser/test-bug-618078-network-exceptions.html rename : toolkit/components/console/hudservice/tests/browser/test-bug-621644-jsterm-dollar.html => browser/devtools/webconsole/test/browser/test-bug-621644-jsterm-dollar.html rename : toolkit/components/console/hudservice/tests/browser/test-bug-630733-response-redirect-headers.sjs => browser/devtools/webconsole/test/browser/test-bug-630733-response-redirect-headers.sjs rename : toolkit/components/console/hudservice/tests/browser/test-bug-632275-getters.html => browser/devtools/webconsole/test/browser/test-bug-632275-getters.html rename : toolkit/components/console/hudservice/tests/browser/test-bug-632347-iterators-generators.html => browser/devtools/webconsole/test/browser/test-bug-632347-iterators-generators.html rename : toolkit/components/console/hudservice/tests/browser/test-bug-644419-log-limits.html => browser/devtools/webconsole/test/browser/test-bug-644419-log-limits.html rename : toolkit/components/console/hudservice/tests/browser/test-bug-646025-console-file-location.html => browser/devtools/webconsole/test/browser/test-bug-646025-console-file-location.html rename : toolkit/components/console/hudservice/tests/browser/test-console-extras.html => browser/devtools/webconsole/test/browser/test-console-extras.html rename : toolkit/components/console/hudservice/tests/browser/test-console-replaced-api.html => browser/devtools/webconsole/test/browser/test-console-replaced-api.html rename : toolkit/components/console/hudservice/tests/browser/test-console.html => browser/devtools/webconsole/test/browser/test-console.html rename : toolkit/components/console/hudservice/tests/browser/test-data.json => browser/devtools/webconsole/test/browser/test-data.json rename : toolkit/components/console/hudservice/tests/browser/test-duplicate-error.html => browser/devtools/webconsole/test/browser/test-duplicate-error.html rename : toolkit/components/console/hudservice/tests/browser/test-encoding-ISO-8859-1.html => browser/devtools/webconsole/test/browser/test-encoding-ISO-8859-1.html rename : toolkit/components/console/hudservice/tests/browser/test-error.html => browser/devtools/webconsole/test/browser/test-error.html rename : toolkit/components/console/hudservice/tests/browser/test-file-location.js => browser/devtools/webconsole/test/browser/test-file-location.js rename : toolkit/components/console/hudservice/tests/browser/test-filter.html => browser/devtools/webconsole/test/browser/test-filter.html rename : toolkit/components/console/hudservice/tests/browser/test-image.png => browser/devtools/webconsole/test/browser/test-image.png rename : toolkit/components/console/hudservice/tests/browser/test-mutation.html => browser/devtools/webconsole/test/browser/test-mutation.html rename : toolkit/components/console/hudservice/tests/browser/test-network-request.html => browser/devtools/webconsole/test/browser/test-network-request.html rename : toolkit/components/console/hudservice/tests/browser/test-network.html => browser/devtools/webconsole/test/browser/test-network.html rename : toolkit/components/console/hudservice/tests/browser/test-observe-http-ajax.html => browser/devtools/webconsole/test/browser/test-observe-http-ajax.html rename : toolkit/components/console/hudservice/tests/browser/test-own-console.html => browser/devtools/webconsole/test/browser/test-own-console.html rename : toolkit/components/console/hudservice/tests/browser/test-property-provider.html => browser/devtools/webconsole/test/browser/test-property-provider.html rename : toolkit/components/console/hudservice/tests/browser/testscript.js => browser/devtools/webconsole/test/browser/testscript.js
339 lines
10 KiB
JavaScript
339 lines
10 KiB
JavaScript
/* vim:set ts=2 sw=2 sts=2 et: */
|
|
/*
|
|
* Software License Agreement (BSD License)
|
|
*
|
|
* Copyright (c) 2007, Parakey Inc.
|
|
* All rights reserved.
|
|
*
|
|
* Redistribution and use of this software in source and binary forms, with or without modification,
|
|
* are permitted provided that the following conditions are met:
|
|
*
|
|
* * Redistributions of source code must retain the above
|
|
* copyright notice, this list of conditions and the
|
|
* following disclaimer.
|
|
*
|
|
* * Redistributions in binary form must reproduce the above
|
|
* copyright notice, this list of conditions and the
|
|
* following disclaimer in the documentation and/or other
|
|
* materials provided with the distribution.
|
|
*
|
|
* * Neither the name of Parakey Inc. nor the names of its
|
|
* contributors may be used to endorse or promote products
|
|
* derived from this software without specific prior
|
|
* written permission of Parakey Inc.
|
|
*
|
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
|
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
|
|
* IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
|
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
*/
|
|
|
|
/*
|
|
* Creator:
|
|
* Joe Hewitt
|
|
* Contributors
|
|
* John J. Barton (IBM Almaden)
|
|
* Jan Odvarko (Mozilla Corp.)
|
|
* Max Stepanov (Aptana Inc.)
|
|
* Rob Campbell (Mozilla Corp.)
|
|
* Hans Hillen (Paciello Group, Mozilla)
|
|
* Curtis Bartley (Mozilla Corp.)
|
|
* Mike Collins (IBM Almaden)
|
|
* Kevin Decker
|
|
* Mike Ratcliffe (Comartis AG)
|
|
* Hernan Rodríguez Colmeiro
|
|
* Austin Andrews
|
|
* Christoph Dorn
|
|
* Steven Roussey (AppCenter Inc, Network54)
|
|
*/
|
|
|
|
const Cc = Components.classes;
|
|
const Ci = Components.interfaces;
|
|
const Cu = Components.utils;
|
|
|
|
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
|
|
|
XPCOMUtils.defineLazyGetter(this, "NetUtil", function () {
|
|
var obj = {};
|
|
Cu.import("resource://gre/modules/NetUtil.jsm", obj);
|
|
return obj.NetUtil;
|
|
});
|
|
|
|
var EXPORTED_SYMBOLS = ["NetworkHelper"];
|
|
|
|
/**
|
|
* Helper object for networking stuff.
|
|
*
|
|
* All of the following functions have been taken from the Firebug source. They
|
|
* have been modified to match the Firefox coding rules.
|
|
*/
|
|
|
|
var NetworkHelper =
|
|
{
|
|
/**
|
|
* Converts aText with a given aCharset to unicode.
|
|
*
|
|
* @param string aText
|
|
* Text to convert.
|
|
* @param string aCharset
|
|
* Charset to convert the text to.
|
|
* @returns string
|
|
* Converted text.
|
|
*/
|
|
convertToUnicode: function NH_convertToUnicode(aText, aCharset)
|
|
{
|
|
if (!aCharset) {
|
|
return aText;
|
|
}
|
|
|
|
let conv = Cc["@mozilla.org/intl/scriptableunicodeconverter"].
|
|
createInstance(Ci.nsIScriptableUnicodeConverter);
|
|
conv.charset = aCharset;
|
|
|
|
try {
|
|
return conv.ConvertToUnicode(aText);
|
|
}
|
|
catch (ex) {
|
|
Cu.reportError("NH_convertToUnicode(aText, '" +
|
|
aCharset + "') exception: " + ex);
|
|
return aText;
|
|
}
|
|
},
|
|
|
|
/**
|
|
* Reads all available bytes from aStream and converts them to aCharset.
|
|
*
|
|
* @param nsIInputStream aStream
|
|
* @param string aCharset
|
|
* @returns string
|
|
* UTF-16 encoded string based on the content of aStream and aCharset.
|
|
*/
|
|
readAndConvertFromStream: function NH_readAndConvertFromStream(aStream, aCharset)
|
|
{
|
|
let text = null;
|
|
try {
|
|
text = NetUtil.readInputStreamToString(aStream, aStream.available())
|
|
return this.convertToUnicode(text, aCharset);
|
|
}
|
|
catch (err) {
|
|
return text;
|
|
}
|
|
},
|
|
|
|
/**
|
|
* Reads the posted text from aRequest.
|
|
*
|
|
* @param nsIHttpChannel aRequest
|
|
* @param nsIDOMNode aBrowser
|
|
* @returns string or null
|
|
* Returns the posted string if it was possible to read from aRequest
|
|
* otherwise null.
|
|
*/
|
|
readPostTextFromRequest: function NH_readPostTextFromRequest(aRequest, aBrowser)
|
|
{
|
|
if (aRequest instanceof Ci.nsIUploadChannel) {
|
|
let iStream = aRequest.uploadStream;
|
|
|
|
let isSeekableStream = false;
|
|
if (iStream instanceof Ci.nsISeekableStream) {
|
|
isSeekableStream = true;
|
|
}
|
|
|
|
let prevOffset;
|
|
if (isSeekableStream) {
|
|
prevOffset = iStream.tell();
|
|
iStream.seek(Ci.nsISeekableStream.NS_SEEK_SET, 0);
|
|
}
|
|
|
|
// Read data from the stream.
|
|
let charset = aBrowser.contentWindow.document.characterSet;
|
|
let text = this.readAndConvertFromStream(iStream, charset);
|
|
|
|
// Seek locks the file, so seek to the beginning only if necko hasn't
|
|
// read it yet, since necko doesn't seek to 0 before reading (at lest
|
|
// not till 459384 is fixed).
|
|
if (isSeekableStream && prevOffset == 0) {
|
|
iStream.seek(Ci.nsISeekableStream.NS_SEEK_SET, 0);
|
|
}
|
|
return text;
|
|
}
|
|
return null;
|
|
},
|
|
|
|
/**
|
|
* Reads the posted text from the page's cache.
|
|
*
|
|
* @param nsIDOMNode aBrowser
|
|
* @returns string or null
|
|
* Returns the posted string if it was possible to read from aBrowser
|
|
* otherwise null.
|
|
*/
|
|
readPostTextFromPage: function NH_readPostTextFromPage(aBrowser)
|
|
{
|
|
let webNav = aBrowser.webNavigation;
|
|
if (webNav instanceof Ci.nsIWebPageDescriptor) {
|
|
let descriptor = webNav.currentDescriptor;
|
|
|
|
if (descriptor instanceof Ci.nsISHEntry && descriptor.postData &&
|
|
descriptor instanceof Ci.nsISeekableStream) {
|
|
descriptor.seek(NS_SEEK_SET, 0);
|
|
|
|
let charset = browser.contentWindow.document.characterSet;
|
|
return this.readAndConvertFromStream(descriptor, charset);
|
|
}
|
|
}
|
|
return null;
|
|
},
|
|
|
|
/**
|
|
* Gets the nsIDOMWindow that is associated with aRequest.
|
|
*
|
|
* @param nsIHttpChannel aRequest
|
|
* @returns nsIDOMWindow or null
|
|
*/
|
|
getWindowForRequest: function NH_getWindowForRequest(aRequest)
|
|
{
|
|
let loadContext = this.getRequestLoadContext(aRequest);
|
|
if (loadContext) {
|
|
return loadContext.associatedWindow;
|
|
}
|
|
return null;
|
|
},
|
|
|
|
/**
|
|
* Gets the nsILoadContext that is associated with aRequest.
|
|
*
|
|
* @param nsIHttpChannel aRequest
|
|
* @returns nsILoadContext or null
|
|
*/
|
|
getRequestLoadContext: function NH_getRequestLoadContext(aRequest)
|
|
{
|
|
if (aRequest && aRequest.notificationCallbacks) {
|
|
try {
|
|
return aRequest.notificationCallbacks.getInterface(Ci.nsILoadContext);
|
|
} catch (ex) { }
|
|
}
|
|
|
|
if (aRequest && aRequest.loadGroup
|
|
&& aRequest.loadGroup.notificationCallbacks) {
|
|
try {
|
|
return aRequest.loadGroup.notificationCallbacks.getInterface(Ci.nsILoadContext);
|
|
} catch (ex) { }
|
|
}
|
|
|
|
return null;
|
|
},
|
|
|
|
/**
|
|
* Loads the content of aUrl from the cache.
|
|
*
|
|
* @param string aUrl
|
|
* URL to load the cached content for.
|
|
* @param string aCharset
|
|
* Assumed charset of the cached content. Used if there is no charset
|
|
* on the channel directly.
|
|
* @param function aCallback
|
|
* Callback that is called with the loaded cached content if available
|
|
* or null if something failed while getting the cached content.
|
|
*/
|
|
loadFromCache: function NH_loadFromCache(aUrl, aCharset, aCallback)
|
|
{
|
|
let channel = NetUtil.newChannel(aUrl);
|
|
|
|
// Ensure that we only read from the cache and not the server.
|
|
channel.loadFlags = Ci.nsIRequest.LOAD_FROM_CACHE |
|
|
Ci.nsICachingChannel.LOAD_ONLY_FROM_CACHE |
|
|
Ci.nsICachingChannel.LOAD_BYPASS_LOCAL_CACHE_IF_BUSY;
|
|
|
|
NetUtil.asyncFetch(channel, function (aInputStream, aStatusCode, aRequest) {
|
|
if (!Components.isSuccessCode(aStatusCode)) {
|
|
aCallback(null);
|
|
return;
|
|
}
|
|
|
|
// Try to get the encoding from the channel. If there is none, then use
|
|
// the passed assumed aCharset.
|
|
let aChannel = aRequest.QueryInterface(Ci.nsIChannel);
|
|
let contentCharset = aChannel.contentCharset || aCharset;
|
|
|
|
// Read the content of the stream using contentCharset as encoding.
|
|
aCallback(NetworkHelper.readAndConvertFromStream(aInputStream,
|
|
contentCharset));
|
|
});
|
|
},
|
|
|
|
// This is a list of all the mime category maps jviereck could find in the
|
|
// firebug code base.
|
|
mimeCategoryMap: {
|
|
"text/plain": "txt",
|
|
"text/html": "html",
|
|
"text/xml": "xml",
|
|
"text/xsl": "txt",
|
|
"text/xul": "txt",
|
|
"text/css": "css",
|
|
"text/sgml": "txt",
|
|
"text/rtf": "txt",
|
|
"text/x-setext": "txt",
|
|
"text/richtext": "txt",
|
|
"text/javascript": "js",
|
|
"text/jscript": "txt",
|
|
"text/tab-separated-values": "txt",
|
|
"text/rdf": "txt",
|
|
"text/xif": "txt",
|
|
"text/ecmascript": "js",
|
|
"text/vnd.curl": "txt",
|
|
"text/x-json": "json",
|
|
"text/x-js": "txt",
|
|
"text/js": "txt",
|
|
"text/vbscript": "txt",
|
|
"view-source": "txt",
|
|
"view-fragment": "txt",
|
|
"application/xml": "xml",
|
|
"application/xhtml+xml": "xml",
|
|
"application/atom+xml": "xml",
|
|
"application/rss+xml": "xml",
|
|
"application/vnd.mozilla.maybe.feed": "xml",
|
|
"application/vnd.mozilla.xul+xml": "xml",
|
|
"application/javascript": "js",
|
|
"application/x-javascript": "js",
|
|
"application/x-httpd-php": "txt",
|
|
"application/rdf+xml": "xml",
|
|
"application/ecmascript": "js",
|
|
"application/http-index-format": "txt",
|
|
"application/json": "json",
|
|
"application/x-js": "txt",
|
|
"multipart/mixed": "txt",
|
|
"multipart/x-mixed-replace": "txt",
|
|
"image/svg+xml": "svg",
|
|
"application/octet-stream": "bin",
|
|
"image/jpeg": "image",
|
|
"image/jpg": "image",
|
|
"image/gif": "image",
|
|
"image/png": "image",
|
|
"image/bmp": "image",
|
|
"application/x-shockwave-flash": "flash",
|
|
"video/x-flv": "flash",
|
|
"audio/mpeg3": "media",
|
|
"audio/x-mpeg-3": "media",
|
|
"video/mpeg": "media",
|
|
"video/x-mpeg": "media",
|
|
"audio/ogg": "media",
|
|
"application/ogg": "media",
|
|
"application/x-ogg": "media",
|
|
"application/x-midi": "media",
|
|
"audio/midi": "media",
|
|
"audio/x-mid": "media",
|
|
"audio/x-midi": "media",
|
|
"music/crescendo": "media",
|
|
"audio/wav": "media",
|
|
"audio/x-wav": "media",
|
|
"text/json": "json",
|
|
"application/x-json": "json",
|
|
"application/json-rpc": "json"
|
|
}
|
|
}
|