Commit Graph

29 Commits

Author SHA1 Message Date
Neil Deakin
c6f8af3264 Bug 1419925, implement a promise-oriented version of waitForClipboard, promiseClipboardChange, change a selection of tests to use this instead. Simplify some other clipboard tests that were unreliable before the fix for 1394757. r=jmaher 2017-12-07 08:39:50 -05:00
Christoph Kerschbaumer
3783f248e6 Bug 1399074 - Update more tests within dom/ to comply with new toplevel data: URI navigation policy. r=smaug 2017-09-12 17:54:49 +02:00
Florian Quèze
47dde5c17b Bug 1334250 - script-generated patch to avoid removeEventListener calls when a variable is used for the event name, r=jaws. 2017-01-27 10:48:00 +01:00
Florian Quèze
91f7a2ef3a Bug 1331599 - script-generated patch to replace removeEventListener calls with the once option when possible, r=jaws. 2017-01-25 07:01:52 +01:00
Ting-Yu Lin
a64e1284f8 Bug 1307252 - Hide the carets when the selection is made by select all. r=kanru,kats
The mochitest for clipboard still needs the mozbrowsercaretstatechanged events,
so we disable "layout.accessiblecaret.hide_carets_for_mouse_input".

MozReview-Commit-ID: CD03lmjwUa9
2016-10-05 15:46:36 +08:00
J. Ryan Stinnett
f6d23d0dde Bug 1238160 - Rename OriginAttributes.mInBrowser and associated methods. r=bz,mayhemer
This change renames OriginAttributes.mInBrowser to mInIsolatedMozBrowser and
nsIPrincipal::GetIsInBrowserElement to GetIsInIsolatedMozBrowserElement.  Other
methods that pass these values around also have name changes.

Tokens such as "inBrowser" have previously been serialized into cache keys, used
as DB column names, stored in app registries, etc.  No changes are made to any
serialization formats.  Only runtime method and variable names are updated.

No behavior changes are made in this patch, so some renamed methods may have
nonsensical implementations.  These are corrected in subsequent patches
focused on behavior.

MozReview-Commit-ID: 66HfMlsXFLs
2016-03-02 10:35:56 -06:00
Ting-Yu Lin
d9259e03e5 Bug 1234118 - Delete code for supporting 'do-command' and 'copypaste-docommand'. r=mtseng, r=smaug
These two events are the leftovers for support copy/paste/cut/selectall
operations from old text_selection_dialog.js in Gaia. The code for
handling them can be removed since text_selection_dialog.js was removed
in bug 1221462.
2016-01-04 21:45:01 +08:00
Ting-Yu Lin
e88fe68dc4 Bug 1221459 - Remove SelectionStateChangedEvent. r=mtseng, r=smaug
SelectionStateChangedEvent is dispatched only by SelectionCarets. Hence
the removal. The modification in mochitest browserElement_CopyPaste.js
is effectively the reverting of [1] with AccessibleCaret enabled.

The DoCommandHelper is shell.js is removed as well, which handles the
'do-command' event dispatched from old text_selection_dialog.js in Gaia.

[1] https://bugzilla.mozilla.org/page.cgi?id=splinter.html&bug=1155493&attachment=8612154

DONTBUILD
2015-12-22 14:14:12 +08:00
Nigel Babu
45cfc46ab3 Backed out changeset c97319b5cb12 (bug 1221459) 2015-12-22 14:03:16 +05:30
Ting-Yu Lin
4ef82bbc8c Bug 1221459 - Remove SelectionStateChangedEvent. r=mtseng,smaug
SelectionStateChangedEvent is dispatched only by SelectionCarets. Hence
the removal. The modification in mochitest browserElement_CopyPaste.js
is effectively the reverting of [1] with AccessibleCaret enabled.

The DoCommandHelper is shell.js is removed as well, which handles the
'do-command' event dispatched from old text_selection_dialog.js in Gaia.

[1] https://bugzilla.mozilla.org/page.cgi?id=splinter.html&bug=1155493&attachment=8612154
2015-12-22 14:14:12 +08:00
Yoshi Huang
d563322200 Bug 1196665 - Add originAttributes into SpecialPowers. r=bholley
From 7bb0fbba24f4f65d3fa83efe223b1431cd71fdb6 Mon Sep 17 00:00:00 2001
---
 dom/apps/tests/test_third_party_homescreen.html    |   8 +-
 .../test/test_messagemanager_assertpermission.html |   4 +-
 dom/base/test/test_messagemanager_targetchain.html |  16 +--
 ...rowserElement_AllowEmbedAppsInNestedOOIframe.js |  11 +-
 .../mochitest/browserElement_CopyPaste.js          |   9 +-
 .../browserElement_DisallowEmbedAppsInOOP.js       |   9 +-
 .../mochitest/browserElement_Proxy.js              |  10 +-
 .../browserElement_SetInputMethodActive.js         |   3 +-
 .../mochitest/browserElement_SetVisibleFrames.js   |  17 ++--
 .../mochitest/browserElement_SetVisibleFrames2.js  |  16 +--
 .../priority/test_ExpectingSystemMessage2.html     |  16 +--
 .../mochitest/priority/test_NestedFrames.html      |  16 +--
 dom/cache/test/mochitest/driver.js                 |  11 +-
 .../test/mochitest/test_cache_orphaned_body.html   |  33 +-----
 .../test/mochitest/test_cache_orphaned_cache.html  |  33 +-----
 dom/cache/test/mochitest/test_cache_restart.html   |  11 +-
 dom/cache/test/mochitest/test_cache_shrink.html    |  33 +-----
 dom/indexedDB/test/file.js                         |  12 +--
 dom/indexedDB/test/helpers.js                      |   9 +-
 dom/indexedDB/test/webapp_clearBrowserData.js      |   6 +-
 dom/inputmethod/mochitest/test_bug1043828.html     |   5 +-
 dom/inputmethod/mochitest/test_bug944397.html      |   5 +-
 .../mochitest/test_focus_blur_manage_events.html   |   5 +-
 .../mochitest/test_input_registry_events.html      |   5 +-
 .../mochitest/test_simple_manage_events.html       |   5 +-
 .../tests/test_permission_for_nested_oop_app.html  |   3 +-
 .../tests/test_permission_for_two_oop_apps.html    |   3 +-
 dom/ipc/tests/test_permission_helper.js            |  21 ++--
 .../test_permission_when_oop_app_crashes.html      |   3 +-
 dom/tv/test/mochitest/head.js                      |   5 +-
 .../test_SpecialPowersPushAppPermissions.html      |  14 ++-
 .../tests/Harness_sanity/test_bug816847.html       |   6 +-
 .../components/SpecialPowersObserver.js            |   4 +-
 .../content/SpecialPowersObserverAPI.js            |  24 +----
 testing/specialpowers/content/specialpowersAPI.js  | 111 ++++++++-------------
 35 files changed, 173 insertions(+), 329 deletions(-)
2015-10-07 14:35:43 +08:00
Yoshi Huang
cb2176d7db Backout e54c3b878993 2015-10-27 15:49:11 +08:00
Yoshi Huang
1c86cab3dd Bug 1196665 - Add originAttributes into SpecialPowers. r=bholley 2015-10-07 14:35:43 +08:00
Morris Tseng
c1dcf3afeb Bug 1155493 - Part 4 - Add test for mozbrowsercaretstatechanged. r=kanru 2015-05-28 01:39:00 -04:00
Ryan VanderMeulen
713536a68d Backed out 4 changesets (bug 1155493) for Android test_browserElement_inproc_CopyPaste.html timeouts/crashes.
Backed out changeset 3bd7adb9f591 (bug 1155493)
Backed out changeset 0380b1684e6b (bug 1155493)
Backed out changeset 58b7c1eaf3c8 (bug 1155493)
Backed out changeset 896beb5088a7 (bug 1155493)
2015-05-25 13:15:06 -04:00
Morris Tseng
0297ea3638 Bug 1155493 - Part 4: Add test for mozbrowsercaretstatechanged. r=kchen 2015-05-19 21:00:00 -04:00
Morris Tseng
c45dfc501c Bug 1120592 - Create iframe directly instead of using setTimeout. r=kanru 2015-04-23 19:36:00 -04:00
pchang
36d5ccdf94 Bug 1111433 - Add mochitest to verify SelectionStateChanged with blur state. r=ehsan 2015-01-07 23:34:00 -05:00
Morris Tseng
87595b7045 Bug 1097419 - Part 2: Add mochitest for nested mozbrowser iframe case. r=kanru 2015-01-05 01:03:00 -05:00
Morris Tseng
2f9785c560 Bug 1114853 - Part 4: Bail out if selections are mismatch. r=roc 2014-12-29 20:02:00 +01:00
Ryan VanderMeulen
2a1334f558 Backed out changesets e85722c30be3 and 28714f577de0 (bug 1097419) for B2G timeouts. 2014-12-26 12:09:24 -05:00
Morris Tseng
3d6ce1bcc9 Bug 1097419 - Part 2: Add mochitest for nested mozbrowser iframe case. r=kchen 2014-12-23 17:38:00 -05:00
Ehsan Akhgari
3cd35353b1 Bug 649012 - Fail mochitest-plains which use flaky timeouts (setTimeout(x) for x > 0); r=ted
We are white-listing the existing set of tests that use setTimeout
like this.  Hopefully these tests will be investigated and fixed
in the future, so that we can narrow down the white-list.

This check is only turned on for mochitest-plain for now.
2014-12-11 13:34:40 -05:00
pchang
5a7eeff70c Bug 1090008 - Part 6 - Rename selectionchange to selectionstatechanged event for copypaste mochitest, r=roc 2014-11-27 18:57:00 +01:00
Morris Tseng
ebfb1346c9 Bug 1101392 - Part 3: Select all before paste since we collapse range after copying. r=roc 2014-11-26 22:57:00 +01:00
Kan-Ru Chen (陳侃如)
12a92005da Bug 1090759 - Part 5. Use setAttribute to set mozbrowser instead of using SpecialPowers. r=smaug 2014-10-31 10:39:15 +08:00
Jan Jongboom
b3a1f37c65 Bug 1067255 - Disallow cut and copy in password fields. r=ehsan 2014-10-08 16:27:31 -07:00
Morris Tseng
1f92a5bc12 Bug 1051995 - Use observer services to prevent ContentParent leak. r=fabrice 2014-09-23 00:10:00 -04:00
Morris Tseng
16b89835fd Bug 987040 - Part 4: mochitest for mozbrowserselectionchange api. r=ehsan 2014-07-28 01:21:00 +02:00