Commit Graph

791 Commits

Author SHA1 Message Date
Ehsan Akhgari
45fe6d3ae2 Bug 722872 - Part 1: Add nsITransferable::Init(nsILoadContext*), enforce that it's called in debug builds, and add nsIDOMDocument* arguments to nsIClipboardHelper methods; r=roc
This patch does the following:

* It adds nsITransferable::Init(nsILoadContext*).  The load context
  might be null, which means that the transferable is non-private, but
  if it's non-null, we extract the boolean value for the privacy mode
  and store it in the transferable.
* It adds checks in debug builds to make sure that Init is always
  called, in form of fatal assertions.
* It adds nsIDOMDocument* agruments to nsIClipboardHelper methods which
  represent the document that the string is coming from.
  nsIClipboardHelper implementation internally gets the nsILoadContext
  from that and passes it on to the transferable upon creation.  The
  reason that I did this was that nsIClipboardHelper is supposed to be a
  high-level helper, and in most of its call sites, we have easy access
  to a document object.
* It modifies all of the call sites of the above interfaces according to
  this change.
* It adds a GetLoadContext helper to nsIDocument to help with changing
  the call sites.
2012-04-16 22:14:01 -04:00
Ed Morley
b5b2b2ba5a Backout c707e4f15fd4 (bug 767905), cad3e0609835 (bug 767894) for various devicestorage test failures 2012-06-26 16:21:37 +01:00
Doug Turner
54afe95ff2 Bug 767894 - Device Storage - move test from dom/tests/mochitest/devicestorage to dom/devicestorage. rs=bent
--HG--
rename : dom/tests/mochitest/devicestorage/Makefile.in => dom/devicestorage/test/Makefile.in
rename : dom/tests/mochitest/devicestorage/devicestorage_common.js => dom/devicestorage/test/devicestorage_common.js
rename : dom/tests/mochitest/devicestorage/test_basic.html => dom/devicestorage/test/test_basic.html
rename : dom/tests/mochitest/devicestorage/test_dotdot.html => dom/devicestorage/test/test_dotdot.html
rename : dom/tests/mochitest/devicestorage/test_enumerate.html => dom/devicestorage/test/test_enumerate.html
rename : dom/tests/mochitest/devicestorage/test_enumerateMultipleContinue.html => dom/devicestorage/test/test_enumerateMultipleContinue.html
rename : dom/tests/mochitest/devicestorage/test_enumerateNoParam.html => dom/devicestorage/test/test_enumerateNoParam.html
rename : dom/tests/mochitest/devicestorage/test_enumerateOptions.html => dom/devicestorage/test/test_enumerateOptions.html
rename : dom/tests/mochitest/devicestorage/test_lastModificationFilter.html => dom/devicestorage/test/test_lastModificationFilter.html
rename : dom/tests/mochitest/devicestorage/test_overwrite.html => dom/devicestorage/test/test_overwrite.html
rename : dom/tests/mochitest/devicestorage/test_sanity.html => dom/devicestorage/test/test_sanity.html
2012-06-26 05:51:24 -07:00
Olli Pettay
abe79ac8bf Bug 766694 - Add a test to check existence of each interface in the window scope, r=bz
--HG--
extra : rebase_source : 02e03c441c2c4ed3cbd1ce2981c84cfb350c70a1
2012-06-23 15:42:32 +03:00
Kartikaya Gupta
ceed4861d3 Bug 755971 - Switch to using the padding rect size for scrollWidth and scrollHeight, and update tests to continue passing. r=bz, gavin 2012-06-21 09:36:57 -04:00
Myk Melez
106cbe9eb0 bug 766382 - make mozApps mochitests stop modifying API call results; r=felipe 2012-06-20 09:53:30 -07:00
Peter Van der Beken
2556e5d626 Fix for bug 762657 (Fix canvas tests and drop support for fake ImageData in putImageData to comply with spec). r=Ms2ger. 2012-05-25 16:27:18 +02:00
Ian Bicking
90b8df8cb5 bug 739330 - call error handler with NOT_INSTALLED when page tries to uninstall webapp that is not installed; r=fabrice
--HG--
extra : rebase_source : 5ea5510c43d336a23245ad12b7cddbf8a438b164
2012-06-18 12:57:16 -07:00
Ian Bicking
20c3cba3dd bug 734294 - when installing an app the InstallTime is returning undefined; r=fabrice
--HG--
extra : rebase_source : 91e5a5d467826927f6c6df4c97ab5cecab73b26f
2012-06-18 12:49:35 -07:00
Bobby Holley
2486dbf4ed Bug 761982 - remove mozprefs.js. r=jmaher 2012-06-18 15:43:00 +02:00
Doug Turner
c14f720826 Bug 758273 - Device Storage - enumeration option to filter based on last modification date. r=smaug 2012-06-10 22:50:44 -07:00
L. David Baron
c9bf4416ea Backout bug 754202 (all patches, rather than just patches 3-7). 2012-06-10 17:22:31 -07:00
Ryan VanderMeulen
891e38e528 Revert c39d36167b99 due to a horribly munged backout. 2012-06-10 19:44:50 -04:00
Ryan VanderMeulen
f497d31a0a Backout the bug 754202 backout due to orange. 2012-06-10 19:37:47 -04:00
Doug Turner
4f0025323f Backed out changeset 401edab3831f - Bug 758273.
--HG--
extra : rebase_source : 8ce201cd3fe6a2d6405be2548927f65dab5cbb39
2012-06-08 21:33:16 -07:00
Doug Turner
62093ffdb7 Bug 758273 - Device Storage - enumeration option to filter based on last modification date. r=smaug 2012-06-08 20:15:04 -07:00
Ed Morley
bcd86477cd Merge mozilla-central to mozilla-inbound 2012-06-07 15:56:37 +01:00
Justin Lebar
138cc1865b Bug 758297 - Move <iframe mozbrowser> code to dom/browser-element. r=mounir
--HG--
rename : dom/base/BrowserElementChild.js => dom/browser-element/BrowserElementChild.js
rename : dom/base/BrowserElementParent.js => dom/browser-element/BrowserElementParent.js
rename : dom/base/BrowserElementParent.manifest => dom/browser-element/BrowserElementParent.manifest
rename : dom/base/BrowserElementPromptService.jsm => dom/browser-element/BrowserElementPromptService.jsm
rename : dom/tests/mochitest/browser-frame/Makefile.in => dom/browser-element/mochitest/Makefile.in
rename : dom/tests/mochitest/browser-frame/browserFrameHelpers.js => dom/browser-element/mochitest/browserFrameHelpers.js
rename : dom/tests/mochitest/browser-frame/file_empty.html => dom/browser-element/mochitest/file_empty.html
rename : dom/tests/mochitest/browser-frame/file_focus.html => dom/browser-element/mochitest/file_focus.html
rename : dom/tests/mochitest/browser-frame/test_browserFrame1.html => dom/browser-element/mochitest/test_browserFrame1.html
rename : dom/tests/mochitest/browser-frame/test_browserFrame10.html => dom/browser-element/mochitest/test_browserFrame10.html
rename : dom/tests/mochitest/browser-frame/test_browserFrame2.html => dom/browser-element/mochitest/test_browserFrame2.html
rename : dom/tests/mochitest/browser-frame/test_browserFrame3.html => dom/browser-element/mochitest/test_browserFrame3.html
rename : dom/tests/mochitest/browser-frame/test_browserFrame4.html => dom/browser-element/mochitest/test_browserFrame4.html
rename : dom/tests/mochitest/browser-frame/test_browserFrame5.html => dom/browser-element/mochitest/test_browserFrame5.html
rename : dom/tests/mochitest/browser-frame/test_browserFrame6.html => dom/browser-element/mochitest/test_browserFrame6.html
rename : dom/tests/mochitest/browser-frame/test_browserFrame7.html => dom/browser-element/mochitest/test_browserFrame7.html
rename : dom/tests/mochitest/browser-frame/test_browserFrame8.html => dom/browser-element/mochitest/test_browserFrame8.html
rename : dom/tests/mochitest/browser-frame/test_browserFrame9.html => dom/browser-element/mochitest/test_browserFrame9.html
rename : dom/tests/mochitest/browser-frame/test_browserFrameAlert.html => dom/browser-element/mochitest/test_browserFrameAlert.html
rename : dom/tests/mochitest/browser-frame/test_browserFramePromptCheck.html => dom/browser-element/mochitest/test_browserFramePromptCheck.html
rename : dom/tests/mochitest/browser-frame/test_browserFramePromptConfirm.html => dom/browser-element/mochitest/test_browserFramePromptConfirm.html
rename : dom/tests/mochitest/browser-frame/test_browserFrame_keyEvents.html => dom/browser-element/mochitest/test_browserFrame_keyEvents.html
2012-06-07 10:49:48 -04:00
Justin Lebar
6142222c71 Bug 741587 - Part 2: Tests for alert/prompt/confirm in <iframe mozbrowser>. r=smaug
--HG--
extra : rebase_source : 5c4e2666a27b48e882c256deeeefde137596a733
2012-06-07 10:43:23 -04:00
Bobby Holley
09834cc4d8 Bug 754202 - Fix content->chrome postMessage mochitest. r=bz
This isn't something we actually support, and were using enablePrivilege to do it before.
When we switch this to SpecialPowers wrapping, the sender origin becomes a chrome URL (not
very interesting) and the source window becomes null (which we do explicitly in
nsGlobalWindow for chrome callers). So those tests stop being useful.
2012-06-07 14:28:21 +02:00
Olli Pettay
fce8ddb35a Bug 762007 - mozIDOMApplication* interfaces shouldn't inherit builtinclass interfaces, r=fabrice
--HG--
extra : rebase_source : 8d5a71cde92635ee84ec022f3edddc19156f6bc8
2012-06-06 19:42:54 +03:00
Honza Bambas
680e33b76d Bug 744719 - Change offline cache update to load files in parallel, r=michal.novotny 2012-06-04 16:12:23 +02:00
Mihai Sucan
6ff1f7aede Bug 722685 - Console logging is slow; r=rcampbell 2012-06-02 13:45:32 +03:00
Mounir Lamouri
bd840c34f1 Bug 759017 - Fix test that wasn't correctly checking keyCode in the whitelist. r=jlebar 2012-05-31 16:39:35 +02:00
Dale Harvey
87e787b6f9 Bug 756844 - Change test strategy for screenshot API. r=jlebar
We originally made assumptions about the state of the painted
window after the mozafterpainted event, now we simple wait
until we receive a screenshot we are happy with (with max retries)

--HG--
extra : rebase_source : 82464dbcfbfc7af5d95a21d058ecc45a38cc5bf6
2012-05-30 22:15:12 -04:00
Gervase Markham
d4eb7d5782 Bug 759095 - upgrade license to MPL 2, and other licensing cleanups.
--HG--
extra : rebase_source : da55a4937383eda2baf7c9a362501da8ee664146
2012-05-29 16:52:43 +01:00
Dale Harvey
c1279f4c98 Bug 759044 - Cleanup visibility message reciever on test completion. r=jlebar 2012-05-28 13:55:48 -04:00
Dale Harvey
c430394d3f Bug 702880 - Add setVisible api to mozbrowser. r=jlebar 2012-05-27 08:39:04 -04:00
Bobby Holley
259fb15955 Bug 553102 - Fix open web apps. r=fabrice 2012-05-24 13:04:57 +02:00
Bobby Holley
00951c016e Bug 553102 - Fix mock prompt service. r=ted 2012-05-24 13:04:57 +02:00
Dale Harvey
defd79ac14 Bug 756844 - Fix randomorange in test_browserFrame9.html. r=jlebar
Previous test expected a screenshot taken after loadend event to
capture the updated content, which wasnt always true. New test only
tests that subsequent screenshots of content that we know has
been changed, will differ
2012-05-23 23:57:26 -04:00
Mounir Lamouri
65da7c827a Bug 757486 - Allow browser frames to bubble some whitelisted key events. r=jlebar
--HG--
extra : rebase_source : 5d8e8c2a4899f37bd01f4eab69238f48b0a2ddeb
2012-05-23 16:15:31 +02:00
Justin Lebar
6cd1b97cff Bug 754997 - For <iframe mozbrowser>, override window.{top,parent,frameElement} in C++. r=bz
--HG--
extra : rebase_source : 66d2ef018234eaa71e49d927eefdd3a8aa01bb41
2012-05-23 11:27:10 -04:00
Ed Morley
3302c026c5 Backout baee7c540118 (bug 757486) for M3 orange 2012-05-23 10:16:32 +01:00
Mounir Lamouri
4722c66806 Bug 757486 - Allow browser frames to bubble some whitelisted key events. r=jlebar 2012-05-23 01:43:37 +02:00
Doug Turner
b15cda8253 Bug 717103 - Implement Device Storage. r=sicking 2012-05-21 09:18:30 -07:00
Chris Pearce
f6d175d3ac Bug 753323 - Wait until actually in fullscreen before starting screenClientXPConst pointer lock test. r=orange-fix 2012-05-22 12:05:55 +12:00
Chris Pearce
18f4f1ccf1 Bug 745047 - Cache window.screen{X,Y} before testing them, since they can change during a JS execution context... r=orange-fix 2012-05-22 10:01:41 +12:00
Chris Pearce
1c10357a1d Bug 745047 - Wait until actually in fullscreen before starting mozMovement pointer lock test. r=smaug 2012-05-22 08:43:35 +12:00
Ed Morley
9f64d2c1c7 Backout 027ed1748c81 (bug 740485) for M3 orange 2012-05-21 19:36:43 +01:00
Doug Turner
a1636519c8 Bug 740485 - Implement Device Storage. r=sicking 2012-05-21 09:18:30 -07:00
Gervase Markham
ca171eec44 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Dale Harvey
3224a11758 Bug 753595 - Add a getScreenshot call to mozbrowser. r=jlebar 2012-05-18 20:47:20 -04:00
Ms2ger
a16e8f4659 Bug 752319 - Use testharness.js for the cross-origin localStorage tests; r=mayhemer 2012-05-18 10:29:38 +02:00
Ms2ger
b1c83bd74f No bug - Remove windows line endings from dom/tests/mochitest/localstorage/test_{keySync,storageConstructor}.html. 2012-05-18 10:29:38 +02:00
Neil Deakin
190b083ef5 Bug 665677, remove frequently failing test as what it is testing is already done within the main focus test, f=masayuki 2012-05-16 19:55:08 -04:00
Justin Lebar
4630305068 Bug 755320 - Make <iframe remote=true> work (the remote part should be ignored; it's just a normal iframe). r=smaug 2012-05-16 01:28:57 -04:00
Justin Lebar
b2be544813 Bug 755001 - Allow <iframe mozbrowser> to be explicitly in- or out-of-process. r=smaug 2012-05-16 01:28:56 -04:00
Ed Morley
f45236f090 Backout f177646e2aa2 (bug 755320), 1bae327de007 (bug 755001) for test_browserFrame7.html M3 failures 2012-05-15 18:38:50 +01:00
Justin Lebar
46a30de982 Bug 755320 - Make <iframe remote=true> work (the remote part should be ignored; it's just a normal iframe). r=smaug 2012-05-15 12:36:43 -04:00