Commit Graph

203 Commits

Author SHA1 Message Date
Blake Kaplan
3755137195 Add a test for bug 541530. a=tests 2010-11-09 12:29:41 -08:00
Henri Sivonen
62878d9b2f Bug 591981 - Make script-inserted inline scripts run right away, make script-inserted external scripts behave like async scripts and make document.write writing an inline script return at a predictable time. r=jonas, a=blocking2.0-beta7. 2010-09-01 14:41:12 +03:00
Jonas Sicking
5d3b067a49 Back out bug 591981 since it causes bug 599583. a=backout 2010-09-27 16:23:33 -07:00
Henri Sivonen
27395b2f77 Bug 591981 - Make script-inserted inline scripts run right away, make script-inserted external scripts behave like async scripts and make document.write writing an inline script return at a predictable time. r=sicking a=blocking2.0-beta7 2010-09-21 12:48:40 -07:00
Jonas Sicking
f161eca3e2 Back out bug 591981 to see if it caused a performance regression. a=backout 2010-09-20 15:47:57 -07:00
Henri Sivonen
1e21e4e21a Bug 591981 - Make script-inserted inline scripts run right away, make script-inserted external scripts behave like async scripts and make document.write writing an inline script return at a predictable time. r=jonas, a=blocking2.0-beta7.
--HG--
extra : rebase_source : 3d30baa42025c2d5e63b39586671345ae87bb0b2
2010-09-01 14:41:12 +03:00
Johnny Stenback
80fa2ae7df Fixing bug 61098. Give users a way out of inifinite modal dialog loops. Original patch by Nochum Sossonko. r=jonas@sicking.cc a=beta7+ 2010-09-16 18:24:14 -07:00
Olli Pettay
e4f9614b57 Bug 585240 - Can't add message handlers by setting the onmessage property, r=jwalden, a=jst 2010-09-15 19:41:50 +03:00
Olli Pettay
53f658e81a Bug 585240 - Can't add message handlers by setting the onmessage property, r=jwalden, a=jst
--HG--
extra : rebase_source : 1ad4cb8bbef2151b424402b589c69dd13e0c13f3
2010-09-15 19:08:56 +03:00
Mounir Lamouri
6d4b563809 Bug 369306 - Tests for bug 369306 and fixing broken tests. r=jst a2.0=test-only 2010-09-09 20:20:06 +02:00
Henri Sivonen
24613fa978 Bug 585819 - When the context passed to Range.createContextualFragment is "html" in an HTML document, use "body" as the context instead. r=bzbarsky, a=blocking2.0-betaN. 2010-09-01 14:41:07 +03:00
Saint Wesonga
3f7a3cf2e5 Bug 562433 - Change location.host and location.hostname to return "" for host-less URIs instead of throwing. r=bz 2010-08-07 09:11:43 +02:00
Peter Van der Beken
e0b3b50810 Fix test_bug396843.html since bug 583225 fixed some todos. 2010-08-01 22:27:35 +02:00
Peter Van der Beken
68521e88b9 Fix for bug 583225 (Use the right DOMCI for DocumentFragment). r=jst. 2010-07-30 15:04:30 +02:00
Boris Zbarsky
537c1dce54 Bug 581072. Fix the handling of long timeouts across timeout suspend/resume and add APIs to suspend/resume timeouts from trusted script. r=jst 2010-07-22 17:33:37 -04:00
Benjamin Smedberg
6d1766e8cd Bug 567357 - Fire a DOMWindowCreated event which matches the observer-service notification in bug 549539 so that extensions/message-manager scripts can add DOM features before any content script runs, r=sicking
--HG--
extra : rebase_source : b1eda0b412952587b9ef12908b2c2f818359ce65
2010-06-10 12:23:40 -04:00
Blake Kaplan
54ca1d9bd6 Bug 545314 - Force an inner window here so that we return a working location object. r=peterv 2010-05-28 15:40:29 -07:00
Boris Zbarsky
a491cefc6d Bug 484710. Add a notification for when a window's scope stops being usable. r=jst 2010-05-14 17:17:52 -04:00
Mayank Gupta
85f4893096 Bug 548828. Implement HTMLDocument.head. Mochitest-testcase r=bzbarsky 2010-05-11 00:14:20 +05:30
Boris Zbarsky
326e6cd9f3 Bug 534149. Give each nsGlobalWindow a unique ID and expose the IDs on nsIDOMWindowUtils. r=jst 2010-05-10 21:12:35 -04:00
Boris Zbarsky
3c3a1ca782 Bug 563487. removeEventListener on a Window shouldn't throw if there's not listener manager yet; just do nothing. r=smaug 2010-05-05 14:18:04 -04:00
Peter Van der Beken
6fe7a598df Fix for bug 558973 ("ASSERTION: Nodes that are not documents, document fragments or elements can't be parents!"). r=jst.
--HG--
extra : rebase_source : 6d9f76e94457823bb425f546053f4d24e80aec5c
2010-04-15 10:28:57 +02:00
Boris Zbarsky
e3c85bbb77 Bug 492925. Make array access on medialists actually work. r=jst 2010-04-23 13:37:02 -04:00
Jonas Sicking
1a83956b1c Bug 518110: Kill HTMLBaseFontElement interface and HTMLHeadElement.profile. Also merge nsHTMLHeadElement and nsHTMLHtmlElement into nsHTMLSharedElement. r=jst
--HG--
extra : rebase_source : 651aeed4f884405ffd980b3b74a0dbb21f931156
2010-04-19 12:06:00 -07:00
Mats Palmgren
47a33305b5 Remove the inner declaration of startOffset, it shadows the outer one we use. b=549909 r=enndeakin 2010-03-14 14:46:11 +01:00
Joel Maher
d050afae06 Bug 544097 Chaning mochitests to run against mochi.test instead of localhost r=ted, waldo, dwitte p=jmaher. Landed on CLOSED TREE 2010-03-12 13:53:36 -08:00
Brad Lassey
bb55fe310f backing out changesets e939397fc6a5, 88529662c474 and 3d7c54b194bb due to random hangs in pgo tests 2010-03-09 22:33:11 -05:00
Joel Maher
aef3dc32c3 Bug 544097 changing mochitests to use mochi.test instead of localhost for windows mobile refactoring p=jmaher, r=ted,dwitte, sayrer, waldo, ctalbert 2010-03-09 08:55:39 -08:00
Kyle Huey
1d0289c601 Backed out changeset 8ce70abd7777 2010-03-09 01:14:21 -05:00
Joel Maher
cee9b522a0 Bug 544097 Change mochitests to use mochi.test instead of localhost for mobile refactoring p=jmaher r=ted,dwitte,sayrer 2010-03-08 19:21:33 -08:00
Clint Talbert
7ffd9496bc Backed out changeset b4372055f473 -- due to unexplained orange on OS X Leak test (Bd) box 2010-03-07 17:34:23 -08:00
Joel Maher
ef6c5fda3d Bug 544097 - Change mochitests to use mochi.test instead of localhost for mobile test refactoring p=jmaher, r=sayrer,dwitte 2010-03-07 16:08:05 -08:00
Blake Kaplan
5f9a4782f7 Fix bug 541530. r=jst sr=brendan 2010-03-04 13:44:42 -08:00
Henri Sivonen
cb3f5d69ed Bug 545402 - Make test_bug42976.html run from onload and make HTML5 createContextualFragment work on DOMs that do not have a docshell. r=Olli.Pettay.
--HG--
extra : rebase_source : 74002d7f9936045065406e412477df9b740ee766
2010-02-22 14:17:31 +02:00
Peter Van der Beken
7d8645e4ca Fix for bug 428229 (Unable to override addEventListener), remove custom addEventListener code. r=bz.
--HG--
extra : rebase_source : 4e679da2100075a1e3c4ad557b92a3c86a5cf7be
2010-01-13 14:50:01 +01:00
Olli Pettay
19c06de19d bug 531176, r=sicking, sr=jst 2009-12-18 21:27:57 +02:00
Peter Van der Beken
7608b7052e Fix error in test. 2009-12-13 21:48:20 -08:00
Peter Van der Beken
b169f2dccb Fix for bug 531542 ("ASSERTION: DOM_MIN_TIMEOUT_VALUE lies" with negative setTimeout). r=jst. 2009-11-30 10:58:32 +01:00
Peter Van der Beken
110cb44583 Fix for bug 534362 (Allow modifications to Location.prototype). r=mrbkap.
--HG--
extra : rebase_source : c860de457e25114244c86ff8063ca6c1390e33ae
2009-12-13 16:57:08 -08:00
Peter Van der Beken
7e0a012c40 Back out fix for bug 428229 (Unable to override addEventListener). 2009-11-15 17:03:03 +01:00
Peter Van der Beken
aae3f7089b Fix for bug 428229 (Unable to override addEventListener). r=bz. 2009-11-09 14:54:18 +01:00
Serge Gautherie
df6abf6b7c Add |ok(true, ...);|.
Bug 483624 - Mochitest bugs/test_bug479143.html runs fine but needs to check/report success; (Av1).
r+sr=jst
2009-11-05 01:46:38 +01:00
Ben Newman
19cb564817 Bug 260264 - Popups from a Site that is in the "Allowed List" (whitelist) are blocked, starting with the n-th popup (dom.popup_maximum). r+sr=jst 2009-09-16 11:46:05 -07:00
Johnny Stenback
039b7eb41d Part 2 of fix for bug 459452 (Add support for optional arg count for IDL methods): use [optional_argc] for DOM methods. r=peterv.
--HG--
extra : rebase_source : c0bc25842b2645fe9f42c9ed5d57567f8e6b5279
2009-08-10 16:41:12 +02:00
L. David Baron
670f0e6149 Work around bug 524037 by sending a mouse up event in addition to the mouse down event so that we don't leak and the tree goes green again. 2009-10-23 07:43:24 -04:00
Jesse Ruderman
e0c6e775cb Fix bug number (in a mochitest) 2009-10-14 17:25:46 -07:00
Johnny Stenback
9d74609659 Adding missing files from my previous commit. 2009-10-06 17:25:56 -07:00
Johnny Stenback
123b209635 Fixing bug 504862. Sanitize modal dialog argument handling. r=mrbkap@gmail.com, sr=bzbarsky@mit.edu 2009-10-06 17:09:16 -07:00
Johnny Stenback
8127d8695e Backed out changeset 105d89f1a33b due to test failures. 2009-08-31 15:03:53 -07:00
Johnny Stenback
29b20051c6 Fixing bug 504862. Sanitize modal dialog argument handling. r=mrbkap@gmail.com, sr=bzbarsky@mit.edu 2009-08-31 14:35:58 -07:00
Zack Weinberg
aced039def Bug 495219: nsGlobalWindow::GetInner* report zero when there is no prescontext, to restore old behavior for display:none. r+sr=bzbarsky 2009-05-28 15:19:08 -04:00
Olli Pettay
e64efde796 Bug 484775 - DocumentFragments and Attribute nodes should expose nsIDOMEventTarget to JS, r+sr=peterv
--HG--
extra : rebase_source : 7bce078904782a5a907eebbbff7b74a905cfa8c1
2009-05-07 16:59:51 +03:00
Olli Pettay
fc5f3a87aa backout bug484775 2009-05-07 10:19:06 +03:00
Olli Pettay
d9072725ae Bug 484775 - DocumentFragments and Attribute nodes should expose nsIDOMEventTarget to JS, r+sr=peterv
--HG--
extra : rebase_source : 9c6f8f9d3cd1283adb7b69b93440f7da01924326
2009-05-07 09:31:04 +03:00
L. David Baron
8c38aba811 Switch HTML mochitests from using MochiKit.js to packed.js. (Bug 490955) r=sayrer 2009-05-06 13:46:04 -07:00
Dave Townsend
3a27432a29 Bug 427744: List plugin file version number under about:plugins. r=josh, sr=jst 2009-04-22 12:13:10 -07:00
Jeff Walden
76360f9c38 Fix thinko to make a test actually test what it was supposed to test, no bug 2009-04-06 14:14:10 -07:00
Ehsan Akhgari
952a3fe41d Bug 463000 - Handle DOM Storage in Private Browsing Mode; r=campd sr=jst 2009-02-19 09:31:00 +03:30
Ben Turner
42dfaf6ce7 Bug 479143 - Fix crash from bug 340345. r+sr=jst, a=blocking1.9.1+ 2009-02-18 19:02:50 -08:00
Boris Zbarsky
697a3c8f23 Bug 346659 tests 2009-01-22 22:39:50 -05:00
Dave Camp
4edd89ab0a Bug 458091: Don't store an mURI in nsDOMStorage. r=bz 2009-01-12 21:52:00 -08:00
Boris Zbarsky
614f8ff1ca Bug 465263. When setting location.hash to empty string, treat that as identical to '#' for compat with IE. r+sr=jst, a=beltzner 2008-11-26 16:52:54 -05:00
Boris Zbarsky
271d645f5a Adding test for bug 132255 2008-11-19 18:05:54 -05:00
Boris Zbarsky
2bbc3166ba Test for bug 49312 2008-11-19 18:05:52 -05:00
Olli Pettay
80d42d5fb5 Bug 459848 - backout bug 346984 r+sr=bz 2008-10-17 01:35:45 +03:00
sharparrow1@yahoo.com
d5a8112b79 Bug 42976, cloneNode() HTML Document nodes, r=smaug,sr=jst 2008-09-18 14:15:47 +03:00
Ben Newman
864cbb4b30 Bug 437361. Propagate exceptions from showModalDialog's guts to script as needed instead of dropping them on the floor. r+sr=bzbarsky 2008-07-28 22:52:53 -07:00
Johnny Stenback
55d2121fbe Fixing bug 440572. Make child frames whose names conflict with properties defined in IDL be accessable through XOWs again. r+sr=mrbkap@gmail.com 2008-06-25 17:07:22 -07:00
Johnny Stenback
8d2a15b00b Fixing bug 440572. Make child frames whose names conflict with properties defined in IDL be accessable through XOWs again. r+sr=mrbkap@gmail.com 2008-06-25 17:06:38 -07:00
jwalden@mit.edu
cea0828eea Bug 430251 - Update to latest HTML5 and make postMessage dispatch its event asynchronously, as well as dispatch at the window, not the document. r=jst, r=smaug, sr=sicking, a=damons, c=cookie 2008-05-02 12:26:47 -07:00
Olli.Pettay@helsinki.fi
a94491e27d Bug 430276, new XMLHttpRequest() after document.write throws an exception, patch2, r+sr=jst, a=beltzner 2008-04-29 12:22:24 -07:00
Olli.Pettay@helsinki.fi
aa8ad34275 Bug 430276, new XMLHttpRequest() after document.write throws an exception, r+sr=jst, a=beltzner 2008-04-25 02:45:58 -07:00
reed@reedloden.com
b456d95bcc Bug 424093 - "CNN Video page will not load" [p=dcamp@mozilla.com (Dave Camp) r=Enn sr=jst a1.9b5=beltzner] 2008-03-20 23:46:57 -07:00
jwalden@mit.edu
f81dbedcf7 Also run createElement(?:NS)? tests on XML/XHTML documents, in addition to on an HTML document. We don't have any bugs that this exposes, but it seems like a good idea to add them, since another implementation (WebKit) was passing all our tests but failing the Yahoo! webmail does-it-work smoketest due to this. a=itsatest 2008-03-20 18:23:49 -07:00
dcamp@mozilla.com
a998ea3234 Bug 407839: restrict globalStorage to same host. r=enndeakin, sr=jst, blocking1.9=pavlov 2008-03-18 18:27:35 -07:00
reed@reedloden.com
7666927a21 Bug 375457 - "toDataURL has incorrect type-checking logic" (a simple test that just ensures we throw an exception when calling toDataURL with null and objects) [p=joe@drew.ca (Joe Drew [JOEDREW!])] 2008-03-18 12:55:12 -07:00
jst@mozilla.org
0cbe6b969b Fixing bug 414291. Make window.open() ignore modal=yes for backwards compatibility. r+sr=bzbarsky@mit.edu and jonas@sicking.cc 2008-03-14 14:31:24 -07:00
jwalden@mit.edu
5809da44ed Bug 417075 - Update postMessage and MessageEvent to reflect domain/uri being replaced by origin, optional origin argument. r+sr=sicking, a=beltzner 2008-02-26 19:48:54 -08:00
jonas@sicking.cc
65f4571f58 Bug 416534: Clean up cross-site xmlhttprequest security checks. With fixes to tests this time. r/sr=peterv 2008-02-26 19:45:29 -08:00
reed@reedloden.com
ce8dfb0807 Bug 409349 - [p=honzab@allpeers.com (Honza Bambas [mayhemer]) r=Enn sr=dveditz a1.9=damons a=blocking1.9+] 2008-02-26 17:01:01 -08:00
jwalden@mit.edu
c94942c6d0 Bug 417491 - Element.setAttribute(':', ...) throws DOMException INVALID_CHARACTER_ERR. r+sr=peterv, a=beltzner 2008-02-15 15:22:55 -08:00
jwalden@mit.edu
5ccb25d679 Bug 411103 - document.createElement(bad) (and the NS version) throwing wrong exception. Fixes two acid3 tests as well. r=peterv, sr=jst, a=schrep 2008-02-11 20:14:57 -08:00
jruderman@hmc.edu
7e1fd6b92b Add mochitest 2008-02-09 02:35:51 -08:00
jruderman@hmc.edu
9892d16836 Add mochitest for "new HTMLDocument()" throwing and not asserting 2008-02-08 16:24:43 -08:00
martijn.martijn@gmail.com
485471a1de Mochitest for bug 397571, r=martijn.martijn 2007-12-21 06:42:27 -08:00
mrbkap@gmail.com
d3cd1df667 Fix mochitest fallout from bug 396849 2007-12-18 13:56:14 -08:00
ted.mielczarek@gmail.com
08ab0d988a bug 400204 - window.innerWidth throws exception when called on a non-displayed frame (mochitest). r=jst 2007-12-04 08:52:23 -08:00
ted.mielczarek@gmail.com
319f72faea bug 400204 - window.innerWidth throws exception when called on a non-displayed frame (mochitest). r=jst 2007-12-04 08:45:15 -08:00
dcamp@mozilla.com
5ddd1d31b3 Bug 405479: fix race condition in test for bug 377539. r=bz 2007-11-26 20:08:19 -08:00
bzbarsky@mit.edu
db65ca12c1 Adding test. 2007-11-23 15:31:51 -08:00
jwalden@mit.edu
6349c0d4bb Bug 389366 - Canvas's .getImageData is returning premultiplied alpha pixels. r=dolske on my mochitestification of the test he wrote but was too slackerly to convert to a Mochitest :-P 2007-10-29 14:30:45 -07:00
bzbarsky@mit.edu
fa9ec1b622 Fix a few scriptable helpers to correctly communicate NS_SUCCESS_I_DID_SOMETHING. Bug 396843, r+sr+a=jst 2007-09-28 07:28:16 -07:00
bzbarsky@mit.edu
3d72bc9b42 Adding test. 2007-09-20 20:39:37 -07:00
jwalden@mit.edu
79066f5a93 Bug 393974 - Tree walkers leak with a non-null filter. r=smaug, sr=sicking, a=blocking1.9 2007-08-28 16:42:41 -07:00
jst@mozilla.org
1592d59c6c Backing out tests to fix orange. 2007-08-06 17:30:30 -07:00
jst@mozilla.org
6c211e48e4 Landing tests for bug 280959. Patch by mfenniak-moz@mathieu.fenniak.net, r=Olli.Pettay@gmail.com 2007-08-06 16:11:52 -07:00
ginn.chen@sun.com
9a8c1632f4 Bug 389793 Firefox build failed on OpenSolaris without --disable-mochitest r=benjamin a=dsicore 2007-08-05 20:22:32 -07:00
bzbarsky@mit.edu
b9ed3a0a0f Adding test. 2007-07-16 10:41:29 -07:00
peterv@propagandism.org
97650672c8 Fix for bug 384122 (QueryInterface shouldn't be enumerable on DOM interface objects). r/sr=jst. 2007-06-14 03:03:44 -07:00
peterv@propagandism.org
9eba56a764 Test for bug 370098 (Some constructors raise a "XXX is not a function" exception when called (DOMParser, XMLSerializer, XMLHttpRequest, XPathEvaluator, XSLTProcessor)). r=jst. 2007-05-25 09:06:02 -07:00
mats.palmgren@bredband.net
689855b929 Mochitest for bug 377539. b=377539 r=bzbarsky 2007-05-09 06:27:59 -07:00
bzbarsky@mit.edu
36656a88fa Allow getting the lineNumber of XPConnect expceptions. Bug 291377, r=sicking,sr=jst. r=mrbkap, sr=jst for the test. 2007-04-26 21:19:11 -07:00
sayrer@gmail.com
0ce8af1698 Bug 368994. move mochitests near the code they test. round 7. r=bzbarsky 2007-04-16 08:18:50 -07:00