Граф коммитов

3524 Коммитов

Автор SHA1 Сообщение Дата
Sylvestre Ledru 8d2f0d1b1f Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D54686

--HG--
extra : moz-landing-system : lando
2019-11-26 14:35:02 +00:00
Masayuki Nakano ab0ac8c7e6 Bug 1581192 - `WidgetEvent::mFlags::mDispatchedAtLeastOnce` needs to be reset before dispatching in content process again r=smaug
The crash occurs when dispatching a user input event which is a default action
of a raw user input event like `click` event caused by `mouseup` event if
the raw event's `isTrusted` is set to `false` accidentally during dispatch.

User input events are fired in the main process first.  Then,
`EventStateManager` sends it to remote process from `PostHandleEvent()` if
necessary.  However, at this time, `WidgetEvent::mFlags::mDispatchedAtLeastOnce`
is never rest, but its only referrer, `EventDispatcher::DispatchDOMEvent()`
assumes that when it's `true`, `WidgetEvent::mFlags:mIsBeingDispatched` is
`false`.  Therefore, only in content process, `mouseup` event's `isTrusted` is
set to `false` by `EventTarget.dispatchEvent()` even while it's being dispatch.
And also the trusted state will be used for creating next event which is part
of the default action.
https://searchfox.org/mozilla-central/rev/6566d92dd46417a2f57e75c515135ebe84c9cef5/dom/events/EventDispatcher.cpp#1121,1126,1130-1131,1135,1138,1143

Therefore, this patch makes `WidgetEvent::mFlags` reset `mDispatchedAtLeastOnce`
when it's copied across process boundary and make
`EventDispatcher::DispatchDOMEvent()` won't modify being dispatched events for
avoiding any odd issues.

Unfortunately, this patch adds "expected: FAIL" to the new WPT test only on
Windows.  The failure reason is still unclear.  I cannot reproduce the failure
on my Windows environment, but on Try Server, it fails permanently since
the driver succeeds to send the mouse click, but the button never receives
`mouseup` nor `click` event.

Differential Revision: https://phabricator.services.mozilla.com/D52988

--HG--
extra : moz-landing-system : lando
2019-11-26 09:08:38 +00:00
Mirko Brodesser d3e79c4bb0 Bug 1599062: remove `ContentEventHandler::RawRange::IsValidBoundary`. r=masayuki
Doesn't have a definition, hence useless.

Differential Revision: https://phabricator.services.mozilla.com/D54487

--HG--
extra : moz-landing-system : lando
2019-11-26 01:43:45 +00:00
Coroiu Cristina 62da09d5c5 Backed out changeset ae4078ba01fa (bug 1595908) for browser-chrome failures at browser/base/content/test/static/browser_all_files_referenced.js on a CLOSED TREE
--HG--
rename : dom/base/crashtests/1027461-inner.xhtml => dom/base/crashtests/1027461-inner.xul
rename : dom/base/crashtests/1353529.xhtml => dom/base/crashtests/1353529.xul
rename : dom/base/crashtests/1369363.xhtml => dom/base/crashtests/1369363.xul
rename : dom/base/crashtests/1370968-inner.xhtml => dom/base/crashtests/1370968-inner.xul
rename : dom/base/crashtests/384663-1-inner.xhtml => dom/base/crashtests/384663-1-inner.xul
rename : dom/base/test/chrome/cpows_parent.xhtml => dom/base/test/chrome/cpows_parent.xul
rename : dom/base/test/chrome/file_bug1139964.xhtml => dom/base/test/chrome/file_bug1139964.xul
rename : dom/base/test/chrome/file_bug1209621.xhtml => dom/base/test/chrome/file_bug1209621.xul
rename : dom/base/test/chrome/file_bug549682.xhtml => dom/base/test/chrome/file_bug549682.xul
rename : dom/base/test/chrome/file_bug616841.xhtml => dom/base/test/chrome/file_bug616841.xul
rename : dom/base/test/chrome/file_bug816340.xhtml => dom/base/test/chrome/file_bug816340.xul
rename : dom/base/test/chrome/file_bug990812-1.xhtml => dom/base/test/chrome/file_bug990812-1.xul
rename : dom/base/test/chrome/file_bug990812-2.xhtml => dom/base/test/chrome/file_bug990812-2.xul
rename : dom/base/test/chrome/file_bug990812-3.xhtml => dom/base/test/chrome/file_bug990812-3.xul
rename : dom/base/test/chrome/file_bug990812-4.xhtml => dom/base/test/chrome/file_bug990812-4.xul
rename : dom/base/test/chrome/file_bug990812-5.xhtml => dom/base/test/chrome/file_bug990812-5.xul
rename : dom/base/test/chrome/file_bug990812.xhtml => dom/base/test/chrome/file_bug990812.xul
rename : dom/base/test/chrome/file_document-element-inserted-inner.xhtml => dom/base/test/chrome/file_document-element-inserted-inner.xul
rename : dom/base/test/chrome/file_document-element-inserted.xhtml => dom/base/test/chrome/file_document-element-inserted.xul
rename : dom/base/test/file_title.xhtml => dom/base/test/chrome/file_title.xul
rename : dom/base/test/chrome/frame_bug814638.xhtml => dom/base/test/chrome/frame_bug814638.xul
rename : dom/base/test/chrome/host_bug814638.xhtml => dom/base/test/chrome/host_bug814638.xul
rename : dom/base/test/chrome/test_bug1063837.xhtml => dom/base/test/chrome/test_bug1063837.xul
rename : dom/base/test/chrome/test_bug1098074_throw_from_ReceiveMessage.xhtml => dom/base/test/chrome/test_bug1098074_throw_from_ReceiveMessage.xul
rename : dom/base/test/chrome/test_bug1139964.xhtml => dom/base/test/chrome/test_bug1139964.xul
rename : dom/base/test/chrome/test_bug120684.xhtml => dom/base/test/chrome/test_bug120684.xul
rename : dom/base/test/chrome/test_bug1209621.xhtml => dom/base/test/chrome/test_bug1209621.xul
rename : dom/base/test/chrome/test_bug206691.xhtml => dom/base/test/chrome/test_bug206691.xul
rename : dom/base/test/chrome/test_bug289714.xhtml => dom/base/test/chrome/test_bug289714.xul
rename : dom/base/test/chrome/test_bug339494.xhtml => dom/base/test/chrome/test_bug339494.xul
rename : dom/base/test/chrome/test_bug357450.xhtml => dom/base/test/chrome/test_bug357450.xul
rename : dom/base/test/chrome/test_bug418986-1.xhtml => dom/base/test/chrome/test_bug418986-1.xul
rename : dom/base/test/chrome/test_bug421622.xhtml => dom/base/test/chrome/test_bug421622.xul
rename : dom/base/test/chrome/test_bug429785.xhtml => dom/base/test/chrome/test_bug429785.xul
rename : dom/base/test/chrome/test_bug430050.xhtml => dom/base/test/chrome/test_bug430050.xul
rename : dom/base/test/chrome/test_bug467123.xhtml => dom/base/test/chrome/test_bug467123.xul
rename : dom/base/test/chrome/test_bug473284.xhtml => dom/base/test/chrome/test_bug473284.xul
rename : dom/base/test/chrome/test_bug549682.xhtml => dom/base/test/chrome/test_bug549682.xul
rename : dom/base/test/chrome/test_bug571390.xhtml => dom/base/test/chrome/test_bug571390.xul
rename : dom/base/test/chrome/test_bug616841.xhtml => dom/base/test/chrome/test_bug616841.xul
rename : dom/base/test/chrome/test_bug635835.xhtml => dom/base/test/chrome/test_bug635835.xul
rename : dom/base/test/chrome/test_bug683852.xhtml => dom/base/test/chrome/test_bug683852.xul
rename : dom/base/test/chrome/test_bug752226-3.xhtml => dom/base/test/chrome/test_bug752226-3.xul
rename : dom/base/test/chrome/test_bug752226-4.xhtml => dom/base/test/chrome/test_bug752226-4.xul
rename : dom/base/test/chrome/test_bug780199.xhtml => dom/base/test/chrome/test_bug780199.xul
rename : dom/base/test/chrome/test_bug780529.xhtml => dom/base/test/chrome/test_bug780529.xul
rename : dom/base/test/chrome/test_bug800386.xhtml => dom/base/test/chrome/test_bug800386.xul
rename : dom/base/test/chrome/test_bug814638.xhtml => dom/base/test/chrome/test_bug814638.xul
rename : dom/base/test/chrome/test_bug816340.xhtml => dom/base/test/chrome/test_bug816340.xul
rename : dom/base/test/chrome/test_bug884693.xhtml => dom/base/test/chrome/test_bug884693.xul
rename : dom/base/test/chrome/test_bug990812.xhtml => dom/base/test/chrome/test_bug990812.xul
rename : dom/base/test/chrome/test_chromeOuterWindowID.xhtml => dom/base/test/chrome/test_chromeOuterWindowID.xul
rename : dom/base/test/chrome/test_cpows.xhtml => dom/base/test/chrome/test_cpows.xul
rename : dom/base/test/chrome/test_custom_element_content.xhtml => dom/base/test/chrome/test_custom_element_content.xul
rename : dom/base/test/chrome/test_custom_element_ep.xhtml => dom/base/test/chrome/test_custom_element_ep.xul
rename : dom/base/test/chrome/test_document-element-inserted.xhtml => dom/base/test/chrome/test_document-element-inserted.xul
rename : dom/base/test/chrome/test_domparsing.xhtml => dom/base/test/chrome/test_domparsing.xul
rename : dom/base/test/chrome/test_fileconstructor.xhtml => dom/base/test/chrome/test_fileconstructor.xul
rename : dom/base/test/chrome/test_nsITextInputProcessor.xhtml => dom/base/test/chrome/test_nsITextInputProcessor.xul
rename : dom/base/test/chrome/test_permission_isHandlingUserInput.xhtml => dom/base/test/chrome/test_permission_isHandlingUserInput.xul
rename : dom/base/test/chrome/test_swapFrameLoaders.xhtml => dom/base/test/chrome/test_swapFrameLoaders.xul
rename : dom/base/test/chrome/test_title.xhtml => dom/base/test/chrome/test_title.xul
rename : dom/base/test/chrome/test_windowroot.xhtml => dom/base/test/chrome/test_windowroot.xul
rename : dom/base/test/chrome/title_window.xhtml => dom/base/test/chrome/title_window.xul
rename : dom/base/test/chrome/window_chromeOuterWindowID.xhtml => dom/base/test/chrome/window_chromeOuterWindowID.xul
rename : dom/base/test/chrome/window_nsITextInputProcessor.xhtml => dom/base/test/chrome/window_nsITextInputProcessor.xul
rename : dom/base/test/chrome/window_swapFrameLoaders.xhtml => dom/base/test/chrome/window_swapFrameLoaders.xul
rename : dom/base/test/file_navigator_resolve_identity_xrays.xhtml => dom/base/test/file_navigator_resolve_identity_xrays.xul
rename : dom/base/test/test_anonymousContent_xul_window.xhtml => dom/base/test/test_anonymousContent_xul_window.xul
rename : dom/base/test/test_domrequesthelper.xhtml => dom/base/test/test_domrequesthelper.xul
rename : dom/base/test/test_fragment_sanitization.xhtml => dom/base/test/test_fragment_sanitization.xul
rename : dom/base/test/test_navigator_resolve_identity_xrays.xhtml => dom/base/test/test_navigator_resolve_identity_xrays.xul
rename : dom/base/test/unit/nodelist_data_2.xhtml => dom/base/test/unit/nodelist_data_2.xul
rename : dom/bindings/test/test_bug1123516_maplikesetlikechrome.xhtml => dom/bindings/test/test_bug1123516_maplikesetlikechrome.xul
rename : dom/console/tests/test_console.xhtml => dom/console/tests/test_console.xul
rename : dom/console/tests/test_jsm.xhtml => dom/console/tests/test_jsm.xul
rename : dom/encoding/test/test_stringencoding.xhtml => dom/encoding/test/test_stringencoding.xul
rename : dom/events/test/bug591249_iframe.xhtml => dom/events/test/bug591249_iframe.xul
rename : dom/events/test/bug602962.xhtml => dom/events/test/bug602962.xul
rename : dom/events/test/test_bug1412775.xhtml => dom/events/test/test_bug1412775.xul
rename : dom/events/test/test_bug336682_2.xhtml => dom/events/test/test_bug336682_2.xul
rename : dom/events/test/test_bug415498.xhtml => dom/events/test/test_bug415498.xul
rename : dom/events/test/test_bug418986-3.xhtml => dom/events/test/test_bug418986-3.xul
rename : dom/events/test/test_bug524674.xhtml => dom/events/test/test_bug524674.xul
rename : dom/events/test/test_bug586961.xhtml => dom/events/test/test_bug586961.xul
rename : dom/events/test/test_bug591249.xhtml => dom/events/test/test_bug591249.xul
rename : dom/events/test/test_bug602962.xhtml => dom/events/test/test_bug602962.xul
rename : dom/events/test/test_bug617528.xhtml => dom/events/test/test_bug617528.xul
rename : dom/events/test/test_bug679494.xhtml => dom/events/test/test_bug679494.xul
rename : dom/events/test/test_eventctors.xhtml => dom/events/test/test_eventctors.xul
rename : dom/events/test/window_bug1412775.xhtml => dom/events/test/window_bug1412775.xul
rename : dom/events/test/window_bug617528.xhtml => dom/events/test/window_bug617528.xul
rename : dom/indexedDB/test/bug839193.xhtml => dom/indexedDB/test/bug839193.xul
rename : dom/indexedDB/test/test_globalObjects_chrome.xhtml => dom/indexedDB/test/test_globalObjects_chrome.xul
rename : dom/indexedDB/test/test_wrappedArray.xhtml => dom/indexedDB/test/test_wrappedArray.xul
rename : dom/ipc/test.xhtml => dom/ipc/test.xul
rename : dom/ipc/tests/process_error.xhtml => dom/ipc/tests/process_error.xul
rename : dom/ipc/tests/test_process_error.xhtml => dom/ipc/tests/test_process_error.xul
rename : dom/l10n/tests/mochitest/dom_localization/test_domloc.xhtml => dom/l10n/tests/mochitest/dom_localization/test_domloc.xul
rename : dom/l10n/tests/mochitest/l10n_overlays/test_l10n_overlays.xhtml => dom/l10n/tests/mochitest/l10n_overlays/test_l10n_overlays.xul
rename : dom/messagechannel/tests/mm_messageChannelParent.xhtml => dom/messagechannel/tests/mm_messageChannelParent.xul
rename : dom/messagechannel/tests/mm_messageChannelParentNotRemote.xhtml => dom/messagechannel/tests/mm_messageChannelParentNotRemote.xul
rename : dom/messagechannel/tests/test_messageChannel.xhtml => dom/messagechannel/tests/test_messageChannel.xul
rename : dom/messagechannel/tests/test_messageChannelWithMessageManager.xhtml => dom/messagechannel/tests/test_messageChannelWithMessageManager.xul
rename : dom/messagechannel/tests/test_messageChannelWithMessageManagerNotRemote.xhtml => dom/messagechannel/tests/test_messageChannelWithMessageManagerNotRemote.xul
rename : dom/notification/test/chrome/test_notification_system_principal.xhtml => dom/notification/test/chrome/test_notification_system_principal.xul
rename : dom/plugins/test/mochitest/privatemode_perwindowpb.xhtml => dom/plugins/test/mochitest/privatemode_perwindowpb.xul
rename : dom/plugins/test/mochitest/test_bug479979.xhtml => dom/plugins/test/mochitest/test_bug479979.xul
rename : dom/plugins/test/mochitest/test_busy_hang.xhtml => dom/plugins/test/mochitest/test_busy_hang.xul
rename : dom/plugins/test/mochitest/test_convertpoint.xhtml => dom/plugins/test/mochitest/test_convertpoint.xul
rename : dom/plugins/test/mochitest/test_crash_notify.xhtml => dom/plugins/test/mochitest/test_crash_notify.xul
rename : dom/plugins/test/mochitest/test_crash_notify_no_report.xhtml => dom/plugins/test/mochitest/test_crash_notify_no_report.xul
rename : dom/plugins/test/mochitest/test_crash_submit.xhtml => dom/plugins/test/mochitest/test_crash_submit.xul
rename : dom/plugins/test/mochitest/test_hang_submit.xhtml => dom/plugins/test/mochitest/test_hang_submit.xul
rename : dom/plugins/test/mochitest/test_hangui.xhtml => dom/plugins/test/mochitest/test_hangui.xul
rename : dom/plugins/test/mochitest/test_idle_hang.xhtml => dom/plugins/test/mochitest/test_idle_hang.xul
rename : dom/plugins/test/mochitest/test_npruntime.xhtml => dom/plugins/test/mochitest/test_npruntime.xul
rename : dom/plugins/test/mochitest/test_privatemode_perwindowpb.xhtml => dom/plugins/test/mochitest/test_privatemode_perwindowpb.xul
rename : dom/plugins/test/mochitest/test_wmode.xhtml => dom/plugins/test/mochitest/test_wmode.xul
rename : dom/plugins/test/mochitest/test_xulbrowser_plugin_visibility.xhtml => dom/plugins/test/mochitest/test_xulbrowser_plugin_visibility.xul
rename : dom/plugins/test/mochitest/xulbrowser_plugin_visibility.xhtml => dom/plugins/test/mochitest/xulbrowser_plugin_visibility.xul
rename : dom/security/test/general/test_bug1277803.xhtml => dom/security/test/general/test_bug1277803.xul
rename : dom/serviceworkers/test/test_serviceworkerinfo.xhtml => dom/serviceworkers/test/test_serviceworkerinfo.xul
rename : dom/serviceworkers/test/test_serviceworkermanager.xhtml => dom/serviceworkers/test/test_serviceworkermanager.xul
rename : dom/serviceworkers/test/test_serviceworkerregistrationinfo.xhtml => dom/serviceworkers/test/test_serviceworkerregistrationinfo.xul
rename : dom/svg/crashtests/385554-2.xhtml => dom/svg/crashtests/385554-2.xul
rename : dom/system/tests/test_constants.xhtml => dom/system/tests/test_constants.xul
rename : dom/tests/mochitest/chrome/DOMWindowCreated_chrome.xhtml => dom/tests/mochitest/chrome/DOMWindowCreated_chrome.xul
rename : dom/tests/mochitest/chrome/MozDomFullscreen_chrome.xhtml => dom/tests/mochitest/chrome/MozDomFullscreen_chrome.xul
rename : dom/tests/mochitest/chrome/file_DOM_element_instanceof.xhtml => dom/tests/mochitest/chrome/file_DOM_element_instanceof.xul
rename : dom/tests/mochitest/chrome/file_bug1224790-1_modal.xhtml => dom/tests/mochitest/chrome/file_bug1224790-1_modal.xul
rename : dom/tests/mochitest/chrome/file_bug1224790-1_nonmodal.xhtml => dom/tests/mochitest/chrome/file_bug1224790-1_nonmodal.xul
rename : dom/tests/mochitest/chrome/file_bug1224790-2_modal.xhtml => dom/tests/mochitest/chrome/file_bug1224790-2_modal.xul
rename : dom/tests/mochitest/chrome/file_bug1224790-2_nonmodal.xhtml => dom/tests/mochitest/chrome/file_bug1224790-2_nonmodal.xul
rename : dom/tests/mochitest/chrome/file_bug799299.xhtml => dom/tests/mochitest/chrome/file_bug799299.xul
rename : dom/tests/mochitest/chrome/file_bug800817.xhtml => dom/tests/mochitest/chrome/file_bug800817.xul
rename : dom/tests/mochitest/chrome/file_bug830858.xhtml => dom/tests/mochitest/chrome/file_bug830858.xul
rename : dom/tests/mochitest/chrome/focus_window2.xhtml => dom/tests/mochitest/chrome/focus_window2.xul
rename : dom/tests/mochitest/chrome/fullscreen.xhtml => dom/tests/mochitest/chrome/fullscreen.xul
rename : dom/tests/mochitest/chrome/sizemode_attribute.xhtml => dom/tests/mochitest/chrome/sizemode_attribute.xul
rename : dom/tests/mochitest/chrome/test_DOMWindowCreated.xhtml => dom/tests/mochitest/chrome/test_DOMWindowCreated.xul
rename : dom/tests/mochitest/chrome/test_DOM_element_instanceof.xhtml => dom/tests/mochitest/chrome/test_DOM_element_instanceof.xul
rename : dom/tests/mochitest/chrome/test_MozDomFullscreen_event.xhtml => dom/tests/mochitest/chrome/test_MozDomFullscreen_event.xul
rename : dom/tests/mochitest/chrome/test_activation.xhtml => dom/tests/mochitest/chrome/test_activation.xul
rename : dom/tests/mochitest/chrome/test_bug1224790-1.xhtml => dom/tests/mochitest/chrome/test_bug1224790-1.xul
rename : dom/tests/mochitest/chrome/test_bug1224790-2.xhtml => dom/tests/mochitest/chrome/test_bug1224790-2.xul
rename : dom/tests/mochitest/chrome/test_bug799299.xhtml => dom/tests/mochitest/chrome/test_bug799299.xul
rename : dom/tests/mochitest/chrome/test_bug800817.xhtml => dom/tests/mochitest/chrome/test_bug800817.xul
rename : dom/tests/mochitest/chrome/test_bug830858.xhtml => dom/tests/mochitest/chrome/test_bug830858.xul
rename : dom/tests/mochitest/chrome/test_callback_wrapping.xhtml => dom/tests/mochitest/chrome/test_callback_wrapping.xul
rename : dom/tests/mochitest/chrome/test_clonewrapper.xhtml => dom/tests/mochitest/chrome/test_clonewrapper.xul
rename : dom/tests/mochitest/chrome/test_cyclecollector.xhtml => dom/tests/mochitest/chrome/test_cyclecollector.xul
rename : dom/tests/mochitest/chrome/test_docshell_swap.xhtml => dom/tests/mochitest/chrome/test_docshell_swap.xul
rename : dom/tests/mochitest/chrome/test_elements_proto.xhtml => dom/tests/mochitest/chrome/test_elements_proto.xul
rename : dom/tests/mochitest/chrome/test_focus.xhtml => dom/tests/mochitest/chrome/test_focus.xul
rename : dom/tests/mochitest/chrome/test_focus_docnav.xhtml => dom/tests/mochitest/chrome/test_focus_docnav.xul
rename : dom/tests/mochitest/chrome/test_focused_link_scroll.xhtml => dom/tests/mochitest/chrome/test_focused_link_scroll.xul
rename : dom/tests/mochitest/chrome/test_fullscreen.xhtml => dom/tests/mochitest/chrome/test_fullscreen.xul
rename : dom/tests/mochitest/chrome/test_geolocation.xhtml => dom/tests/mochitest/chrome/test_geolocation.xul
rename : dom/tests/mochitest/chrome/test_moving_nodeList.xhtml => dom/tests/mochitest/chrome/test_moving_nodeList.xul
rename : dom/tests/mochitest/chrome/test_moving_xhr.xhtml => dom/tests/mochitest/chrome/test_moving_xhr.xul
rename : dom/tests/mochitest/chrome/test_popup_blocker_chrome.xhtml => dom/tests/mochitest/chrome/test_popup_blocker_chrome.xul
rename : dom/tests/mochitest/chrome/test_resize_move_windows.xhtml => dom/tests/mochitest/chrome/test_resize_move_windows.xul
rename : dom/tests/mochitest/chrome/test_sandbox_bindings.xhtml => dom/tests/mochitest/chrome/test_sandbox_bindings.xul
rename : dom/tests/mochitest/chrome/test_sandbox_eventhandler.xhtml => dom/tests/mochitest/chrome/test_sandbox_eventhandler.xul
rename : dom/tests/mochitest/chrome/test_sandbox_image.xhtml => dom/tests/mochitest/chrome/test_sandbox_image.xul
rename : dom/tests/mochitest/chrome/test_sizemode_attribute.xhtml => dom/tests/mochitest/chrome/test_sizemode_attribute.xul
rename : dom/tests/mochitest/chrome/test_subscript_bindings.xhtml => dom/tests/mochitest/chrome/test_subscript_bindings.xul
rename : dom/tests/mochitest/chrome/test_xray_event_constructor.xhtml => dom/tests/mochitest/chrome/test_xray_event_constructor.xul
rename : dom/tests/mochitest/chrome/window_activation.xhtml => dom/tests/mochitest/chrome/window_activation.xul
rename : dom/tests/mochitest/chrome/window_callback_wrapping.xhtml => dom/tests/mochitest/chrome/window_callback_wrapping.xul
rename : dom/tests/mochitest/chrome/window_docshell_swap.xhtml => dom/tests/mochitest/chrome/window_docshell_swap.xul
rename : dom/tests/mochitest/chrome/window_focus.xhtml => dom/tests/mochitest/chrome/window_focus.xul
rename : dom/tests/mochitest/chrome/window_focus_docnav.xhtml => dom/tests/mochitest/chrome/window_focus_docnav.xul
rename : dom/tests/mochitest/chrome/window_focus_inner.xhtml => dom/tests/mochitest/chrome/window_focus_inner.xul
rename : dom/tests/mochitest/general/test_focusrings.xhtml => dom/tests/mochitest/general/test_focusrings.xul
rename : dom/tests/mochitest/general/test_innerScreen.xhtml => dom/tests/mochitest/general/test_innerScreen.xul
rename : dom/tests/mochitest/general/test_nodeAdoption_chrome_boundary.xhtml => dom/tests/mochitest/general/test_nodeAdoption_chrome_boundary.xul
rename : dom/tests/mochitest/general/test_offsets.xhtml => dom/tests/mochitest/general/test_offsets.xul
rename : dom/tests/mochitest/keyhandling/test_browser.xhtml => dom/tests/mochitest/keyhandling/test_browser.xul
rename : dom/tests/mochitest/keyhandling/test_editor.xhtml => dom/tests/mochitest/keyhandling/test_editor.xul
rename : dom/tests/mochitest/keyhandling/test_windowed.xhtml => dom/tests/mochitest/keyhandling/test_windowed.xul
rename : dom/tests/mochitest/webcomponents/test_xul_custom_element.xhtml => dom/tests/mochitest/webcomponents/test_xul_custom_element.xul
rename : dom/url/tests/test_bug883784.xhtml => dom/url/tests/test_bug883784.xul
rename : dom/url/tests/test_url.xhtml => dom/url/tests/test_url.xul
rename : dom/url/tests/test_worker_url.xhtml => dom/url/tests/test_worker_url.xul
rename : dom/workers/test/test_WorkerDebugger.initialize.xhtml => dom/workers/test/test_WorkerDebugger.initialize.xul
rename : dom/workers/test/test_WorkerDebugger.postMessage.xhtml => dom/workers/test/test_WorkerDebugger.postMessage.xul
rename : dom/workers/test/test_WorkerDebugger.xhtml => dom/workers/test/test_WorkerDebugger.xul
rename : dom/workers/test/test_WorkerDebuggerGlobalScope.createSandbox.xhtml => dom/workers/test/test_WorkerDebuggerGlobalScope.createSandbox.xul
rename : dom/workers/test/test_WorkerDebuggerGlobalScope.enterEventLoop.xhtml => dom/workers/test/test_WorkerDebuggerGlobalScope.enterEventLoop.xul
rename : dom/workers/test/test_WorkerDebuggerGlobalScope.reportError.xhtml => dom/workers/test/test_WorkerDebuggerGlobalScope.reportError.xul
rename : dom/workers/test/test_WorkerDebuggerGlobalScope.setImmediate.xhtml => dom/workers/test/test_WorkerDebuggerGlobalScope.setImmediate.xul
rename : dom/workers/test/test_WorkerDebuggerManager.xhtml => dom/workers/test/test_WorkerDebuggerManager.xul
rename : dom/workers/test/test_WorkerDebugger_console.xhtml => dom/workers/test/test_WorkerDebugger_console.xul
rename : dom/workers/test/test_WorkerDebugger_frozen.xhtml => dom/workers/test/test_WorkerDebugger_frozen.xul
rename : dom/workers/test/test_WorkerDebugger_promise.xhtml => dom/workers/test/test_WorkerDebugger_promise.xul
rename : dom/workers/test/test_WorkerDebugger_suspended.xhtml => dom/workers/test/test_WorkerDebugger_suspended.xul
rename : dom/workers/test/test_bug1062920.xhtml => dom/workers/test/test_bug1062920.xul
rename : dom/workers/test/test_chromeWorker.xhtml => dom/workers/test/test_chromeWorker.xul
rename : dom/workers/test/test_chromeWorkerJSM.xhtml => dom/workers/test/test_chromeWorkerJSM.xul
rename : dom/workers/test/test_file.xhtml => dom/workers/test/test_file.xul
rename : dom/workers/test/test_fileBlobPosting.xhtml => dom/workers/test/test_fileBlobPosting.xul
rename : dom/workers/test/test_fileBlobSubWorker.xhtml => dom/workers/test/test_fileBlobSubWorker.xul
rename : dom/workers/test/test_filePosting.xhtml => dom/workers/test/test_filePosting.xul
rename : dom/workers/test/test_fileReadSlice.xhtml => dom/workers/test/test_fileReadSlice.xul
rename : dom/workers/test/test_fileReaderSync.xhtml => dom/workers/test/test_fileReaderSync.xul
rename : dom/workers/test/test_fileReaderSyncErrors.xhtml => dom/workers/test/test_fileReaderSyncErrors.xul
rename : dom/workers/test/test_fileSlice.xhtml => dom/workers/test/test_fileSlice.xul
rename : dom/workers/test/test_fileSubWorker.xhtml => dom/workers/test/test_fileSubWorker.xul
rename : dom/workers/test/test_shutdownCheck.xhtml => dom/workers/test/test_shutdownCheck.xul
rename : dom/xml/crashtests/382636-4.xhtml => dom/xml/crashtests/382636-4.xul
rename : dom/xml/crashtests/420429.xhtml => dom/xml/crashtests/420429.xul
rename : dom/xslt/tests/XSLTMark/XSLTMark.xhtml => dom/xslt/tests/XSLTMark/XSLTMark.xul
rename : dom/xul/crashtests/253479-1.xhtml => dom/xul/crashtests/253479-1.xul
rename : dom/xul/crashtests/253479-2.xhtml => dom/xul/crashtests/253479-2.xul
rename : dom/xul/crashtests/326204-1.xhtml => dom/xul/crashtests/326204-1.xul
rename : dom/xul/crashtests/326644-1-inner.xhtml => dom/xul/crashtests/326644-1-inner.xul
rename : dom/xul/crashtests/326875-1.xhtml => dom/xul/crashtests/326875-1.xul
rename : dom/xul/crashtests/344215-1.xhtml => dom/xul/crashtests/344215-1.xul
rename : dom/xul/crashtests/363791-1.xhtml => dom/xul/crashtests/363791-1.xul
rename : dom/xul/crashtests/384877-1-inner.xhtml => dom/xul/crashtests/384877-1-inner.xul
rename : dom/xul/crashtests/386914-1-inner.xhtml => dom/xul/crashtests/386914-1-inner.xul
rename : dom/xul/crashtests/425821-1.xhtml => dom/xul/crashtests/425821-1.xul
rename : dom/xul/crashtests/428951-1.xhtml => dom/xul/crashtests/428951-1.xul
rename : dom/xul/crashtests/431906-1-inner.xhtml => dom/xul/crashtests/431906-1-inner.xul
rename : dom/xul/test/398289-resource.xhtml => dom/xul/test/398289-resource.xul
rename : dom/xul/test/test_bug1070049_throw_from_script.xhtml => dom/xul/test/test_bug1070049_throw_from_script.xul
rename : dom/xul/test/test_bug1290965.xhtml => dom/xul/test/test_bug1290965.xul
rename : dom/xul/test/test_bug199692.xhtml => dom/xul/test/test_bug199692.xul
rename : dom/xul/test/test_bug311681.xhtml => dom/xul/test/test_bug311681.xul
rename : dom/xul/test/test_bug391002.xhtml => dom/xul/test/test_bug391002.xul
rename : dom/xul/test/test_bug403868.xhtml => dom/xul/test/test_bug403868.xul
rename : dom/xul/test/test_bug418216.xhtml => dom/xul/test/test_bug418216.xul
rename : dom/xul/test/test_bug445177.xhtml => dom/xul/test/test_bug445177.xul
rename : dom/xul/test/test_bug449457.xhtml => dom/xul/test/test_bug449457.xul
rename : dom/xul/test/test_bug468176.xhtml => dom/xul/test/test_bug468176.xul
rename : dom/xul/test/test_bug583948.xhtml => dom/xul/test/test_bug583948.xul
rename : dom/xul/test/test_bug749367.xhtml => dom/xul/test/test_bug749367.xul
rename : dom/xul/test/test_bug757137.xhtml => dom/xul/test/test_bug757137.xul
rename : dom/xul/test/test_bug775972.xhtml => dom/xul/test/test_bug775972.xul
rename : dom/xul/test/test_html_template.xhtml => dom/xul/test/test_html_template.xul
rename : dom/xul/test/test_import_xul_to_content.xhtml => dom/xul/test/test_import_xul_to_content.xul
rename : dom/xul/test/window_bug583948.xhtml => dom/xul/test/window_bug583948.xul
rename : dom/xul/test/window_bug757137.xhtml => dom/xul/test/window_bug757137.xul
2019-11-26 04:38:55 +02:00
Emma Malysz fae60e41e9 Bug 1595908, replace .xul test files in dom/ to .xhtml r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D52775

--HG--
rename : dom/base/crashtests/1027461-inner.xul => dom/base/crashtests/1027461-inner.xhtml
rename : dom/base/crashtests/1353529.xul => dom/base/crashtests/1353529.xhtml
rename : dom/base/crashtests/1369363.xul => dom/base/crashtests/1369363.xhtml
rename : dom/base/crashtests/1370968-inner.xul => dom/base/crashtests/1370968-inner.xhtml
rename : dom/base/crashtests/384663-1-inner.xul => dom/base/crashtests/384663-1-inner.xhtml
rename : dom/base/test/chrome/cpows_parent.xul => dom/base/test/chrome/cpows_parent.xhtml
rename : dom/base/test/chrome/file_bug1139964.xul => dom/base/test/chrome/file_bug1139964.xhtml
rename : dom/base/test/chrome/file_bug1209621.xul => dom/base/test/chrome/file_bug1209621.xhtml
rename : dom/base/test/chrome/file_bug549682.xul => dom/base/test/chrome/file_bug549682.xhtml
rename : dom/base/test/chrome/file_bug616841.xul => dom/base/test/chrome/file_bug616841.xhtml
rename : dom/base/test/chrome/file_bug816340.xul => dom/base/test/chrome/file_bug816340.xhtml
rename : dom/base/test/chrome/file_bug990812-1.xul => dom/base/test/chrome/file_bug990812-1.xhtml
rename : dom/base/test/chrome/file_bug990812-2.xul => dom/base/test/chrome/file_bug990812-2.xhtml
rename : dom/base/test/chrome/file_bug990812-3.xul => dom/base/test/chrome/file_bug990812-3.xhtml
rename : dom/base/test/chrome/file_bug990812-4.xul => dom/base/test/chrome/file_bug990812-4.xhtml
rename : dom/base/test/chrome/file_bug990812-5.xul => dom/base/test/chrome/file_bug990812-5.xhtml
rename : dom/base/test/chrome/file_bug990812.xul => dom/base/test/chrome/file_bug990812.xhtml
rename : dom/base/test/chrome/file_document-element-inserted-inner.xul => dom/base/test/chrome/file_document-element-inserted-inner.xhtml
rename : dom/base/test/chrome/file_document-element-inserted.xul => dom/base/test/chrome/file_document-element-inserted.xhtml
rename : dom/base/test/chrome/file_title.xul => dom/base/test/chrome/file_title.xhtml
rename : dom/base/test/chrome/frame_bug814638.xul => dom/base/test/chrome/frame_bug814638.xhtml
rename : dom/base/test/chrome/host_bug814638.xul => dom/base/test/chrome/host_bug814638.xhtml
rename : dom/base/test/chrome/test_bug1063837.xul => dom/base/test/chrome/test_bug1063837.xhtml
rename : dom/base/test/chrome/test_bug1098074_throw_from_ReceiveMessage.xul => dom/base/test/chrome/test_bug1098074_throw_from_ReceiveMessage.xhtml
rename : dom/base/test/chrome/test_bug1139964.xul => dom/base/test/chrome/test_bug1139964.xhtml
rename : dom/base/test/chrome/test_bug120684.xul => dom/base/test/chrome/test_bug120684.xhtml
rename : dom/base/test/chrome/test_bug1209621.xul => dom/base/test/chrome/test_bug1209621.xhtml
rename : dom/base/test/chrome/test_bug206691.xul => dom/base/test/chrome/test_bug206691.xhtml
rename : dom/base/test/chrome/test_bug289714.xul => dom/base/test/chrome/test_bug289714.xhtml
rename : dom/base/test/chrome/test_bug339494.xul => dom/base/test/chrome/test_bug339494.xhtml
rename : dom/base/test/chrome/test_bug357450.xul => dom/base/test/chrome/test_bug357450.xhtml
rename : dom/base/test/chrome/test_bug418986-1.xul => dom/base/test/chrome/test_bug418986-1.xhtml
rename : dom/base/test/chrome/test_bug421622.xul => dom/base/test/chrome/test_bug421622.xhtml
rename : dom/base/test/chrome/test_bug429785.xul => dom/base/test/chrome/test_bug429785.xhtml
rename : dom/base/test/chrome/test_bug430050.xul => dom/base/test/chrome/test_bug430050.xhtml
rename : dom/base/test/chrome/test_bug467123.xul => dom/base/test/chrome/test_bug467123.xhtml
rename : dom/base/test/chrome/test_bug473284.xul => dom/base/test/chrome/test_bug473284.xhtml
rename : dom/base/test/chrome/test_bug549682.xul => dom/base/test/chrome/test_bug549682.xhtml
rename : dom/base/test/chrome/test_bug571390.xul => dom/base/test/chrome/test_bug571390.xhtml
rename : dom/base/test/chrome/test_bug616841.xul => dom/base/test/chrome/test_bug616841.xhtml
rename : dom/base/test/chrome/test_bug635835.xul => dom/base/test/chrome/test_bug635835.xhtml
rename : dom/base/test/chrome/test_bug683852.xul => dom/base/test/chrome/test_bug683852.xhtml
rename : dom/base/test/chrome/test_bug752226-3.xul => dom/base/test/chrome/test_bug752226-3.xhtml
rename : dom/base/test/chrome/test_bug752226-4.xul => dom/base/test/chrome/test_bug752226-4.xhtml
rename : dom/base/test/chrome/test_bug780199.xul => dom/base/test/chrome/test_bug780199.xhtml
rename : dom/base/test/chrome/test_bug780529.xul => dom/base/test/chrome/test_bug780529.xhtml
rename : dom/base/test/chrome/test_bug800386.xul => dom/base/test/chrome/test_bug800386.xhtml
rename : dom/base/test/chrome/test_bug814638.xul => dom/base/test/chrome/test_bug814638.xhtml
rename : dom/base/test/chrome/test_bug816340.xul => dom/base/test/chrome/test_bug816340.xhtml
rename : dom/base/test/chrome/test_bug884693.xul => dom/base/test/chrome/test_bug884693.xhtml
rename : dom/base/test/chrome/test_bug990812.xul => dom/base/test/chrome/test_bug990812.xhtml
rename : dom/base/test/chrome/test_chromeOuterWindowID.xul => dom/base/test/chrome/test_chromeOuterWindowID.xhtml
rename : dom/base/test/chrome/test_cpows.xul => dom/base/test/chrome/test_cpows.xhtml
rename : dom/base/test/chrome/test_custom_element_content.xul => dom/base/test/chrome/test_custom_element_content.xhtml
rename : dom/base/test/chrome/test_custom_element_ep.xul => dom/base/test/chrome/test_custom_element_ep.xhtml
rename : dom/base/test/chrome/test_document-element-inserted.xul => dom/base/test/chrome/test_document-element-inserted.xhtml
rename : dom/base/test/chrome/test_domparsing.xul => dom/base/test/chrome/test_domparsing.xhtml
rename : dom/base/test/chrome/test_fileconstructor.xul => dom/base/test/chrome/test_fileconstructor.xhtml
rename : dom/base/test/chrome/test_nsITextInputProcessor.xul => dom/base/test/chrome/test_nsITextInputProcessor.xhtml
rename : dom/base/test/chrome/test_permission_isHandlingUserInput.xul => dom/base/test/chrome/test_permission_isHandlingUserInput.xhtml
rename : dom/base/test/chrome/test_swapFrameLoaders.xul => dom/base/test/chrome/test_swapFrameLoaders.xhtml
rename : dom/base/test/chrome/test_title.xul => dom/base/test/chrome/test_title.xhtml
rename : dom/base/test/chrome/test_windowroot.xul => dom/base/test/chrome/test_windowroot.xhtml
rename : dom/base/test/chrome/title_window.xul => dom/base/test/chrome/title_window.xhtml
rename : dom/base/test/chrome/window_chromeOuterWindowID.xul => dom/base/test/chrome/window_chromeOuterWindowID.xhtml
rename : dom/base/test/chrome/window_nsITextInputProcessor.xul => dom/base/test/chrome/window_nsITextInputProcessor.xhtml
rename : dom/base/test/chrome/window_swapFrameLoaders.xul => dom/base/test/chrome/window_swapFrameLoaders.xhtml
rename : dom/base/test/file_navigator_resolve_identity_xrays.xul => dom/base/test/file_navigator_resolve_identity_xrays.xhtml
rename : dom/base/test/chrome/file_title.xul => dom/base/test/file_title.xhtml
rename : dom/base/test/test_anonymousContent_xul_window.xul => dom/base/test/test_anonymousContent_xul_window.xhtml
rename : dom/base/test/test_domrequesthelper.xul => dom/base/test/test_domrequesthelper.xhtml
rename : dom/base/test/test_fragment_sanitization.xul => dom/base/test/test_fragment_sanitization.xhtml
rename : dom/base/test/test_navigator_resolve_identity_xrays.xul => dom/base/test/test_navigator_resolve_identity_xrays.xhtml
rename : dom/base/test/unit/nodelist_data_2.xul => dom/base/test/unit/nodelist_data_2.xhtml
rename : dom/bindings/test/test_bug1123516_maplikesetlikechrome.xul => dom/bindings/test/test_bug1123516_maplikesetlikechrome.xhtml
rename : dom/console/tests/test_console.xul => dom/console/tests/test_console.xhtml
rename : dom/console/tests/test_jsm.xul => dom/console/tests/test_jsm.xhtml
rename : dom/encoding/test/test_stringencoding.xul => dom/encoding/test/test_stringencoding.xhtml
rename : dom/events/test/bug591249_iframe.xul => dom/events/test/bug591249_iframe.xhtml
rename : dom/events/test/bug602962.xul => dom/events/test/bug602962.xhtml
rename : dom/events/test/test_bug1412775.xul => dom/events/test/test_bug1412775.xhtml
rename : dom/events/test/test_bug336682_2.xul => dom/events/test/test_bug336682_2.xhtml
rename : dom/events/test/test_bug415498.xul => dom/events/test/test_bug415498.xhtml
rename : dom/events/test/test_bug418986-3.xul => dom/events/test/test_bug418986-3.xhtml
rename : dom/events/test/test_bug524674.xul => dom/events/test/test_bug524674.xhtml
rename : dom/events/test/test_bug586961.xul => dom/events/test/test_bug586961.xhtml
rename : dom/events/test/test_bug591249.xul => dom/events/test/test_bug591249.xhtml
rename : dom/events/test/test_bug602962.xul => dom/events/test/test_bug602962.xhtml
rename : dom/events/test/test_bug617528.xul => dom/events/test/test_bug617528.xhtml
rename : dom/events/test/test_bug679494.xul => dom/events/test/test_bug679494.xhtml
rename : dom/events/test/test_eventctors.xul => dom/events/test/test_eventctors.xhtml
rename : dom/events/test/window_bug1412775.xul => dom/events/test/window_bug1412775.xhtml
rename : dom/events/test/window_bug617528.xul => dom/events/test/window_bug617528.xhtml
rename : dom/indexedDB/test/bug839193.xul => dom/indexedDB/test/bug839193.xhtml
rename : dom/indexedDB/test/test_globalObjects_chrome.xul => dom/indexedDB/test/test_globalObjects_chrome.xhtml
rename : dom/indexedDB/test/test_wrappedArray.xul => dom/indexedDB/test/test_wrappedArray.xhtml
rename : dom/ipc/test.xul => dom/ipc/test.xhtml
rename : dom/ipc/tests/process_error.xul => dom/ipc/tests/process_error.xhtml
rename : dom/ipc/tests/test_process_error.xul => dom/ipc/tests/test_process_error.xhtml
rename : dom/l10n/tests/mochitest/dom_localization/test_domloc.xul => dom/l10n/tests/mochitest/dom_localization/test_domloc.xhtml
rename : dom/l10n/tests/mochitest/l10n_overlays/test_l10n_overlays.xul => dom/l10n/tests/mochitest/l10n_overlays/test_l10n_overlays.xhtml
rename : dom/messagechannel/tests/mm_messageChannelParent.xul => dom/messagechannel/tests/mm_messageChannelParent.xhtml
rename : dom/messagechannel/tests/mm_messageChannelParentNotRemote.xul => dom/messagechannel/tests/mm_messageChannelParentNotRemote.xhtml
rename : dom/messagechannel/tests/test_messageChannel.xul => dom/messagechannel/tests/test_messageChannel.xhtml
rename : dom/messagechannel/tests/test_messageChannelWithMessageManager.xul => dom/messagechannel/tests/test_messageChannelWithMessageManager.xhtml
rename : dom/messagechannel/tests/test_messageChannelWithMessageManagerNotRemote.xul => dom/messagechannel/tests/test_messageChannelWithMessageManagerNotRemote.xhtml
rename : dom/notification/test/chrome/test_notification_system_principal.xul => dom/notification/test/chrome/test_notification_system_principal.xhtml
rename : dom/plugins/test/mochitest/privatemode_perwindowpb.xul => dom/plugins/test/mochitest/privatemode_perwindowpb.xhtml
rename : dom/plugins/test/mochitest/test_bug479979.xul => dom/plugins/test/mochitest/test_bug479979.xhtml
rename : dom/plugins/test/mochitest/test_busy_hang.xul => dom/plugins/test/mochitest/test_busy_hang.xhtml
rename : dom/plugins/test/mochitest/test_convertpoint.xul => dom/plugins/test/mochitest/test_convertpoint.xhtml
rename : dom/plugins/test/mochitest/test_crash_notify.xul => dom/plugins/test/mochitest/test_crash_notify.xhtml
rename : dom/plugins/test/mochitest/test_crash_notify_no_report.xul => dom/plugins/test/mochitest/test_crash_notify_no_report.xhtml
rename : dom/plugins/test/mochitest/test_crash_submit.xul => dom/plugins/test/mochitest/test_crash_submit.xhtml
rename : dom/plugins/test/mochitest/test_hang_submit.xul => dom/plugins/test/mochitest/test_hang_submit.xhtml
rename : dom/plugins/test/mochitest/test_hangui.xul => dom/plugins/test/mochitest/test_hangui.xhtml
rename : dom/plugins/test/mochitest/test_idle_hang.xul => dom/plugins/test/mochitest/test_idle_hang.xhtml
rename : dom/plugins/test/mochitest/test_npruntime.xul => dom/plugins/test/mochitest/test_npruntime.xhtml
rename : dom/plugins/test/mochitest/test_privatemode_perwindowpb.xul => dom/plugins/test/mochitest/test_privatemode_perwindowpb.xhtml
rename : dom/plugins/test/mochitest/test_wmode.xul => dom/plugins/test/mochitest/test_wmode.xhtml
rename : dom/plugins/test/mochitest/test_xulbrowser_plugin_visibility.xul => dom/plugins/test/mochitest/test_xulbrowser_plugin_visibility.xhtml
rename : dom/plugins/test/mochitest/xulbrowser_plugin_visibility.xul => dom/plugins/test/mochitest/xulbrowser_plugin_visibility.xhtml
rename : dom/security/test/general/test_bug1277803.xul => dom/security/test/general/test_bug1277803.xhtml
rename : dom/serviceworkers/test/test_serviceworkerinfo.xul => dom/serviceworkers/test/test_serviceworkerinfo.xhtml
rename : dom/serviceworkers/test/test_serviceworkermanager.xul => dom/serviceworkers/test/test_serviceworkermanager.xhtml
rename : dom/serviceworkers/test/test_serviceworkerregistrationinfo.xul => dom/serviceworkers/test/test_serviceworkerregistrationinfo.xhtml
rename : dom/svg/crashtests/385554-2.xul => dom/svg/crashtests/385554-2.xhtml
rename : dom/system/tests/test_constants.xul => dom/system/tests/test_constants.xhtml
rename : dom/tests/mochitest/chrome/DOMWindowCreated_chrome.xul => dom/tests/mochitest/chrome/DOMWindowCreated_chrome.xhtml
rename : dom/tests/mochitest/chrome/MozDomFullscreen_chrome.xul => dom/tests/mochitest/chrome/MozDomFullscreen_chrome.xhtml
rename : dom/tests/mochitest/chrome/file_DOM_element_instanceof.xul => dom/tests/mochitest/chrome/file_DOM_element_instanceof.xhtml
rename : dom/tests/mochitest/chrome/file_bug1224790-1_modal.xul => dom/tests/mochitest/chrome/file_bug1224790-1_modal.xhtml
rename : dom/tests/mochitest/chrome/file_bug1224790-1_nonmodal.xul => dom/tests/mochitest/chrome/file_bug1224790-1_nonmodal.xhtml
rename : dom/tests/mochitest/chrome/file_bug1224790-2_modal.xul => dom/tests/mochitest/chrome/file_bug1224790-2_modal.xhtml
rename : dom/tests/mochitest/chrome/file_bug1224790-2_nonmodal.xul => dom/tests/mochitest/chrome/file_bug1224790-2_nonmodal.xhtml
rename : dom/tests/mochitest/chrome/file_bug799299.xul => dom/tests/mochitest/chrome/file_bug799299.xhtml
rename : dom/tests/mochitest/chrome/file_bug800817.xul => dom/tests/mochitest/chrome/file_bug800817.xhtml
rename : dom/tests/mochitest/chrome/file_bug830858.xul => dom/tests/mochitest/chrome/file_bug830858.xhtml
rename : dom/tests/mochitest/chrome/focus_window2.xul => dom/tests/mochitest/chrome/focus_window2.xhtml
rename : dom/tests/mochitest/chrome/fullscreen.xul => dom/tests/mochitest/chrome/fullscreen.xhtml
rename : dom/tests/mochitest/chrome/sizemode_attribute.xul => dom/tests/mochitest/chrome/sizemode_attribute.xhtml
rename : dom/tests/mochitest/chrome/test_DOMWindowCreated.xul => dom/tests/mochitest/chrome/test_DOMWindowCreated.xhtml
rename : dom/tests/mochitest/chrome/test_DOM_element_instanceof.xul => dom/tests/mochitest/chrome/test_DOM_element_instanceof.xhtml
rename : dom/tests/mochitest/chrome/test_MozDomFullscreen_event.xul => dom/tests/mochitest/chrome/test_MozDomFullscreen_event.xhtml
rename : dom/tests/mochitest/chrome/test_activation.xul => dom/tests/mochitest/chrome/test_activation.xhtml
rename : dom/tests/mochitest/chrome/test_bug1224790-1.xul => dom/tests/mochitest/chrome/test_bug1224790-1.xhtml
rename : dom/tests/mochitest/chrome/test_bug1224790-2.xul => dom/tests/mochitest/chrome/test_bug1224790-2.xhtml
rename : dom/tests/mochitest/chrome/test_bug799299.xul => dom/tests/mochitest/chrome/test_bug799299.xhtml
rename : dom/tests/mochitest/chrome/test_bug800817.xul => dom/tests/mochitest/chrome/test_bug800817.xhtml
rename : dom/tests/mochitest/chrome/test_bug830858.xul => dom/tests/mochitest/chrome/test_bug830858.xhtml
rename : dom/tests/mochitest/chrome/test_callback_wrapping.xul => dom/tests/mochitest/chrome/test_callback_wrapping.xhtml
rename : dom/tests/mochitest/chrome/test_clonewrapper.xul => dom/tests/mochitest/chrome/test_clonewrapper.xhtml
rename : dom/tests/mochitest/chrome/test_cyclecollector.xul => dom/tests/mochitest/chrome/test_cyclecollector.xhtml
rename : dom/tests/mochitest/chrome/test_docshell_swap.xul => dom/tests/mochitest/chrome/test_docshell_swap.xhtml
rename : dom/tests/mochitest/chrome/test_elements_proto.xul => dom/tests/mochitest/chrome/test_elements_proto.xhtml
rename : dom/tests/mochitest/chrome/test_focus.xul => dom/tests/mochitest/chrome/test_focus.xhtml
rename : dom/tests/mochitest/chrome/test_focus_docnav.xul => dom/tests/mochitest/chrome/test_focus_docnav.xhtml
rename : dom/tests/mochitest/chrome/test_focused_link_scroll.xul => dom/tests/mochitest/chrome/test_focused_link_scroll.xhtml
rename : dom/tests/mochitest/chrome/test_fullscreen.xul => dom/tests/mochitest/chrome/test_fullscreen.xhtml
rename : dom/tests/mochitest/chrome/test_geolocation.xul => dom/tests/mochitest/chrome/test_geolocation.xhtml
rename : dom/tests/mochitest/chrome/test_moving_nodeList.xul => dom/tests/mochitest/chrome/test_moving_nodeList.xhtml
rename : dom/tests/mochitest/chrome/test_moving_xhr.xul => dom/tests/mochitest/chrome/test_moving_xhr.xhtml
rename : dom/tests/mochitest/chrome/test_popup_blocker_chrome.xul => dom/tests/mochitest/chrome/test_popup_blocker_chrome.xhtml
rename : dom/tests/mochitest/chrome/test_resize_move_windows.xul => dom/tests/mochitest/chrome/test_resize_move_windows.xhtml
rename : dom/tests/mochitest/chrome/test_sandbox_bindings.xul => dom/tests/mochitest/chrome/test_sandbox_bindings.xhtml
rename : dom/tests/mochitest/chrome/test_sandbox_eventhandler.xul => dom/tests/mochitest/chrome/test_sandbox_eventhandler.xhtml
rename : dom/tests/mochitest/chrome/test_sandbox_image.xul => dom/tests/mochitest/chrome/test_sandbox_image.xhtml
rename : dom/tests/mochitest/chrome/test_sizemode_attribute.xul => dom/tests/mochitest/chrome/test_sizemode_attribute.xhtml
rename : dom/tests/mochitest/chrome/test_subscript_bindings.xul => dom/tests/mochitest/chrome/test_subscript_bindings.xhtml
rename : dom/tests/mochitest/chrome/test_xray_event_constructor.xul => dom/tests/mochitest/chrome/test_xray_event_constructor.xhtml
rename : dom/tests/mochitest/chrome/window_activation.xul => dom/tests/mochitest/chrome/window_activation.xhtml
rename : dom/tests/mochitest/chrome/window_callback_wrapping.xul => dom/tests/mochitest/chrome/window_callback_wrapping.xhtml
rename : dom/tests/mochitest/chrome/window_docshell_swap.xul => dom/tests/mochitest/chrome/window_docshell_swap.xhtml
rename : dom/tests/mochitest/chrome/window_focus.xul => dom/tests/mochitest/chrome/window_focus.xhtml
rename : dom/tests/mochitest/chrome/window_focus_docnav.xul => dom/tests/mochitest/chrome/window_focus_docnav.xhtml
rename : dom/tests/mochitest/chrome/window_focus_inner.xul => dom/tests/mochitest/chrome/window_focus_inner.xhtml
rename : dom/tests/mochitest/general/test_focusrings.xul => dom/tests/mochitest/general/test_focusrings.xhtml
rename : dom/tests/mochitest/general/test_innerScreen.xul => dom/tests/mochitest/general/test_innerScreen.xhtml
rename : dom/tests/mochitest/general/test_nodeAdoption_chrome_boundary.xul => dom/tests/mochitest/general/test_nodeAdoption_chrome_boundary.xhtml
rename : dom/tests/mochitest/general/test_offsets.xul => dom/tests/mochitest/general/test_offsets.xhtml
rename : dom/tests/mochitest/keyhandling/test_browser.xul => dom/tests/mochitest/keyhandling/test_browser.xhtml
rename : dom/tests/mochitest/keyhandling/test_editor.xul => dom/tests/mochitest/keyhandling/test_editor.xhtml
rename : dom/tests/mochitest/keyhandling/test_windowed.xul => dom/tests/mochitest/keyhandling/test_windowed.xhtml
rename : dom/tests/mochitest/webcomponents/test_xul_custom_element.xul => dom/tests/mochitest/webcomponents/test_xul_custom_element.xhtml
rename : dom/url/tests/test_bug883784.xul => dom/url/tests/test_bug883784.xhtml
rename : dom/url/tests/test_url.xul => dom/url/tests/test_url.xhtml
rename : dom/url/tests/test_worker_url.xul => dom/url/tests/test_worker_url.xhtml
rename : dom/workers/test/test_WorkerDebugger.initialize.xul => dom/workers/test/test_WorkerDebugger.initialize.xhtml
rename : dom/workers/test/test_WorkerDebugger.postMessage.xul => dom/workers/test/test_WorkerDebugger.postMessage.xhtml
rename : dom/workers/test/test_WorkerDebugger.xul => dom/workers/test/test_WorkerDebugger.xhtml
rename : dom/workers/test/test_WorkerDebuggerGlobalScope.createSandbox.xul => dom/workers/test/test_WorkerDebuggerGlobalScope.createSandbox.xhtml
rename : dom/workers/test/test_WorkerDebuggerGlobalScope.enterEventLoop.xul => dom/workers/test/test_WorkerDebuggerGlobalScope.enterEventLoop.xhtml
rename : dom/workers/test/test_WorkerDebuggerGlobalScope.reportError.xul => dom/workers/test/test_WorkerDebuggerGlobalScope.reportError.xhtml
rename : dom/workers/test/test_WorkerDebuggerGlobalScope.setImmediate.xul => dom/workers/test/test_WorkerDebuggerGlobalScope.setImmediate.xhtml
rename : dom/workers/test/test_WorkerDebuggerManager.xul => dom/workers/test/test_WorkerDebuggerManager.xhtml
rename : dom/workers/test/test_WorkerDebugger_console.xul => dom/workers/test/test_WorkerDebugger_console.xhtml
rename : dom/workers/test/test_WorkerDebugger_frozen.xul => dom/workers/test/test_WorkerDebugger_frozen.xhtml
rename : dom/workers/test/test_WorkerDebugger_promise.xul => dom/workers/test/test_WorkerDebugger_promise.xhtml
rename : dom/workers/test/test_WorkerDebugger_suspended.xul => dom/workers/test/test_WorkerDebugger_suspended.xhtml
rename : dom/workers/test/test_bug1062920.xul => dom/workers/test/test_bug1062920.xhtml
rename : dom/workers/test/test_chromeWorker.xul => dom/workers/test/test_chromeWorker.xhtml
rename : dom/workers/test/test_chromeWorkerJSM.xul => dom/workers/test/test_chromeWorkerJSM.xhtml
rename : dom/workers/test/test_file.xul => dom/workers/test/test_file.xhtml
rename : dom/workers/test/test_fileBlobPosting.xul => dom/workers/test/test_fileBlobPosting.xhtml
rename : dom/workers/test/test_fileBlobSubWorker.xul => dom/workers/test/test_fileBlobSubWorker.xhtml
rename : dom/workers/test/test_filePosting.xul => dom/workers/test/test_filePosting.xhtml
rename : dom/workers/test/test_fileReadSlice.xul => dom/workers/test/test_fileReadSlice.xhtml
rename : dom/workers/test/test_fileReaderSync.xul => dom/workers/test/test_fileReaderSync.xhtml
rename : dom/workers/test/test_fileReaderSyncErrors.xul => dom/workers/test/test_fileReaderSyncErrors.xhtml
rename : dom/workers/test/test_fileSlice.xul => dom/workers/test/test_fileSlice.xhtml
rename : dom/workers/test/test_fileSubWorker.xul => dom/workers/test/test_fileSubWorker.xhtml
rename : dom/workers/test/test_shutdownCheck.xul => dom/workers/test/test_shutdownCheck.xhtml
rename : dom/xml/crashtests/382636-4.xul => dom/xml/crashtests/382636-4.xhtml
rename : dom/xml/crashtests/420429.xul => dom/xml/crashtests/420429.xhtml
rename : dom/xslt/tests/XSLTMark/XSLTMark.xul => dom/xslt/tests/XSLTMark/XSLTMark.xhtml
rename : dom/xul/crashtests/253479-1.xul => dom/xul/crashtests/253479-1.xhtml
rename : dom/xul/crashtests/253479-2.xul => dom/xul/crashtests/253479-2.xhtml
rename : dom/xul/crashtests/326204-1.xul => dom/xul/crashtests/326204-1.xhtml
rename : dom/xul/crashtests/326644-1-inner.xul => dom/xul/crashtests/326644-1-inner.xhtml
rename : dom/xul/crashtests/326875-1.xul => dom/xul/crashtests/326875-1.xhtml
rename : dom/xul/crashtests/344215-1.xul => dom/xul/crashtests/344215-1.xhtml
rename : dom/xul/crashtests/363791-1.xul => dom/xul/crashtests/363791-1.xhtml
rename : dom/xul/crashtests/384877-1-inner.xul => dom/xul/crashtests/384877-1-inner.xhtml
rename : dom/xul/crashtests/386914-1-inner.xul => dom/xul/crashtests/386914-1-inner.xhtml
rename : dom/xul/crashtests/425821-1.xul => dom/xul/crashtests/425821-1.xhtml
rename : dom/xul/crashtests/428951-1.xul => dom/xul/crashtests/428951-1.xhtml
rename : dom/xul/crashtests/431906-1-inner.xul => dom/xul/crashtests/431906-1-inner.xhtml
rename : dom/xul/test/398289-resource.xul => dom/xul/test/398289-resource.xhtml
rename : dom/xul/test/test_bug1070049_throw_from_script.xul => dom/xul/test/test_bug1070049_throw_from_script.xhtml
rename : dom/xul/test/test_bug1290965.xul => dom/xul/test/test_bug1290965.xhtml
rename : dom/xul/test/test_bug199692.xul => dom/xul/test/test_bug199692.xhtml
rename : dom/xul/test/test_bug311681.xul => dom/xul/test/test_bug311681.xhtml
rename : dom/xul/test/test_bug391002.xul => dom/xul/test/test_bug391002.xhtml
rename : dom/xul/test/test_bug403868.xul => dom/xul/test/test_bug403868.xhtml
rename : dom/xul/test/test_bug418216.xul => dom/xul/test/test_bug418216.xhtml
rename : dom/xul/test/test_bug445177.xul => dom/xul/test/test_bug445177.xhtml
rename : dom/xul/test/test_bug449457.xul => dom/xul/test/test_bug449457.xhtml
rename : dom/xul/test/test_bug468176.xul => dom/xul/test/test_bug468176.xhtml
rename : dom/xul/test/test_bug583948.xul => dom/xul/test/test_bug583948.xhtml
rename : dom/xul/test/test_bug749367.xul => dom/xul/test/test_bug749367.xhtml
rename : dom/xul/test/test_bug757137.xul => dom/xul/test/test_bug757137.xhtml
rename : dom/xul/test/test_bug775972.xul => dom/xul/test/test_bug775972.xhtml
rename : dom/xul/test/test_html_template.xul => dom/xul/test/test_html_template.xhtml
rename : dom/xul/test/test_import_xul_to_content.xul => dom/xul/test/test_import_xul_to_content.xhtml
rename : dom/xul/test/window_bug583948.xul => dom/xul/test/window_bug583948.xhtml
rename : dom/xul/test/window_bug757137.xul => dom/xul/test/window_bug757137.xhtml
extra : moz-landing-system : lando
2019-11-26 00:38:44 +00:00
Masayuki Nakano 20699e2189 Bug 1597679 - part 2: Make `nsITextControlElement` inherit `nsGenericHTMLFormElementWithState` r=smaug
Sub classes of `nsITextControlElement` are only `HTMLInputElement` and
`HTMLTextAreaElement`. And both base class is
`nsGenericHTMLFormElementWithState`.  Therefore, we can make
`nsITextControlElement` inherit `nsGenericHTMLFormElementWithState` and
make `HTMLInputElement` and `HTMLTextAreaElement` inherit
`nsITextControlElement`.  Then, we can get rid of a lot of QI between
`nsINode`/`nsIContent`/`Element` and `nsITextControlElement` (and note that
some of them in a hot path).

Additionally, this patch renames `nsITextControlElement` to
`mozilla::TextControlElement`.

Differential Revision: https://phabricator.services.mozilla.com/D54330

--HG--
rename : dom/html/nsITextControlElement.h => dom/html/TextControlElement.h
extra : moz-landing-system : lando
2019-11-25 06:35:15 +00:00
danwalsh99 333e172d73 Bug 1597237 - Remove useless return; declaration, r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D54414

--HG--
extra : moz-landing-system : lando
2019-11-24 08:28:39 +00:00
Coroiu Cristina 84bf2b6d25 Backed out 3 changesets (bug 1597679) for Android debug build bustage at build/src/dom/base/nsContentAreaDragDrop.cpp
Backed out changeset 6a73b58e0db4 (bug 1597679)
Backed out changeset 90a172eff2de (bug 1597679)
Backed out changeset d4a156cf28ff (bug 1597679)

--HG--
rename : dom/html/TextControlElement.h => dom/html/nsITextControlElement.h
2019-11-24 09:02:53 +02:00
Masayuki Nakano eea1784f2d Bug 1597679 - part 2: Make `nsITextControlElement` inherit `nsGenericHTMLFormElementWithState` r=smaug
Sub classes of `nsITextControlElement` are only `HTMLInputElement` and
`HTMLTextAreaElement`. And both base class is
`nsGenericHTMLFormElementWithState`.  Therefore, we can make
`nsITextControlElement` inherit `nsGenericHTMLFormElementWithState` and
make `HTMLInputElement` and `HTMLTextAreaElement` inherit
`nsITextControlElement`.  Then, we can get rid of a lot of QI between
`nsINode`/`nsIContent`/`Element` and `nsITextControlElement` (and note that
some of them in a hot path).

Additionally, this patch renames `nsITextControlElement` to
`mozilla::TextControlElement`.

Differential Revision: https://phabricator.services.mozilla.com/D54330

--HG--
rename : dom/html/nsITextControlElement.h => dom/html/TextControlElement.h
extra : moz-landing-system : lando
2019-11-24 05:38:02 +00:00
James Teh 2807676de6 Bug 1594608: Use the focused remote browser for context menu key events. r=hsivonen
Even though context menu key events are caused by a key press, they get handled as mouse events.
Because the parent process FocusManager only knows about top level remote browsers, the event can only be targeted to a top level remote browser, even if the focus is actually in an OOP iframe.
To fix this, when dispatching cross-process events, handle context menu key events the same way we handle normal keyboard events; i.e. use the focused remote browser.

Differential Revision: https://phabricator.services.mozilla.com/D54245

--HG--
extra : moz-landing-system : lando
2019-11-22 09:37:39 +00:00
Emilio Cobos Álvarez ba2ffbed2e Bug 1597123 - Remove NODE_IS_ANONYMOUS_ROOT. r=smaug
We no longer have multiple kinds of anonymous subtrees, so we can get back one
node bit.

Differential Revision: https://phabricator.services.mozilla.com/D53344

--HG--
extra : moz-landing-system : lando
2019-11-18 08:49:27 +00:00
Emilio Cobos Álvarez e4483437bd Bug 1596768 - Remove GetBindingParent usage in EventStateManager. r=smaug
This one I'm not 100% sure about whether we want to keep special-casing shadow
DOM.

Seems we may want to, but on the other hand this looks like a hack (as it only
looks at the closest shadow host, not the whole chain, and it is green on try).

Depends on D53200

Differential Revision: https://phabricator.services.mozilla.com/D53201

--HG--
extra : moz-landing-system : lando
2019-11-15 17:36:13 +00:00
Emilio Cobos Álvarez 97a01556dc Bug 1596502 - Remove GetBindingParent in WeelHandlingHelper. r=smaug
It was dealing only with NAC anyway.

Differential Revision: https://phabricator.services.mozilla.com/D53057

--HG--
extra : moz-landing-system : lando
2019-11-15 12:32:07 +00:00
Sean Feng a2de02dc9b Bug 1589742 - Collect telemetry on the types of user clicks r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D51508

--HG--
extra : moz-landing-system : lando
2019-11-13 18:12:02 +00:00
Anne van Kesteren c9d5a9bd8a Bug 1594981 - improve BUG_COMPONENT in various moz.build files r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53024

--HG--
extra : moz-landing-system : lando
2019-11-14 15:44:32 +00:00
Emma Malysz 8a6959fd07 Bug 1594874, remove xbl.properties and instances r=zbraniecki
Differential Revision: https://phabricator.services.mozilla.com/D52281

--HG--
extra : moz-landing-system : lando
2019-11-11 19:31:08 +00:00
Olli Pettay 422cff01c2 Bug 1588311 - Update mousedown targets when native anonymous content is recreated, r=masayuki
Test click handling on input element which has a placeholder.

Differential Revision: https://phabricator.services.mozilla.com/D51877

--HG--
extra : moz-landing-system : lando
2019-11-08 19:08:27 +00:00
Emilio Cobos Álvarez 8786a2504a Bug 1593884 - Downgrade another assertion that can break with shadow dom. r=smaug
Same underlying reason as the comment before.

Also remove the XBL special case since XBL is no more.

Differential Revision: https://phabricator.services.mozilla.com/D52060

--HG--
extra : moz-landing-system : lando
2019-11-07 00:33:13 +00:00
Coroiu Cristina b023f22a92 Backed out changeset e81731a64af6 (bug 1588311) for wpt failures at uievents/click/click_events_on_input.html on a CLOSED TREE 2019-11-07 00:26:14 +02:00
Olli Pettay f2a93c97f3 Bug 1588311 - Update mousedown targets when native anonymous content is recreated, r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D51877

--HG--
extra : moz-landing-system : lando
2019-11-06 19:05:23 +00:00
Olli Pettay ad704532b0 Bug 1593299 - Disconnect EventListenerManager is DOMEventTargetHelper's Unlink, r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D51423

--HG--
extra : moz-landing-system : lando
2019-11-03 00:03:12 +00:00
Olli Pettay 574f798fb3 Bug 1586750, don't compile event handlers on unloaded windows r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D48983

--HG--
extra : moz-landing-system : lando
2019-10-28 21:08:50 +00:00
Brian Grinstead ec30cc58df Bug 1587142 - Remove most XBL tests in dom/ r=bzbarsky
The following tests are not removed and need to be ported to Shadow DOM:
- test_bug330925.xhtml
- test_bug372086.html
- test_bug319374.xhtml

Differential Revision: https://phabricator.services.mozilla.com/D50650

--HG--
extra : moz-landing-system : lando
2019-10-25 22:38:08 +00:00
Mirko Brodesser e1b9454134 Bug 1587716: change `RangeBoundaryBase`'s offset argument to `uint32_t`. r=smaug
`uint32_t`, because `nsRange::ComparePoints` requires it -- by webidl
interface -- to be unsigned long.

Moreover it makes `RangeBoundaryBase`'s interface cleaner, because it
already exposes the offset as a `uint32_t`.

Differential Revision: https://phabricator.services.mozilla.com/D50054

--HG--
extra : moz-landing-system : lando
2019-10-23 08:22:36 +00:00
Brendan Dahl 48a59e061b Bug 1583314 - Skip or port XBL tests to shadow DOM. r=bzbarsky
Where possible I ported tests to use the shadow DOM. The following could
potentially be ported, but don't think it worth of it:
  test_bug414907.xul - uses children nodes in constructor which is very
different in shadow DOM world
  test_bug233643.xul - really tests XBL behavior
  test_anonymous_content.py - bug on file already to create shadow DOM
test from scratch

Differential Revision: https://phabricator.services.mozilla.com/D49341

--HG--
rename : devtools/client/inspector/test/browser_inspector_highlighter-xbl.js => devtools/client/inspector/test/browser_inspector_highlighter-custom-element.js
extra : moz-landing-system : lando
2019-10-21 20:21:20 +00:00
Sylvestre Ledru 7c309095ea Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
Please note that it is the first reformat with clang-format 9
I only saw a fix in the .mm file

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D49056

--HG--
extra : moz-landing-system : lando
2019-10-21 14:13:44 +00:00
Andrea Marchesini 410cb724a7 Bug 1585284 - Force global in Blob CTOR, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D49629

--HG--
extra : moz-landing-system : lando
2019-10-21 05:33:19 +00:00
Andrea Marchesini 6797e45278 Bug 1585284 - Use nsIGlobalObject in any Blob/File CTOR, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D49392

--HG--
extra : moz-landing-system : lando
2019-10-21 05:33:33 +00:00
Mirko Brodesser b761e516f6 Bug 1587746: remove `RangeBoundaryBase::Set` and use constructor instead. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D48826

--HG--
extra : moz-landing-system : lando
2019-10-11 12:43:57 +00:00
Nazım Can Altınova 20fc64e558 Bug 1583271 - Part 1: Change profiler page information IDs to BrowsingContextID and InnerWindowID r=gerald,nika
We were keeping nsDocShell::mHistoryId and nsDocShell::mOSHE as keys. They
weren't quite good because:
1. While loading an iframe, they were being registered twice with the same
ids(for about:blank and the real URL) sometimes.
2. It wasn't possible to access to the parent mHistoryId and mOSHE from a child
processes if the parent is in a different process. That may not be the case for
now, but it will be after fission.
So we had to find other IDs to:
1. Determine the Tab of the frames.
2. Determine the URLs of the frames.
For the first use case, we were using nsDocShell::mHistoryId for that purpose
but that was wrong. The closest thing that we can get to a tab ID is
BrowsingContext ID because they don't change after a navigation. But iframes
have different BrowsingContext's, so we still need to create a tree to
construct a tab content. That can be either in the front-end or capture time.
For the second use case, we were using a key pair of mHistoryId and mOSHE. We
now chose to keep inner window IDs for that purpose. Inner window IDs are
unique for each navigation loads because inner window correspond to each JS
window global objects. That's why we can use that without any problem. But one
problem is that we cannot handle `history.pushState` and `history.replaceState`
changes with that change since window global objects won't change during those.
But that was the best thing we can do after fission. So this will be a small
sacrifice for us to keep that functionality working after fission.
In that patch we also remove the registration/unregistration calls. We are
going to add those calls in the next patch.

Differential Revision: https://phabricator.services.mozilla.com/D47065

--HG--
extra : moz-landing-system : lando
2019-10-09 21:25:11 +00:00
Gijs Kruitbosch f885567a48 Bug 1586220 - still treat shortcut/modifier keypresses as interaction for the purposes of GCs/timers and so on, just not for the website, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D48623

--HG--
extra : moz-landing-system : lando
2019-10-09 10:39:41 +00:00
Brendan Dahl 237d762715 Bug 1510785 - Skip all XBL related tests when XBL is disabled. r=bzbarsky
XBL will be disabled on android, so these tests must be skipped. Where possible
tests are copied to create shadow DOM tests.

Depends on D45615

Differential Revision: https://phabricator.services.mozilla.com/D45616

--HG--
rename : layout/inspector/tests/test_bug522601.xhtml => layout/inspector/tests/test_bug522601-shadow.xhtml
rename : layout/inspector/tests/test_bug609549.xhtml => layout/inspector/tests/test_bug609549-shadow.xhtml
rename : layout/reftests/bugs/334829-1a.xhtml => layout/reftests/bugs/334829-1a-shadow.xhtml
rename : layout/reftests/bugs/334829-1b.xhtml => layout/reftests/bugs/334829-1b-shadow.xhtml
rename : layout/reftests/bugs/386310-1b.html => layout/reftests/bugs/386310-1b-shadow.html
rename : layout/reftests/bugs/386310-1c.html => layout/reftests/bugs/386310-1c-shadow.html
rename : layout/reftests/bugs/386310-1d.html => layout/reftests/bugs/386310-1d-shadow.html
rename : layout/reftests/bugs/482592-1a.xhtml => layout/reftests/bugs/482592-1a-shadow.xhtml
rename : layout/reftests/bugs/482592-1b.xhtml => layout/reftests/bugs/482592-1b-shadow.xhtml
rename : layout/reftests/css-selectors/sibling-combinators-on-anon-content-1.xhtml => layout/reftests/css-selectors/sibling-combinators-on-anon-content-1-shadow.xhtml
rename : layout/reftests/css-selectors/sibling-combinators-on-anon-content-2.xhtml => layout/reftests/css-selectors/sibling-combinators-on-anon-content-2-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-appendmultiple.xhtml => layout/reftests/dom/multipleinsertionpoints-appendmultiple-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-appendsingle-1.xhtml => layout/reftests/dom/multipleinsertionpoints-appendsingle-1-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-appendsingle-2.xhtml => layout/reftests/dom/multipleinsertionpoints-appendsingle-2-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-insertmultiple.xhtml => layout/reftests/dom/multipleinsertionpoints-insertmultiple-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-insertsingle-1.xhtml => layout/reftests/dom/multipleinsertionpoints-insertsingle-1-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-insertsingle-2.xhtml => layout/reftests/dom/multipleinsertionpoints-insertsingle-2-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-ref2.xhtml => layout/reftests/dom/multipleinsertionpoints-ref2-shadow.xhtml
rename : layout/reftests/ib-split/insert-into-split-inline-5.html => layout/reftests/ib-split/insert-into-split-inline-5-shadow.html
extra : moz-landing-system : lando
2019-10-08 23:52:46 +00:00
Olli Pettay bf03e4a42e Bug 1552814, make it possible to start dnd from dragable element even if DataTransfer is empty, r=NeilDeakin
Chrome and old Edge at least seem to have this behavior, and this way the testcase on the bug doesn't trigger click anymore since
we enter dnd mode and get dragleave etc. events.

Manually tested on linux and Windows, and annyg tested on Mac

Update test_dragstart.html's draggable=true test to follow the pattern used by other tests

Differential Revision: https://phabricator.services.mozilla.com/D48208

--HG--
extra : moz-landing-system : lando
2019-10-07 21:01:57 +00:00
Bogdan Tara cfbd01b5d9 Backed out changeset c9b71d1747ea (bug 1552814) for assertion failures on nsBaseDragService.cpp CLOSED TREE
--HG--
extra : rebase_source : 4a3e9922237c8638c9b2edd45cc2309094f3d352
extra : amend_source : 1629bf05b705065193ec1ee3e17086db3efd254e
2019-10-07 19:02:02 +03:00
Olli Pettay 6ceb072e65 Bug 1552814, make it possible to start dnd from dragable element even if DataTransfer is empty, r=NeilDeakin
Chrome and old Edge at least seem to have this behavior, and this way the testcase on the bug doesn't trigger click anymore since
we enter dnd mode and get dragleave etc. events.

Manually tested on linux and Windows, and annyg tested on Mac

Differential Revision: https://phabricator.services.mozilla.com/D48208

--HG--
extra : moz-landing-system : lando
2019-10-07 09:43:18 +00:00
Olli Pettay 7770e575a0 Bug 1585606 - Make EventStateManager::GenerateDragGesture a tad more readable and rename FlushPendingEvents to hint what it actually does, r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D47889

--HG--
extra : moz-landing-system : lando
2019-10-03 11:26:39 +00:00
Dzmitry Malyshau b91906eeac Bug 1581710 - Update WebGPU IDL bindings r=jgilbert,bzbarsky
This mostly updates the bindings to the current state.
No actual logic backing them yet.

*Note*: the IDL does *not* need to be checked for matching the upstream spec precisely at this stage. The upstream is evolving, we just need to update in order to start integrating the implementation. What needs to be checked is - how C++ represents the IDL, esp with regards to derived classes, events, and hierarchies.

The trickiest points, arguably, are:
  - WebGPU -> GPU prefix change
  - the goop for interfaces that are not final

Differential Revision: https://phabricator.services.mozilla.com/D46166

--HG--
rename : dom/webgpu/InputState.cpp => dom/webgpu/DeviceLostInfo.cpp
rename : dom/webgpu/Fence.h => dom/webgpu/DeviceLostInfo.h
rename : dom/webgpu/BlendState.cpp => dom/webgpu/OutOfMemoryError.cpp
rename : dom/webgpu/LogEntry.h => dom/webgpu/OutOfMemoryError.h
rename : dom/webgpu/BindGroup.h => dom/webgpu/ProgrammablePassEncoder.cpp
rename : dom/webgpu/BlendState.cpp => dom/webgpu/RenderBundle.cpp
rename : dom/webgpu/BlendState.h => dom/webgpu/RenderBundle.h
rename : dom/webgpu/AttachmentState.cpp => dom/webgpu/ValidationError.cpp
rename : dom/webgpu/AttachmentState.h => dom/webgpu/ValidationError.h
extra : moz-landing-system : lando
2019-10-02 16:46:03 +00:00
Brindusan Cristian 8416452282 Backed out changeset 1ca9b7056c58 (bug 1581710) for mochitest failures at test_enabled.html. CLOSED TREE
--HG--
rename : dom/webgpu/ValidationError.cpp => dom/webgpu/AttachmentState.cpp
rename : dom/webgpu/ValidationError.h => dom/webgpu/AttachmentState.h
rename : dom/webgpu/RenderBundle.cpp => dom/webgpu/BlendState.cpp
rename : dom/webgpu/RenderBundle.h => dom/webgpu/BlendState.h
rename : dom/webgpu/DeviceLostInfo.cpp => dom/webgpu/InputState.cpp
rename : dom/webgpu/OutOfMemoryError.h => dom/webgpu/LogEntry.h
2019-10-02 06:04:25 +03:00
Dzmitry Malyshau 068927599a Bug 1581710 - Update WebGPU IDL bindings r=jgilbert,bzbarsky
This mostly updates the bindings to the current state.
No actual logic backing them yet.

*Note*: the IDL does *not* need to be checked for matching the upstream spec precisely at this stage. The upstream is evolving, we just need to update in order to start integrating the implementation. What needs to be checked is - how C++ represents the IDL, esp with regards to derived classes, events, and hierarchies.

The trickiest points, arguably, are:
  - WebGPU -> GPU prefix change
  - the goop for interfaces that are not final

Differential Revision: https://phabricator.services.mozilla.com/D46166

--HG--
rename : dom/webgpu/InputState.cpp => dom/webgpu/DeviceLostInfo.cpp
rename : dom/webgpu/Fence.h => dom/webgpu/DeviceLostInfo.h
rename : dom/webgpu/BlendState.cpp => dom/webgpu/OutOfMemoryError.cpp
rename : dom/webgpu/LogEntry.h => dom/webgpu/OutOfMemoryError.h
rename : dom/webgpu/BindGroup.h => dom/webgpu/ProgrammablePassEncoder.cpp
rename : dom/webgpu/BlendState.cpp => dom/webgpu/RenderBundle.cpp
rename : dom/webgpu/BlendState.h => dom/webgpu/RenderBundle.h
rename : dom/webgpu/AttachmentState.cpp => dom/webgpu/ValidationError.cpp
rename : dom/webgpu/AttachmentState.h => dom/webgpu/ValidationError.h
extra : moz-landing-system : lando
2019-10-02 01:42:07 +00:00
Neil Deakin 679a8c2d49 Bug 1581285, cancel drags in child processes when the drag gesture is stopped in the parent, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D47767

--HG--
extra : moz-landing-system : lando
2019-10-01 14:07:27 +00:00
Gabriele Svelto 10d41866a5 Bug 1585156 - Remove useless inclusions of nsIDOMWindow.h and nsIDOMWindowUtils.h r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D47678

--HG--
extra : moz-landing-system : lando
2019-09-30 22:06:47 +00:00
Gijs Kruitbosch 9d3748031f Bug 1345830 - don't treat modified / shortcut-like key presses as user input, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D47603

--HG--
extra : moz-landing-system : lando
2019-09-30 14:14:55 +00:00
Gijs Kruitbosch f61b265942 Bug 1255318 - take drop events as indication of user activity, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D47591

--HG--
extra : moz-landing-system : lando
2019-09-30 13:33:59 +00:00
Masayuki Nakano b3450ef1e7 Bug 1583766 - Consider `IMEContentObserver` to send selection change notification when its sender sends a text change notification r=m_kato
The previous change is wrong because the sender shouldn't send selection change
notification if `IMEContentObserver` does not receive text change notifications
nor selection change notifications.

This patch reverts the change in the if block of previous change and instead
sets `IMEContentObserver::mNeedsToNotifyIMEOfSelectionChange` to `true` if
the sender sends a text change notification.  (Note that even if there is
another text change with a mutation event listener, we need to send selection
change notification later so that this must be the right approach.)

Differential Revision: https://phabricator.services.mozilla.com/D47564

--HG--
extra : moz-landing-system : lando
2019-09-30 03:59:09 +00:00
Makoto Kato c4b9c2fa0e Bug 1552041 - Part 1. Set CAUSE_UNKNOWN_CHROME if caller is chrome script or native. r=masayuki
Actually, CAUSE_UNKNOWN_CHROME is set when caller is chrome process. I would
like to change that this value is called from chrome or native.

Differential Revision: https://phabricator.services.mozilla.com/D44104

--HG--
extra : moz-landing-system : lando
2019-09-23 07:22:03 +00:00
arthur.iakab b6a627c094 Merge inbound to mozilla-central. a=merge
--HG--
extra : amend_source : 39c72a7f01f9afa5abf7587d732d1e63969cc9da
2019-09-21 13:00:40 +03:00
Kris Maglione 685d91c901 Bug 1553804: Part 6 - Fix chrome mochitests which open chrome windows with content openers. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D45828

MANUAL PUSH: Cannot update reopened Phabricator revisions.

--HG--
extra : source : 86b3d469b4ff9f22e5757f83450b956a4c769785
extra : histedit_source : 2bf945343632b15eb79cf6b2ddd3ce097ddf70de%2Caec93d9f11bc1c802b63793cd5818530b64e9b4b
2019-09-20 10:18:15 -07:00
Daniel Varga f0411a344a Backed out 6 changesets (bug 1553804) for browser-chrome failure at browser/base/content/test/general/browser_fullscreen-window-open.js. On a CLOSED TREE
Backed out changeset 86b3d469b4ff (bug 1553804)
Backed out changeset 301e0d883a5f (bug 1553804)
Backed out changeset acff4a663671 (bug 1553804)
Backed out changeset 1574aecf3177 (bug 1553804)
Backed out changeset 3acf056e792e (bug 1553804)
Backed out changeset 1ed250faeb2e (bug 1553804)
2019-09-20 10:09:54 +03:00
Edgar Chen 5bc0854d2b Bug 1578355 - Part 1: Move user-activation code from EventStateManager to UserActivation; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D45168

--HG--
extra : moz-landing-system : lando
2019-09-20 20:51:25 +00:00
Masayuki Nakano 80e547ca49 Bug 1582010 - Make `IMEContentObserver` always recompute selection range after sending text change notification r=m_kato
`IMEContentObserver` sends selection change notification only when it receives
a DOM `Selection` change notification received.  However, selection range in
plaintext offset may be changed when changing previous content of caret is
changed.  In this case, currently we notify IME of only text change and
that causes IME keep caching selection offsets in previous content.  This
causes IME queries character rect out of bounds.  Therefore, even if
`IMEContentObserver` hasn't received DOM `Selection` change notification,
it should recompute selection range and if it's changed, it should notify
IME of selection change too.

Differential Revision: https://phabricator.services.mozilla.com/D46251

--HG--
extra : moz-landing-system : lando
2019-09-19 08:54:04 +00:00
Kris Maglione 136131d397 Bug 1553804: Part 6 - Fix chrome mochitests which open chrome windows with content openers. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D45828

--HG--
extra : moz-landing-system : lando
2019-09-20 04:44:02 +00:00
Daniel Varga bc19cdb06d Backed out 3 changesets (bug 1578355) for build bustage at build/src/dom/base/nsSyncLoadService.h:48:21. On a CLOSED TREE
Backed out changeset d50ad759f129 (bug 1578355)
Backed out changeset 339ab54ca471 (bug 1578355)
Backed out changeset 284299dac42c (bug 1578355)
2019-09-20 14:05:12 +03:00
Edgar Chen 5b6fe53148 Bug 1578355 - Part 1: Move user-activation code from EventStateManager to UserActivation; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D45168

--HG--
extra : moz-landing-system : lando
2019-09-20 10:31:55 +00:00
Adam Gashlin 285b3bed6a Bug 1582306 - Set tabfocus pref for test. r=masayuki
This avoids relying on the accessibility.tabfocus
pref having been set by a previous test.

Differential Revision: https://phabricator.services.mozilla.com/D46374

--HG--
extra : moz-landing-system : lando
2019-09-19 21:20:32 +00:00
Matt Woodrow b8226cf581 Bug 1546022 - Activate mouse over state for new BrowserParents. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D44413

--HG--
extra : moz-landing-system : lando
2019-09-18 02:06:32 +00:00
Oana Pop Rus 1f0c49ab12 Backed out changeset 3a49482c8210 (bug 1546022) for build bustage in nsFrameLoaderOwner.cpp on a CLOSED TREE 2019-09-18 04:22:40 +03:00
Matt Woodrow 68f7f6bf05 Bug 1546022 - Activate mouse over state for new BrowserParents. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D44413

--HG--
extra : moz-landing-system : lando
2019-09-17 14:22:40 +00:00
Lee Salzman 4b7fcf7dca Bug 1547063 - fuzz for SharedFTFace. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D44498

--HG--
extra : moz-landing-system : lando
2019-09-16 16:46:12 +00:00
Boris Zbarsky 1128b8dee8 Bug 1578173 part 6. Remove remaining uses of [Constructor] from bindings. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D45394

--HG--
extra : moz-landing-system : lando
2019-09-12 11:01:17 +00:00
Boris Zbarsky 14c30e58d6 Bug 1578173 part 4. Switch event subclasses to constructor operations. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D45391

--HG--
extra : moz-landing-system : lando
2019-09-11 14:35:28 +00:00
John Dai 3cefe1baf5 Bug 1580177 - Fix dom/events/test/test_bug1518442.html fail when Gecko merges to Beta; r=smaug,edgar
Differential Revision: https://phabricator.services.mozilla.com/D45513

--HG--
extra : moz-landing-system : lando
2019-09-11 14:23:56 +00:00
John Dai eded859488 Bug 1518442 - Part 5: Add a mochitest for pref-off form data event attribute; r=smaug,edgar
Differential Revision: https://phabricator.services.mozilla.com/D44871

--HG--
extra : moz-landing-system : lando
2019-09-09 13:53:38 +00:00
John Dai 5e255f0239 Bug 1518442 - Part 3: Add dom.formdata.event.enabled preference for Event-based form participation; r=smaug,edgar
Differential Revision: https://phabricator.services.mozilla.com/D43987

--HG--
extra : moz-landing-system : lando
2019-09-09 13:53:34 +00:00
John Dai f763311585 Bug 1518442 - Part 1: Implement FormDataEvent interface; r=smaug,edgar
Differential Revision: https://phabricator.services.mozilla.com/D43985

--HG--
extra : moz-landing-system : lando
2019-09-09 13:53:25 +00:00
Edgar Chen 2d3cc9c52b Bug 1577499 - Part 1: Implement transient activation flag; r=smaug
https://github.com/whatwg/html/pull/3851

Differential Revision: https://phabricator.services.mozilla.com/D44479

--HG--
extra : moz-landing-system : lando
2019-09-07 19:12:20 +00:00
Narcis Beleuzu 77240d9965 Backed out 5 changesets (bug 1518442) as requested by jdai. CLOSED TREE
Backed out changeset 9143aef9bd5e (bug 1518442)
Backed out changeset b1b08f66996c (bug 1518442)
Backed out changeset 1f3d36108982 (bug 1518442)
Backed out changeset 1ac7b20bb1d8 (bug 1518442)
Backed out changeset f280db1076a4 (bug 1518442)
2019-09-07 01:07:50 +03:00
John Dai 3f8a244a4d Bug 1518442 - Part 5: Add a mochitest for pref-off form data event attribute; r=smaug,edgar
Differential Revision: https://phabricator.services.mozilla.com/D44871

--HG--
extra : moz-landing-system : lando
2019-09-06 20:51:01 +00:00
John Dai a128680dbf Bug 1518442 - Part 3: Add dom.formdata.event.enabled preference for Event-based form participation; r=smaug,edgar
Differential Revision: https://phabricator.services.mozilla.com/D43987

--HG--
extra : moz-landing-system : lando
2019-09-06 20:50:52 +00:00
John Dai c01608b314 Bug 1518442 - Part 1: Implement FormDataEvent interface; r=smaug,edgar
Differential Revision: https://phabricator.services.mozilla.com/D43985

--HG--
extra : moz-landing-system : lando
2019-09-06 20:50:43 +00:00
Dave Townsend df895249c6 Bug 1550058: Move most keyboard shortcut handling out of XBL. r=masayuki
Most of our keyboard shortcut handling is handled by nsXBLWindowKeyHandler along
with nsXBLPrototypeHandler. With the impending removal of XBL this needs to
change.

This patch moves nsXBLWindowKeyHandler to dom/events/GlobalKeyListener and copies
nsXBLPrototypeHandler to dom/events/KeyEventHandler. Windows, text elements and
XUL <keyset> are changed to use the new copies and anything unnecessary for
those is stripped out.

XBL handler elements still remain using the existing nsXBLPrototypeHandler path.
Some of the code is ripped out there to make it compile. There is probably a
lot more that can be removed but since the whole of XBL is likely gone soon I'm
not sure it is worth cleaning that up much.

Differential Revision: https://phabricator.services.mozilla.com/D42336

--HG--
rename : dom/xbl/nsXBLWindowKeyHandler.cpp => dom/events/GlobalKeyListener.cpp
rename : dom/xbl/nsXBLWindowKeyHandler.h => dom/events/GlobalKeyListener.h
rename : dom/xbl/nsXBLPrototypeHandler.cpp => dom/events/KeyEventHandler.cpp
rename : dom/xbl/nsXBLPrototypeHandler.h => dom/events/KeyEventHandler.h
rename : dom/xbl/builtin/ShortcutKeyDefinitionsForBrowserCommon.h => dom/events/ShortcutKeyDefinitionsForBrowserCommon.h
rename : dom/xbl/builtin/ShortcutKeyDefinitionsForEditorCommon.h => dom/events/ShortcutKeyDefinitionsForEditorCommon.h
rename : dom/xbl/builtin/ShortcutKeyDefinitionsForInputCommon.h => dom/events/ShortcutKeyDefinitionsForInputCommon.h
rename : dom/xbl/builtin/ShortcutKeyDefinitionsForInputCommon.h => dom/events/ShortcutKeyDefinitionsForTextAreaCommon.h
rename : dom/xbl/builtin/ShortcutKeys.cpp => dom/events/ShortcutKeys.cpp
rename : dom/xbl/builtin/ShortcutKeys.h => dom/events/ShortcutKeys.h
rename : dom/xbl/builtin/android/ShortcutKeyDefinitions.cpp => dom/events/android/ShortcutKeyDefinitions.cpp
rename : dom/xbl/builtin/android/moz.build => dom/events/android/moz.build
rename : dom/xbl/builtin/emacs/ShortcutKeyDefinitions.cpp => dom/events/emacs/ShortcutKeyDefinitions.cpp
rename : dom/xbl/builtin/android/moz.build => dom/events/emacs/moz.build
rename : dom/xbl/builtin/mac/ShortcutKeyDefinitions.cpp => dom/events/mac/ShortcutKeyDefinitions.cpp
rename : dom/xbl/builtin/android/moz.build => dom/events/mac/moz.build
rename : dom/xbl/builtin/unix/ShortcutKeyDefinitions.cpp => dom/events/unix/ShortcutKeyDefinitions.cpp
rename : dom/xbl/builtin/android/moz.build => dom/events/unix/moz.build
rename : dom/xbl/builtin/win/ShortcutKeyDefinitions.cpp => dom/events/win/ShortcutKeyDefinitions.cpp
rename : dom/xbl/builtin/android/moz.build => dom/events/win/moz.build
extra : moz-landing-system : lando
2019-09-06 17:10:40 +00:00
Cosmin Sabou 54e16b14e3 Backed out 6 changesets (bug 1518442) as requested by jdai.
Backed out changeset 74c27d7d13c5 (bug 1518442)
Backed out changeset a092042068ab (bug 1518442)
Backed out changeset 1df8f544b3b7 (bug 1518442)
Backed out changeset 65f7059b0080 (bug 1518442)
Backed out changeset c8fbe42eba38 (bug 1518442)
Backed out changeset e7a459689227 (bug 1518442)

--HG--
extra : rebase_source : 938405a9643076c7aa894059bcdd8d20a8110873
2019-09-06 17:58:57 +03:00
John Dai b6ae4f1d50 Bug 1518442 - Part 5: Add a mochitest for pref-off form data event attribute; r=smaug,edgar
Differential Revision: https://phabricator.services.mozilla.com/D44871

--HG--
extra : moz-landing-system : lando
2019-09-06 09:47:40 +00:00
John Dai 1fd20a87f9 Bug 1518442 - Part 3: Add dom.formdata.event.enabled preference for Event-based form participation; r=smaug,edgar
Differential Revision: https://phabricator.services.mozilla.com/D43987

--HG--
extra : moz-landing-system : lando
2019-09-06 09:47:31 +00:00
John Dai 98aa8fdbb8 Bug 1518442 - Part 1: Implement FormDataEvent interface; r=smaug,edgar
Differential Revision: https://phabricator.services.mozilla.com/D43985

--HG--
extra : moz-landing-system : lando
2019-09-06 09:47:27 +00:00
Razvan Maries 10dbfc585c Backed out changeset e18ae5f66cac (bug 1550058) for causing Android build bustages. CLOSED TREE
--HG--
rename : dom/events/ShortcutKeyDefinitionsForBrowserCommon.h => dom/xbl/builtin/ShortcutKeyDefinitionsForBrowserCommon.h
rename : dom/events/ShortcutKeyDefinitionsForEditorCommon.h => dom/xbl/builtin/ShortcutKeyDefinitionsForEditorCommon.h
rename : dom/events/ShortcutKeyDefinitionsForTextAreaCommon.h => dom/xbl/builtin/ShortcutKeyDefinitionsForInputCommon.h
rename : dom/events/ShortcutKeys.cpp => dom/xbl/builtin/ShortcutKeys.cpp
rename : dom/events/ShortcutKeys.h => dom/xbl/builtin/ShortcutKeys.h
rename : dom/events/android/ShortcutKeyDefinitions.cpp => dom/xbl/builtin/android/ShortcutKeyDefinitions.cpp
rename : dom/events/win/moz.build => dom/xbl/builtin/android/moz.build
rename : dom/events/emacs/ShortcutKeyDefinitions.cpp => dom/xbl/builtin/emacs/ShortcutKeyDefinitions.cpp
rename : dom/events/mac/ShortcutKeyDefinitions.cpp => dom/xbl/builtin/mac/ShortcutKeyDefinitions.cpp
rename : dom/events/unix/ShortcutKeyDefinitions.cpp => dom/xbl/builtin/unix/ShortcutKeyDefinitions.cpp
rename : dom/events/win/ShortcutKeyDefinitions.cpp => dom/xbl/builtin/win/ShortcutKeyDefinitions.cpp
rename : dom/events/GlobalKeyListener.cpp => dom/xbl/nsXBLWindowKeyHandler.cpp
rename : dom/events/GlobalKeyListener.h => dom/xbl/nsXBLWindowKeyHandler.h
2019-09-05 20:31:59 +03:00
Dave Townsend 3a36964e63 Bug 1550058: Move most keyboard shortcut handling out of XBL. r=masayuki
Most of our keyboard shortcut handling is handled by nsXBLWindowKeyHandler along
with nsXBLPrototypeHandler. With the impending removal of XBL this needs to
change.

This patch moves nsXBLWindowKeyHandler to dom/events/GlobalKeyListener and copies
nsXBLPrototypeHandler to dom/events/KeyEventHandler. Windows, text elements and
XUL <keyset> are changed to use the new copies and anything unnecessary for
those is stripped out.

XBL handler elements still remain using the existing nsXBLPrototypeHandler path.
Some of the code is ripped out there to make it compile. There is probably a
lot more that can be removed but since the whole of XBL is likely gone soon I'm
not sure it is worth cleaning that up much.

Differential Revision: https://phabricator.services.mozilla.com/D42336

--HG--
rename : dom/xbl/nsXBLWindowKeyHandler.cpp => dom/events/GlobalKeyListener.cpp
rename : dom/xbl/nsXBLWindowKeyHandler.h => dom/events/GlobalKeyListener.h
rename : dom/xbl/nsXBLPrototypeHandler.cpp => dom/events/KeyEventHandler.cpp
rename : dom/xbl/nsXBLPrototypeHandler.h => dom/events/KeyEventHandler.h
rename : dom/xbl/builtin/ShortcutKeyDefinitionsForBrowserCommon.h => dom/events/ShortcutKeyDefinitionsForBrowserCommon.h
rename : dom/xbl/builtin/ShortcutKeyDefinitionsForEditorCommon.h => dom/events/ShortcutKeyDefinitionsForEditorCommon.h
rename : dom/xbl/builtin/ShortcutKeyDefinitionsForInputCommon.h => dom/events/ShortcutKeyDefinitionsForInputCommon.h
rename : dom/xbl/builtin/ShortcutKeyDefinitionsForInputCommon.h => dom/events/ShortcutKeyDefinitionsForTextAreaCommon.h
rename : dom/xbl/builtin/ShortcutKeys.cpp => dom/events/ShortcutKeys.cpp
rename : dom/xbl/builtin/ShortcutKeys.h => dom/events/ShortcutKeys.h
rename : dom/xbl/builtin/android/ShortcutKeyDefinitions.cpp => dom/events/android/ShortcutKeyDefinitions.cpp
rename : dom/xbl/builtin/android/moz.build => dom/events/android/moz.build
rename : dom/xbl/builtin/emacs/ShortcutKeyDefinitions.cpp => dom/events/emacs/ShortcutKeyDefinitions.cpp
rename : dom/xbl/builtin/android/moz.build => dom/events/emacs/moz.build
rename : dom/xbl/builtin/mac/ShortcutKeyDefinitions.cpp => dom/events/mac/ShortcutKeyDefinitions.cpp
rename : dom/xbl/builtin/android/moz.build => dom/events/mac/moz.build
rename : dom/xbl/builtin/unix/ShortcutKeyDefinitions.cpp => dom/events/unix/ShortcutKeyDefinitions.cpp
rename : dom/xbl/builtin/android/moz.build => dom/events/unix/moz.build
rename : dom/xbl/builtin/win/ShortcutKeyDefinitions.cpp => dom/events/win/ShortcutKeyDefinitions.cpp
rename : dom/xbl/builtin/android/moz.build => dom/events/win/moz.build
extra : moz-landing-system : lando
2019-09-05 16:51:27 +00:00
Emilio Cobos Álvarez 7df79853f9 Bug 1578700 - Change use counter setup to propagate the page use counters together. r=smaug
This is so that SetUseCounter is as cheap as possible.

This is in preparation for hooking the CSS use counters to telemetry. We want
CSS use counters to be fast and be propagated at once to the parent page. This
will make sure to use the same setup as everywhere else.

Differential Revision: https://phabricator.services.mozilla.com/D44645

--HG--
extra : moz-landing-system : lando
2019-09-04 23:36:21 +00:00
Gerald Squelart 95f77c2409 Bug 1576819 - Use PROFILER_ADD_MARKER{,_WITH_PAYLOAD} everywhere - r=gregtatum
All calls to `profiler_add_marker()` (outside of the profilers code) are
now replaced by either:
- `PROFILER_ADD_MARKER(name, categoryPair)`
- `PROFILER_ADD_MARKER_WITH_PAYLOAD(name, categoryPair, TypeOfMarkerPayload,
                                    (payload, ..., arguments))`

This makes all calls consistent, and they won't need to prefix the category pair
with `JS::ProfilingCategoryPair::`.

Also it will make it easier to add (and later remove) internal-profiling
instrumentation (bug 1576550), and to replace heap-allocated payloads with
stack-allocated ones (bug 1576555).

Differential Revision: https://phabricator.services.mozilla.com/D43588

--HG--
extra : moz-landing-system : lando
2019-09-04 07:56:51 +00:00
Mark Banner 709c7ccf0c Bug 1577746 - Automatically enable more ESLint rules for dom/. r=baku
This enables:
- mozilla/no-useless-parameters
- mozilla/no-useless-run-test
- no-extra-boolean-cast
- no-unneeded-ternary

Depends on D44150

Differential Revision: https://phabricator.services.mozilla.com/D44151

--HG--
extra : moz-landing-system : lando
2019-09-02 11:23:26 +00:00
Mark Banner acd70816c6 Bug 1577746 - Enable ESLint rule dot-notation for dom/. r=baku
Depends on D44149

Differential Revision: https://phabricator.services.mozilla.com/D44150

--HG--
extra : moz-landing-system : lando
2019-09-02 11:23:05 +00:00
Mark Banner 351d147e2f Bug 1577746 - Enable ESLint rule object-shorthand for dom/. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D44149

--HG--
extra : moz-landing-system : lando
2019-09-02 11:22:27 +00:00
Makoto Kato 6aaa810233 Bug 1577685 - Move some utility functions from IMEStateManager to widget. r=masayuki
I would like to log `IMEState` and `InputContextAction`in widget. But this
utilities are in `IMEStateManager`, so I would like to move it to widget
by using `mozilla/ToString.h`.

Differential Revision: https://phabricator.services.mozilla.com/D44103

--HG--
extra : moz-landing-system : lando
2019-08-30 05:56:58 +00:00
Andrew Creskey 7134be5031 Bug 1575938 Convert dom/JSEnvironment GC timing constants to StaticPref r=edgar
Converted the following to StaticPrefs so that we can easily test variations:

NS_GC_DELAY
NS_SHRINK_GC_BUFFERS_DELAY
NS_FIRST_GC_DELAY
NS_FULL_GC_DELAY
NS_INTERSLICE_GC_DELAY

NS_USER_INTERACTION_INTERVAL

Differential Revision: https://phabricator.services.mozilla.com/D43112

--HG--
extra : moz-landing-system : lando
2019-08-26 15:51:01 +00:00
alwu 4f544e7be2 Bug 1572939 - part1 : allow user inputs on editable content to activate document. r=masayuki
As Chrome and Safari didn't block autoplay when haiving user input on editable content, it causes a compatible issue on Firefox because we only allow user inputs happening on non-editable content to activate document.

It seems that we don't really need to restrict that user inputs, which can activate document, should only occur on non-editable content.
Even if they occur on non-editable content, it might still have a chance to annoy user, it's totally depending on websites' design.

Differential Revision: https://phabricator.services.mozilla.com/D43532

--HG--
extra : moz-landing-system : lando
2019-08-27 04:45:05 +00:00
Logan Smyth 66e57fe122 Bug 1562708 - Allow disabling of the mutation event warning for system-group event listeners. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D43147

--HG--
extra : moz-landing-system : lando
2019-08-23 14:35:05 +00:00
Sylvestre Ledru 7759b614e2 Bug 1575249 - Ride along: remove +x permissions on source files r=Ehsan
Depends on D42672

Differential Revision: https://phabricator.services.mozilla.com/D42673

--HG--
extra : moz-landing-system : lando
2019-08-21 09:57:03 +00:00
Sebastian Streich db893cf0d7 Bug 1561056 - Pass CSP on Link-drop r=ckerschb,Gijs,farre
***
Fix linux build

Differential Revision: https://phabricator.services.mozilla.com/D37563

--HG--
extra : moz-landing-system : lando
2019-08-20 12:43:02 +00:00
Masayuki Nakano cf0604278c Bug 1564639 - Make `BrowserParent` use `nsPresContext::GetRootWidget()` when handling IME related messages r=hsivonen
When contents notify IME or requests something to IME, they need to use
an `nsIWidget` instance which may have focus if active, and handles
native keyboard/IME events since that knows correct native IME context.

Currently, such widget exactly matches with the result of
`nsPresContext::GetRootWidget()`.  However, this is unclear for most developers.
Therefore, this patch creates a wrapper method of it named
`nsPresContext::GetTextInputHandlingWidget()`.  Then, also adds
`BrowserParent::GetTextInputHandlingWidget()` wraps it.  Finally, makes
`IMEStateManager` call `GetTextInputHandlingWidget()` of them.

Differential Revision: https://phabricator.services.mozilla.com/D42301

--HG--
extra : moz-landing-system : lando
2019-08-19 08:27:32 +00:00
Olli Pettay 26c09ef05a Bug 1574223, make touchstart/move passive by default also when using event handlers, not only event listeners, r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D42235

--HG--
extra : moz-landing-system : lando
2019-08-16 15:18:46 +00:00
Daniel Varga 95ce40b8d4 Backed out changeset a7ac9f64f6ea (bug 1561056) for build bustage at widget/gtk/nsDragService. On a CLOSED TREE 2019-08-16 09:30:39 +03:00
Sebastian Streich c051155f99 Bug 1561056 - Pass CSP on Link-drop r=ckerschb,Gijs,farre
Differential Revision: https://phabricator.services.mozilla.com/D37563

--HG--
extra : moz-landing-system : lando
2019-08-15 18:44:00 +00:00
Brindusan Cristian 3a61fb322f Merge inbound to mozilla-central. a=merge 2019-08-15 12:45:55 +03:00
Kristen Wright 7978cc1098 Bug 1573968 - Remove WheelTransaction::Prefs. r=njn
All of these prefs are already static prefs, so this removes the varcache pref definitions from WheelTransaction and replaces them with the existing static prefs.

Differential Revision: https://phabricator.services.mozilla.com/D42040

--HG--
extra : moz-landing-system : lando
2019-08-14 22:18:59 +00:00
Kristen Wright 49185e9481 Bug 1573268 - Convert zoom.maxPercent and zoom.minPercent to static prefs. r=njn
Converts zoom.maxPercent and zoom.minPercent to static prefs, which creates a new "zoom" category on StaticPrefList.yaml.

Differential Revision: https://phabricator.services.mozilla.com/D41835

--HG--
extra : moz-landing-system : lando
2019-08-14 18:29:55 +00:00
Brendan Dahl b474db77c6 Bug 1551344 - Part 1: Remove XULDocument code. r=smaug,Jamie
All .xul files have been loading as HTMLDocuments for a few weeks now, so
it should be safe to remove the XULDocument implementation.

Differential Revision: https://phabricator.services.mozilla.com/D41238

--HG--
extra : moz-landing-system : lando
2019-08-09 19:57:50 +00:00
Masayuki Nakano f3fb0d1af8 Bug 1569613 - Add surrogate pair handling API to `nsTextFragment` r=hsivonen
We check surrogate pair at specific index in `nsTextFragement` in a lot of
places.  This requires boundary check of the index so that it can cause
security issue and crash reason with simple mistake, and also it steals
your time to understand the code what it does especially when it's a
part of an `if` condition.

Therefore, this patch adds new API to `nsTextFragment` and makes the all
surrogate pair handlers of `nsTextFragument` use new API.

Differential Revision: https://phabricator.services.mozilla.com/D39689

--HG--
extra : moz-landing-system : lando
2019-08-06 05:43:21 +00:00
Nicholas Nethercote af1a8f2d27 Bug 1570212 - Convert dom.events.dataTransfer.protected.enabled to a static pref. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D40157

--HG--
extra : moz-landing-system : lando
2019-08-02 11:59:05 +00:00
Masayuki Nakano 905c456380 Bug 1569902 - part 5: Make `IMEContentObserver` stop observing attribute change r=smaug
`IMEContentObserver` treats `<br>` elements as linefeed, but ignores padding
`<br>` elements.  Padding `<br>` element for last empty line was inserted as
normal `<br>` element and then, its attribute was set by editor.  Therefore,
`IMEContentObserver` needed to observe attribute changes.  However, editor
stops using attribute to mark as padding and stops inserting as normal `<br>`
element first (i.e., inserting `<br>` after setting its flag).  Therefore,
`IMEContentObserver` does not need to observe attribute changes anymore.

Differential Revision: https://phabricator.services.mozilla.com/D39861

--HG--
extra : moz-landing-system : lando
2019-08-02 05:47:09 +00:00
Masayuki Nakano 23a22c597a Bug 1569902 - part 2: Stop using attribute to consider whether a `<br>` element is a special node for empty last line or not r=m_kato,smaug
Editor creates a `<br>` element to end of a block if last line
of the block is empty because caret should be placed as there is an empty
line.  Such special `<br>` element has `type` attribute whose value is "_moz".
However, adding/removing the attribute is expensive and such hacky attribute
shouldn't be referred nor changed by web apps.

Therefore, this patch makes `HTMLBRElement` take another specific flag whether
it's a special node for empty last line.  For making the meaning clearer,
this patch calls the such `<br>` elements as "padding `<br>` element for
empty last line" insead of "moz-br".  So, this patch also includes a lot of
renaming methods and variables, and modifying related comments.

Note that with this change, `IMEContentObserver` counts the padding `<br>`
element in `<textarea>` because it's inserted before setting the new flag
and setting the flag does not cause DOM tree mutation.  This issue will be
fixed by the following patches.

Differential Revision: https://phabricator.services.mozilla.com/D39858

--HG--
extra : moz-landing-system : lando
2019-08-02 05:45:18 +00:00
Masayuki Nakano 765e91b497 Bug 1569902 - part 1: Stop using attribute to consider whether a `<br>` element is an editor bogus node or not r=m_kato,smaug
Editor creates a `<br>` element when it's root element is empty.
Then, it's stored by `TextEditRules::mBogusNode` and used for checking
whether the editor is empty quickly.  However, this `<br>` element has
`mozeditorbogusnode` attribute whose value is `true`.  However, adding or
removing the attribute is not cheap and web apps can refer such illegal
attribute.

Therefore, this patch makes `HTMLBRElement` take a specific flag whether
it's a bogus node or not.  However, this means that this hacky thing will be
exposed outside editor module.  For making what is the bogus node clearer,
this patch calls the such `<br>` elements as "padding `<br>` element for
empty editor".  So, this patch also includes a lot of renaming methods and
variables, and modifying related comments.

Differential Revision: https://phabricator.services.mozilla.com/D39857

--HG--
extra : moz-landing-system : lando
2019-08-02 05:44:40 +00:00
longsonr 2f71a4d42d Bug 1569474 - dispatch cut, copy and paste events to SVG graphics elements r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D39629

--HG--
extra : moz-landing-system : lando
2019-07-30 22:45:54 +00:00
Emilio Cobos Álvarez 864a54dff0 Bug 1570182 - Fix cursor prefixed aliases to do the right thing. r=boris
This was an oversight in bug 1520154. We kept the -moz- version in the specified
value but not the computed value.

That's a very peculiar way of making aliases work. This makes them work
consistently as many other aliases instead.

Also, add an assert that would've caught this much much earlier.

Differential Revision: https://phabricator.services.mozilla.com/D40063

--HG--
extra : moz-landing-system : lando
2019-07-31 18:18:21 +00:00
Nicholas Nethercote cd426e3ad2 Bug 1569526 - Remove return values from `Add*VarCache()`. r=KrisWright
They're infallible in practice and always `NS_OK`. (This stems from
`AddVarCacheNoAssignment()` always returning `NS_OK`.)

As a result, the commit removes lots of unnecessary checks.

Differential Revision: https://phabricator.services.mozilla.com/D39804

--HG--
extra : moz-landing-system : lando
2019-07-30 06:19:46 +00:00
Masayuki Nakano 277978e418 Bug 1560032 - part 3: Make `EventStateManager` allow to drag password if copying selected password is allowed r=smaug
If copying selected password is allowed by `TextEditor`, we should allow to
drag it too because web apps usually request to input new password twice,
but if users used password generator, they may want to use drag and drop the
new password rather than copy and paste.

Differential Revision: https://phabricator.services.mozilla.com/D39279

--HG--
extra : moz-landing-system : lando
2019-07-29 06:21:59 +00:00
Masayuki Nakano fafe168f04 Bug 1560032 - part 2: Make cut/copy in password field available r=m_kato,smaug
First, we need to make `nsCopySupport::FireClipboardEvent()` keep handling
`eCopy` and `eCut` event even in password field, only if `TextEditor` allows
them.

Then, we need to make `nsPlainTextSerializer::AppendText()` not expose
masked password for making users safer.  Although `TextEditor` does not allow
`eCopy` nor `eCut` when selection is not in unmasked range.  Fortunately,
retrieving masked and unmasked password from `nsTextFragment` has already
been implemented in `ContentEventHandler.cpp`.  This patch moves it into
`EditorUtils` and makes `ContentEventHandler.cpp` and `nsPlaintextSerializer`
share it.

Differential Revision: https://phabricator.services.mozilla.com/D39000

--HG--
extra : moz-landing-system : lando
2019-07-29 06:21:42 +00:00
Bogdan Tara 3736b292dc Merge inbound to mozilla-central. a=merge 2019-07-27 00:38:36 +03:00
Kannan Vijayan 3fb6190ec6 Bug 1559414 - Rename unaudited pre-fission methods with SameProcess for future audit burndown. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D39378

--HG--
extra : moz-landing-system : lando
2019-07-26 16:48:31 +00:00
Kris Maglione 87884612c0 Bug 1568035: Part 4 - Update test expections for Fission. r=mccr8
Some failures crept in and out after my last sets of annotations landed. This
patch updates most of the annotations to deal with them.

MANUAL PUSH: Lando won't let me land.

Differential Revision: https://phabricator.services.mozilla.com/D39462

--HG--
extra : rebase_source : 4cfccf95c5bb2521533a9f5c4c25d67f414fb6f5
extra : histedit_source : c19187a3b3002e0eebdd809738b57641e1e432cd
2019-07-24 13:06:57 -07:00
Nicholas Nethercote 18fae65f38 Bug 1563139 - Remove StaticPrefs.h. r=glandium
This requires replacing inclusions of it with inclusions of more specific prefs
files.

The exception is that StaticPrefsAll.h, which is equivalent to StaticPrefs.h,
and is used in `Codegen.py` because doing something smarter is tricky and
suitable for a follow-up. As a result, any change to StaticPrefList.yaml will
still trigger recompilation of all the generated DOM bindings files, but that's
still a big improvement over trigger recompilation of every file that uses
static prefs.

Most of the changes in this commit are very boring. The only changes that are
not boring are modules/libpref/*, Codegen.py, and ServoBindings.toml.

Differential Revision: https://phabricator.services.mozilla.com/D39138

--HG--
extra : moz-landing-system : lando
2019-07-26 01:10:23 +00:00
Emilio Cobos Álvarez eb7d8bffd8 Bug 1567237 - Only use scroll range to select scrollable frames to scroll to, don't use scrollbar visibility. r=tnikkel
This is what other browsers do, and it does make sense to me, it's useless to
try to scroll a frame with no scroll range in a given direction.

I think all callers of this function should be treated like this, so this is
more like a RFC / feedback request than a patch per se.

The wheel handling code already checks scroll range, so there's no difference of
behavior in that case, if I'm reading the code right.

There are a few other functions that check the result of
GetPerceivedScrollingDirections(), but I think if we change this we should
change this consistently.

I also think that if we do this we should rename the method to something like
GetAvailableScrollingDirections() or such.

Anyhow, wdyt? I should also add a test for this if we go with this.

Differential Revision: https://phabricator.services.mozilla.com/D38991

--HG--
extra : moz-landing-system : lando
2019-07-24 22:33:57 +00:00
Coroiu Cristina 50837746c0 Backed out changeset 2fe42a3dda2c (bug 1567237) for causing leaks on a CLOSED TREE 2019-07-24 20:52:07 +03:00
Emilio Cobos Álvarez 06d6ff95a8 Bug 1567237 - Only use scroll range to select scrollable frames to scroll to, don't use scrollbar visibility. r=tnikkel
This is what other browsers do, and it does make sense to me, it's useless to
try to scroll a frame with no scroll range in a given direction.

I think all callers of this function should be treated like this, so this is
more like a RFC / feedback request than a patch per se.

The wheel handling code already checks scroll range, so there's no difference of
behavior in that case, if I'm reading the code right.

There are a few other functions that check the result of
GetPerceivedScrollingDirections(), but I think if we change this we should
change this consistently.

I also think that if we do this we should rename the method to something like
GetAvailableScrollingDirections() or such.

Anyhow, wdyt? I should also add a test for this if we go with this.

Differential Revision: https://phabricator.services.mozilla.com/D38991

--HG--
extra : moz-landing-system : lando
2019-07-24 13:17:11 +00:00
Emilio Cobos Álvarez 5ffd857a02 Bug 1551621 - Downgrade an assertion for now so as to not block people. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D39155

--HG--
extra : moz-landing-system : lando
2019-07-24 13:18:21 +00:00
Narcis Beleuzu 2c7f6ec7b6 Backed out 3 changesets (bug 1567237) for ESlint and mochitest failures on test_scroll_space_no_range_overflow_scroll.html . CLOSED TREE
Backed out changeset 72699e27e033 (bug 1567237)
Backed out changeset 90048e3d6eb3 (bug 1567237)
Backed out changeset 5d602a56edc7 (bug 1567237)
2019-07-24 05:49:52 +03:00
Emilio Cobos Álvarez eb563e1090 Bug 1567237 - Only use scroll range to select scrollable frames to scroll to, don't use scrollbar visibility. r=tnikkel
This is what other browsers do, and it does make sense to me, it's useless to
try to scroll a frame with no scroll range in a given direction.

I think all callers of this function should be treated like this, so this is
more like a RFC / feedback request than a patch per se.

The wheel handling code already checks scroll range, so there's no difference of
behavior in that case, if I'm reading the code right.

There are a few other functions that check the result of
GetPerceivedScrollingDirections(), but I think if we change this we should
change this consistently.

I also think that if we do this we should rename the method to something like
GetAvailableScrollingDirections() or such.

Anyhow, wdyt? I should also add a test for this if we go with this.

Differential Revision: https://phabricator.services.mozilla.com/D38991

--HG--
extra : moz-landing-system : lando
2019-07-23 22:04:31 +00:00
Boris Zbarsky 0f70d08ec8 Bug 1566595. Stop using [array] in nsIBinaryOutputStream. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D38387

--HG--
extra : moz-landing-system : lando
2019-07-22 20:27:39 +00:00
Ciure Andrei 98278afa46 Backed out changeset a858e4411532 (bug 1566595) for causing Windows MinGW builds bustages CLOSED TREE 2019-07-22 21:39:08 +03:00
Boris Zbarsky 9c74919340 Bug 1566595. Stop using [array] in nsIBinaryOutputStream. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D38387

--HG--
extra : moz-landing-system : lando
2019-07-22 14:52:04 +00:00
Masayuki Nakano 15fcb38af8 Bug 1548389 - part 10: Make `TextEditor::SetUnmaskRangeInternal()` expand the range if specified offset is middle of a surrogate pair r=m_kato
Unmasking is an optional style of showing password.  Therefore, if callers of
`nsIEditor::Unmask()` specify middle of surrogate pair(s), it may mean that
they want to expand the unmask range from shorter range which does not include
the high and/or low surrogate.  Therefore, one of the surrogates is in unmasked
range, we unmask the surrogate pair.  However, we handle this in a lot of
places, i..e., we have duplicated code.  This can get rid of these duplicates
with making `nsIEditor::Unmask()` expand the range automatically.

Differential Revision: https://phabricator.services.mozilla.com/D38432

--HG--
extra : moz-landing-system : lando
2019-07-22 03:56:33 +00:00
Masayuki Nakano 1e6858f9fe Bug 1548389 - part 9: Make ContentEventHandler return masked text r=m_kato
In some cases, other tools may show selected content in their UI.  E.g.,
character palette of macOS.  Therefore, we shouldn't allow them to show
masked password.

Differential Revision: https://phabricator.services.mozilla.com/D38430

--HG--
extra : moz-landing-system : lando
2019-07-22 03:56:15 +00:00
Masayuki Nakano 0f0e091c25 Bug 1548389 - part 7: Drop supporting dragging text from `<input type="password">` r=smaug
Now, the anonymous text node has raw value of password so that we shouldn't
allow users to drag the text since another user may have typed the password
and left from the device.

Note that we've supported the operation, however, it does not make sense
since the dragging data is masked text.

Additionally, Chrome also doesn't support dragging text in password fields.
So, we have no reason to support dragging raw value from password fields.

Differential Revision: https://phabricator.services.mozilla.com/D38012

--HG--
extra : moz-landing-system : lando
2019-07-22 03:55:30 +00:00
Olli Pettay 7c88ba1685 Bug 1539497, navigator.maxTouchPoints returns 0 in child process, r=ehsan
Differential Revision: https://phabricator.services.mozilla.com/D38583

--HG--
extra : amend_source : 52f1fdbf79f18a6c3ff52eab0a45b397cee76baf
2019-07-19 01:45:16 +03:00
Kris Maglione 0962c2b731 Bug 1566182: Annotate mochitests that fail with Fission enabled. r=mccr8
My preference was to annotate most of the failing tests with `fail-if` so that
if they start passing, the `fail-if` needs to be removed and they need to keep
passing. That doesn't work for tests that timeout, or which trigger failures
from their cleanup functions, however, so those tests need skip-if. And tests
with fail in their cleanup functions likely leave the browser in an
inconsistent state for subsequent tests, anyway, so really should be skipped
regardless.

There are some remaining tests which still fail because of crashes. I chose
not to skip them here, but to fix the crashes in separate bugs instead.

Differential Revision: https://phabricator.services.mozilla.com/D38247

--HG--
extra : rebase_source : 39ba8fec2e882cfe577c5f2b58ab7e4b461f1178
2019-07-15 16:19:32 -07:00
Mirko Brodesser 2f40f072ab Bug 1565584: move `nsIContentUtils::ContentIsDescendantOf` to `nsINode::IsInclusiveDescendantOf`. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D37880
2019-07-15 10:02:21 +02:00
Dorel Luca a36e8cbbab Backed out changeset ab9d5eeaa90e (bug 1370630) on dev's request
--HG--
extra : rebase_source : f583c253821b50a25ae0f023bcc8312b526ea8da
2019-07-09 21:44:43 +03:00
Boris Zbarsky 3910c9fe0a Bug 1561887 part 2. Fix cycle-collection skipping of JSEventHandler to work correctly. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D36870

--HG--
extra : moz-landing-system : lando
2019-07-09 17:04:59 +00:00
Victor Porof 64a157bec4 Bug 1561435 - Fix test failures for dom/, r=standard8
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35953

--HG--
extra : source : 601fd342df276db814d904aecf943dcd2f14290c
extra : intermediate-source : 9ea5cf04581fe4dbf353443a98e6a970f0fdee41
2019-06-24 04:55:14 +02:00
Victor Porof 0a8ff0ad85 Bug 1561435 - Format dom/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35951

--HG--
extra : source : 62f3501af4bc1c0bd1ee1977a28aee04706a6663
2019-07-05 10:44:55 +02:00
Razvan Maries daed363fd7 Merge mozilla-inbound to mozilla-central a=merge 2019-07-05 00:40:17 +03:00
Csoregi Natalia 0c754625a9 Merge mozilla-central to mozilla-inbound. CLOSED TREE 2019-07-04 12:54:22 +03:00
Oana Pop Rus 2ad74ef9f7 Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-07-04 06:38:21 +03:00
Olli Pettay d957d5d294 Bug 1178763, move UIEvent.pageX/pageY to MouseEvent, r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D36781

--HG--
extra : moz-landing-system : lando
2019-07-04 01:50:22 +00:00
Andreea Pavel 6d20f2b618 Bug 1527055 - disabled test_bug574663.html on win r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D36434

--HG--
extra : moz-landing-system : lando
2019-07-03 16:01:03 +00:00
Makoto Kato 8b306f551d Bug 1556103 - Part 1. Add long press action when setting focus. r=masayuki
Actually, long tap can set focus.  But since it uses `nsIFocusManager::FLAG_BYMOUSE` flag, we cannot recognize whether setting focus is by long tap or not.

So I would like to add new flag `FLAG_BYLONGPRESS` and `CAUSE_LONGPRESS` that are by long tap.

Differential Revision: https://phabricator.services.mozilla.com/D35991

--HG--
extra : moz-landing-system : lando
2019-06-28 00:39:45 +00:00
Kris Maglione f70e67ad2d Bug 1541557: Part 4 - Stop relying on synchronous preference getters/setters. r=nika
The SpecialPowers set*Pref/get*Pref APIs currently use synchronous messaging
to set and get preference values from the parent process. Aside from directly
affecting callers of those APIs, it also affects callers of `pushPrefEnv`,
which is meant to be asynchronous, but is in practice usually synchronous due
to the synchronous messaging it uses.

This patch updates the getPref APIs to use the in-process preference service
(which most callers are expecting anyway), and also updates the callers of
the setPref and pushPrefEnv APIs to await the result if they're relying on it
taking effect immediately.

Unfortunately, there are some corner cases in tests that appear to only work
because of the quirks of the current sync messaging approach. The synchronous
setPref APIs, for instance, trigger preference changes in the parent
instantly, but don't update the values in the child until we've returned to
the event loop and had a chance to process the notifications from the parent.
The differnce in timing leads some tests to fail in strange ways, which this
patch works around by just adding timeouts.

There should be follow-ups for test owners to fix the flakiness.

Differential Revision: https://phabricator.services.mozilla.com/D35054

--HG--
extra : rebase_source : 941298157e7c82f420cf50ce057154ce9b85301c
extra : source : 189dc8a359815e059a4a217f788d183260bb2bfe
2019-06-13 09:34:39 -07:00
Masayuki Nakano da61ea3112 Bug 1444847 - part 3: Create `RangeUtils` to place public static methods of `nsRange` r=smaug
Some `nsRange` static methods are useful in `StaticRange` and some of them
are used in a lot of places but not related to `nsRange` directly.  This
patch moves them into new static method only class, `mozilla::RangeUtils`.

Differential Revision: https://phabricator.services.mozilla.com/D35142

--HG--
extra : moz-landing-system : lando
2019-06-28 07:48:07 +00:00
Masayuki Nakano 2a450c5196 Bug 1444847 - part 2: Sort out basic API of `nsRange` for consistency with coming `StaticRange` r=smaug
For avoiding confusion between API of `nsRange` and `StaticRange`, I'd like to
rename `nsRange::CreateRange()` to `nsRange::Create()` because
`StaticRange::CreateStaticRange()` is too long name and
`StaticRange::CreateRange()` sounds odd.  This patch renames it and changes
related methods to template methods to avoid runtime cost of temporary
`RawRangeBoundary` instance creation.

Differential Revision: https://phabricator.services.mozilla.com/D35141

--HG--
extra : moz-landing-system : lando
2019-06-28 07:47:29 +00:00
Henri Sivonen 77a9d691d8 Bug 1549930 addendum - Notify widgets of IME blur on quit (on non-Android). r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D34992

--HG--
extra : moz-landing-system : lando
2019-06-17 04:51:29 +00:00
Logan Smyth a1de03c27b Bug 1529345 - Part 2: Add Gecko infrastructure for receiving notifications about debugger-related events. r=jimb,smaug
Differential Revision: https://phabricator.services.mozilla.com/D30565

--HG--
extra : moz-landing-system : lando
2019-06-17 04:36:29 +00:00
Dorel Luca e12ad70ab7 Backed out 2 changesets (bug 1529345) for Windows 2012 build bustages
Backed out changeset 87aa4894b4a1 (bug 1529345)
Backed out changeset cf6f6281cb44 (bug 1529345)

--HG--
extra : rebase_source : b19274a3d20d3a1ea92f0fe1224ef30910e10916
2019-06-14 23:34:36 +03:00
Logan Smyth 77f27aa54c Bug 1529345 - Part 2: Add Gecko infrastructure for receiving notifications about debugger-related events. r=jimb,smaug
Differential Revision: https://phabricator.services.mozilla.com/D30565

--HG--
extra : moz-landing-system : lando
2019-06-14 18:25:47 +00:00
Mark Banner 201255ab84 Bug 1558485 - Turn on ESLint for all of dom/ disabling most of the failing rules. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D34761

--HG--
extra : moz-landing-system : lando
2019-06-13 20:21:46 +00:00
Dorel Luca 6b40527932 Backed out 2 changesets (bug 1529345) for Build Bustage. CLOSED TREE
Backed out changeset 63f80a49839e (bug 1529345)
Backed out changeset 15bac42cc73a (bug 1529345)
2019-06-14 20:55:52 +03:00
Logan Smyth c09e533d0e Bug 1529345 - Part 2: Add Gecko infrastructure for receiving notifications about debugger-related events. r=jimb,smaug
Differential Revision: https://phabricator.services.mozilla.com/D30565

--HG--
extra : moz-landing-system : lando
2019-06-14 17:14:13 +00:00
Peter Van der Beken 8b00dd9ff2 Bug 1490044 - Move all prefs used in WebIDL to StaticPrefs. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D33507

--HG--
extra : moz-landing-system : lando
2019-06-13 09:00:59 +00:00
Mark Banner ea1728721a Bug 1558527 - Fix various issues related to shadowing of variables in dom/ code. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D34588

--HG--
extra : moz-landing-system : lando
2019-06-12 08:29:58 +00:00
Boris Zbarsky d5a8a4a595 Bug 1557793 part 3. Change the signatures of various nsContentUtils localization methods to play nicer with the new stringbundle API. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D34201

--HG--
extra : moz-landing-system : lando
2019-06-08 21:26:12 +00:00
Boris Zbarsky 5eb248348f Bug 1557847. Stop using [array] in nsIClipboard. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D34243

--HG--
extra : moz-landing-system : lando
2019-06-09 01:06:39 +00:00
Sylvestre Ledru f1fbd2ff00 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D33456

--HG--
extra : moz-landing-system : lando
2019-06-08 08:26:37 +00:00
Daniel Holbert d9ebfdd4d2 Bug 1556855 part 4: Remove support for the layout.css.prefixes.webkit pref. r=mats
From this point on, the webkit-prefixed CSS features that were previously
protected by this pref will now be unconditionally enabled.

Differential Revision: https://phabricator.services.mozilla.com/D33807

--HG--
extra : moz-landing-system : lando
2019-06-05 18:23:02 +00:00
Boris Zbarsky bf01c9bff6 Bug 1556808. Use StaticPrefs for layout.css.prefixes.webkit in EventListenerManager. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D33685

--HG--
extra : moz-landing-system : lando
2019-06-05 09:03:11 +00:00
Andreea Pavel d9bbc00de6 Bug 1527055 - disabled test_bug574663.html on win not debug r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D33441

--HG--
extra : moz-landing-system : lando
2019-06-04 12:49:19 +00:00
Edgar Chen 1ea67058f6 Bug 1525554 - Enable promise rejection event and update tests result; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D31734

--HG--
extra : moz-landing-system : lando
2019-06-04 12:55:57 +00:00
Neil Deakin dcfccf267d Bug 1443683, support drag and drop in out of process frames; this is done by storing the drag information about the data to be dragged and visualization image in the event state manager instead of the BrowserParent and passing this information on to the drag service, r=nika
--HG--
extra : rebase_source : 0ccb645d652b064e647d5693aaf480d7066e6fdf
2019-05-14 11:04:38 -04:00
Edgar Chen b11b3efd44 Bug 1543439 - Part 3: change and click event fired from browser UI should be considered as an user interaction event; r=masayuki
In general case, we set `IsHandlingUserInput` flag in `PresShell::EventHandler::HandleEventWithCurrentEventInfo()` for user interaction event.

However the interaction could happen on parent process, like e10s select and input date etc., whose dropdown/popup menu is implemented on parent process and it sends the interaction result to content process, then generates/dispatches corresponding event on content process directly. For such case, we need an addition hook before calling the event listener, just like what we do for popup blocker. It also makes more sense that we handle `popup blocker state` and `IsHandlingUserInput` flag at a consistent time.

Differential Revision: https://phabricator.services.mozilla.com/D32020

--HG--
extra : moz-landing-system : lando
2019-05-27 12:50:33 +00:00
Edgar Chen 33d303678c Bug 1543439 - Part 2: Move is-user-interaction checks out of PresShell::EventHandler::PrepareToDispatchEvent; r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D32019

--HG--
extra : moz-landing-system : lando
2019-05-27 10:14:06 +00:00
Edgar Chen 4b1ff2f791 Bug 1543439 - Part 1: Move special handling for MouseDown/Up event out of AutoHandlingUserInputStatePusher; r=masayuki
PresShell::EventHandler::HandleEventWithCurrentEventInfo is the only possible
place will do such handling; other places pass either a nullptr or a
non-MouseDown/Up event.

Differential Revision: https://phabricator.services.mozilla.com/D32431

--HG--
extra : moz-landing-system : lando
2019-05-29 07:48:16 +00:00
Masayuki Nakano e85fd75144 Bug 1545410 - part 1: Forcibly disable new keyCode/charCode value of keypress events if the document is Office Online Server r=smaug
Similar to bug 1514940, we need to use "split model" keypres events on
Office Online Server since they can be installed into user own servers.

Microsoft said it's safe to check whether there is an element whose id is
"WACViewPanel_EditingElement":
https://bugzilla.mozilla.org/show_bug.cgi?id=1545410#c17

Additionally, they'll add new class to the element after fixing the bug in
their side:
https://bugzilla.mozilla.org/show_bug.cgi?id=1545410#c17
https://bugzilla.mozilla.org/show_bug.cgi?id=1545410#c20

Differential Revision: https://phabricator.services.mozilla.com/D32287

--HG--
extra : moz-landing-system : lando
2019-05-23 22:00:58 +00:00
Sylvestre Ledru d57d4905f1 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D30883

--HG--
extra : moz-landing-system : lando
2019-05-25 17:46:15 +00:00
Jorg K d68e18d631 Bug 1553957 - Follow-up: Revert changeset 9a89e2b0fa9d and include WindowProxyHolder.h in JSWindowActorChild.cpp. r=bzbarsky
Reviewers: bzbarsky

Reviewed By: bzbarsky

Bug #: 1553957

Differential Revision: https://phabricator.services.mozilla.com/D32514

--HG--
extra : rebase_source : 32f18c40dbbfeb19da8fa5f25bd69ff4286d0a31
2019-05-25 02:53:49 +03:00
Brindusan Cristian fd5a4a259a Merge inbound to mozilla-central. a=merge 2019-05-25 00:49:05 +03:00
Brindusan Cristian bd1f354f25 Merge autoland to mozilla-central. a=merge 2019-05-25 00:46:28 +03:00
Ciure Andrei c7c661056f Merge autoland to mozilla-central. a=merge 2019-05-24 06:52:59 +03:00
Ciure Andrei 90fa4c6afd Merge autoland to mozilla-central. a=merge 2019-05-24 00:51:34 +03:00
Jorg K 48cbbb3137 Bug 1553957 - Include WindowProxyHolder.h in EventTarget.h. r=smaug a=Aryx 2019-05-23 23:09:19 +02:00
Edgar Chen 800499a9f9 Bug 1554122 - Rename nsAutoPopupStatePusher* to AutoPopupStatePusher; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D32457

--HG--
extra : moz-landing-system : lando
2019-05-24 12:42:29 +00:00
Mihai Alexandru Michis 35449f0689 Backed out changeset e52d041dc3de (bug 1553378) for causing build bustages in ContentEventHandler.cpp. CLOSED TREE
--HG--
extra : amend_source : 36025186ca5788f5889ff7d97252900eefab0a36
2019-05-24 14:32:27 +03:00
arthur.iakab af8e458c5f Backed out changeset a296439a25ff (bug 1519636) for frequent Windows cppunit failures CLOSED TREE 2019-05-24 14:26:01 +03:00
Cameron McCormack 5bed2b0138 Bug 1553378 - Devirtualize calls to GetText() / TextLength() when we know we have a Text node. r=smaug,jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D32100

--HG--
extra : moz-landing-system : lando
2019-05-24 08:10:55 +00:00
Stone Shih 946b97b939 Bug 1370630 - Untrusted submit event shouldn't trigger form submission; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D28070

--HG--
extra : moz-landing-system : lando
2019-05-23 20:30:20 +00:00
Sylvestre Ledru c82ea97226 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D30883

--HG--
extra : moz-landing-system : lando
2019-05-24 09:59:17 +00:00
Razvan Maries 234389cf17 Backed out changeset 82b18d61da00 (bug 1553378) for build bustages. CLOSED TREE 2019-05-24 06:50:14 +03:00
Cameron McCormack f5dd691a74 Bug 1553378 - Devirtualize calls to GetText() / TextLength() when we know we have a Text node. r=smaug,jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D32100

--HG--
extra : moz-landing-system : lando
2019-05-24 03:18:44 +00:00
Daniel Varga af42676c4a Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2019-05-23 18:59:21 +03:00
Paul Zuehlcke 4bccc4cede Bug 1428913 - Deny full-screen on right or middle mouse button. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D31481

--HG--
extra : moz-landing-system : lando
2019-05-22 19:16:31 +00:00
Cameron McCormack e82b3826f9 Bug 1553378 - Devirtualize calls to GetText() / TextLength() when we know we have a Text node. r=smaug,jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D32100
2019-05-22 15:18:48 +10:00
Christoph Kerschbaumer b633427366 Bug 965637: Move CSP from Principal into Client, part 1: backend changes. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D27654

--HG--
extra : moz-landing-system : lando
2019-05-21 23:14:27 +00:00
Brendan Dahl 543c10a1d2 Bug 1551320 - Replace all CreateElement calls in XUL documents with CreateXULElement. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D31295

--HG--
extra : moz-landing-system : lando
2019-05-20 16:50:28 +00:00
Olli Pettay 03f0326b37 Bug 1523853 - Avoid racy synthesizeWheel calls in test_bug574663.html, r=kats
Differential Revision: https://phabricator.services.mozilla.com/D31728

--HG--
extra : moz-landing-system : lando
2019-05-20 00:30:39 +00:00
Edgar Chen 1552980910 Bug 1551169 - Mark AutoHandlingUserInputStatePusher as MOZ_RAII; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D30881

--HG--
extra : moz-landing-system : lando
2019-05-13 12:11:48 +00:00
Boris Zbarsky 02db1205c0 Bug 1550937. Stop using [array] in nsIEventListenerService. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D30773

--HG--
extra : moz-landing-system : lando
2019-05-11 08:28:29 +00:00
Boris Zbarsky 928476d24c Bug 1550092 part 1. Stop using [array] in sendTouchEvent/sendTouchEventToWindow. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D30441

--HG--
extra : moz-landing-system : lando
2019-05-10 09:03:39 +00:00
Henri Sivonen 3f355066de Bug 1543578 - Avoid synthetizing BrowserParent IME focus change when opening a menu. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D28470

--HG--
extra : moz-landing-system : lando
2019-05-09 13:42:22 +00:00
Masayuki Nakano 1fb845d129 Bug 1543315 - part 17: Mark PresShell::HandleDOMEventWithTarget() as MOZ_CAN_RUN_SCRIPT r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D30494

--HG--
extra : moz-landing-system : lando
2019-05-09 20:21:28 +00:00
alwu f07597087a Bug 1548731 - part1 : support 'cuechange' event. r=smaug
According to the spec [1], `oncuechange` is one of the `GlobalEventHandler`. This event could be fired on `Track` element or `TextTrack` [2].

We would dispatch this event when we run the `TimeMarchesOn` algorithm.

[1] https://html.spec.whatwg.org/multipage/webappapis.html#handler-oncuechange
[2] https://html.spec.whatwg.org/multipage/media.html#event-media-cuechange
[3] https://html.spec.whatwg.org/multipage/media.html#playing-the-media-resource:event-media-cuechange

Differential Revision: https://phabricator.services.mozilla.com/D29783

--HG--
extra : moz-landing-system : lando
2019-05-07 11:21:29 +00:00
Artur Signell 97f51aaa75 dragndrop: Allow drag'n'drop to start from elements inside a shadow root (Bug 1521471) r=emilio
Before this change, only elements inside the shadow root tree were scanned for the
draggable=true attribute. We now check the flattened tree instead so an element
inside a shadow root can start a drag for an element containing the shadow root.

Differential Revision: https://phabricator.services.mozilla.com/D30365

--HG--
extra : moz-landing-system : lando
2019-05-08 18:30:45 +00:00
Edgar Chen 2167e86221 Bug 1362272 - Part 1: Add onrejectionhandled and onunhandledrejection EventHandler; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D17237

--HG--
extra : moz-landing-system : lando
2019-04-24 11:15:27 +00:00
Henri Sivonen 73365f142b Bug 1544632 - Check for BrowserParent destruction before sending StopIMEStateManagement IPC message. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D30007

--HG--
extra : moz-landing-system : lando
2019-05-06 12:00:03 +00:00
Masayuki Nakano 41c520d31f Bug 1543315 - part 16: Mark PresShell::HandleEventWithTarget() as MOZ_CAN_RUN_SCRIPT r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D30011

--HG--
extra : moz-landing-system : lando
2019-05-06 13:15:05 +00:00
Masayuki Nakano 780b285e68 Bug 1543315 - part 15: Mark PresShell::ScrollFrameRectIntoView() as MOZ_CAN_RUN_SCRIPT r=smaug
Unfortunately, `EventChainVisitor` does not grab the `nsPresContext` with
`RefPtr` by itself.  Therefore, there is no guarantee of the lifetime without
checking the origin when its subclasses are instantiated.  This patch changes
it and subclasses to `MOZ_STACK_CLASS` since only `EventDispatcher::Dispatch()`
creates them in the stack with given `nsPresContext`.  Additionally, it's
already been marked as MOZ_CAN_RUN_SCRIPT_BOUNDARY`.  Therefore, the
`nsPresContext` instance has already been guaranteed its lifetime by the
caller.  For making this fact stronger, this patch marks their constructors
as `MOZ_CAN_RUN_SCRIPT`.  Therefore, nobody can create those instances without
guaranteeing the lifetime of `nsPresContext` and `dom::Event`.  Note that
it may look like that `mPresContext` of `EventChainPostVisitor` is not
guaranteed.  However, `EventChainPreVisitor` which gives `nsPresContext` to it
is also a stack only class.  So, it won't be deleted before
`EventChainPostVisitor` instance.

Differential Revision: https://phabricator.services.mozilla.com/D30010

--HG--
extra : moz-landing-system : lando
2019-05-06 13:57:46 +00:00
Boris Zbarsky ff72e84ac1 Bug 1547923 part 4. Add nsIGlobalObject::HasJSGlobal(). r=mccr8
Consumers that just care about this boolean state should use this instead of
getting the JSObject* directly.

Differential Revision: https://phabricator.services.mozilla.com/D29705

--HG--
extra : moz-landing-system : lando
2019-05-02 21:32:17 +00:00
Ryan Hunt 9078c825ec Bug 1525720, part 14 - Move final bits of nsIRemoteTab implementation to BrowserHost. r=nika
This commit moves the actual implementation of nsIRemoteTab from BrowserParent
to BrowserHost, without any functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D31445

--HG--
extra : source : d25963c72ff7981990660050182a82ea3e935f53
2019-05-08 15:47:18 -05:00
Gurzau Raul 57f573a6ff Backed out 18 changesets (bug 1525720) for mass failures on Windows platform e.g ProcessPriorityManager.cpp on a CLOSED TREE.
Backed out changeset 1f2e86c2d691 (bug 1525720)
Backed out changeset 9b79caa460a0 (bug 1525720)
Backed out changeset e65cb2d4c5a5 (bug 1525720)
Backed out changeset 99f971a02d87 (bug 1525720)
Backed out changeset d25963c72ff7 (bug 1525720)
Backed out changeset 810b73719871 (bug 1525720)
Backed out changeset ee10a8254481 (bug 1525720)
Backed out changeset 1bcf9f586c55 (bug 1525720)
Backed out changeset d3b2ac8d5ca4 (bug 1525720)
Backed out changeset 697774dd8984 (bug 1525720)
Backed out changeset eadeacbe4483 (bug 1525720)
Backed out changeset 32eeee79d628 (bug 1525720)
Backed out changeset 07678a2fa9e7 (bug 1525720)
Backed out changeset 757b4f595cc4 (bug 1525720)
Backed out changeset b255e0a84e12 (bug 1525720)
Backed out changeset 9a255864f75d (bug 1525720)
Backed out changeset 5f1c1b609ec1 (bug 1525720)
Backed out changeset 00d83f1d02e0 (bug 1525720)
2019-05-23 01:57:16 +03:00
Ryan Hunt 9b1bbaea5b Bug 1525720, part 14 - Move final bits of nsIRemoteTab implementation to BrowserHost. r=nika
This commit moves the actual implementation of nsIRemoteTab from BrowserParent
to BrowserHost, without any functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D31445

--HG--
extra : rebase_source : 2e6533dfa69a3278300eb70d5258bcd0a3aba68b
extra : histedit_source : a26ba68b78eb6d16cdffbc630f4410c5dd46a367
2019-05-08 15:47:18 -05:00
Masayuki Nakano c842b7b133 Bug 253889 - part 4: Finally, get rid of nsIPresShell r=emilio
And also this cleans up some legacy comments of PresShell users.

Differential Revision: https://phabricator.services.mozilla.com/D29313

--HG--
extra : moz-landing-system : lando
2019-05-01 02:28:59 +00:00
Andrea Marchesini 02a6bdd26c Bug 1548253 - Port pref cache variables of nsContentUtils to StaticPrefs - ui.use_activity_cursor, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D29515

--HG--
extra : moz-landing-system : lando
2019-05-01 21:09:49 +00:00
Andrea Marchesini d7929086f3 Bug 1548253 - Port pref cache variables of nsContentUtils to StaticPrefs - full-screen-api.unprefix.enabled, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D29501

--HG--
extra : moz-landing-system : lando
2019-05-01 21:06:01 +00:00
Andreea Pavel accc389b66 Merge mozilla-inbound to mozilla-central. a=merge 2019-05-01 18:56:07 +03:00
Joel Maher 6611f95ab0 Bug 1546459 - remove subsuite=clipboard from manifests. r=ahal
remove subsuite=clipboard from manifests

Differential Revision: https://phabricator.services.mozilla.com/D28521

--HG--
extra : moz-landing-system : lando
2019-05-01 08:16:44 +00:00
Coroiu Cristina 02cf69641a Merge mozilla-central to inbound a=merge 2019-05-01 00:58:36 +03:00