Commit Graph

169 Commits

Author SHA1 Message Date
Peter Van der Beken
c705293c1c Bug 1383059 - Remove instanceof for supplemental interfaces. Part 1: add Window.isChromeWindow and switch |instanceof [nsIDOM]ChromeWindow| to use it instead. r=bz.
--HG--
extra : rebase_source : 1efc83abae922c1a7b7eb855fd10a6333615044b
extra : source : 32277b160af4739c812ca2750a39ca111b16ea69
2017-10-06 13:47:27 +02:00
Samael Wang
f094864c63 Bug 1364364 - Part 4: Add test case. r=smaug
MozReview-Commit-ID: BozQDPdx0MI

--HG--
extra : rebase_source : 773d6b97b6fe45eea7faa734799205b004f05ce6
2017-08-30 17:00:12 +08:00
Ryan VanderMeulen
68c8008faf Backed out 7 changesets (bug 1364364) for causing bug 1399182.
Backed out changeset c517d8071dfb (bug 1364364)
Backed out changeset 809036cfd7d9 (bug 1364364)
Backed out changeset c394b06dc30c (bug 1364364)
Backed out changeset c5a737bbfdeb (bug 1364364)
Backed out changeset 21ee8f318a47 (bug 1364364)
Backed out changeset 074475da0f2c (bug 1364364)
Backed out changeset de6c153ec533 (bug 1364364)

--HG--
rename : dom/indexedDB/test/bfcache_page1.html => dom/indexedDB/test/bfcache_iframe1.html
rename : dom/indexedDB/test/bfcache_page2.html => dom/indexedDB/test/bfcache_iframe2.html
rename : dom/media/webspeech/synth/test/file_bfcache_page1.html => dom/media/webspeech/synth/test/file_bfcache_frame.html
rename : dom/media/webspeech/synth/test/file_bfcache_page2.html => dom/media/webspeech/synth/test/file_bfcache_frame2.html
rename : dom/workers/test/WorkerDebugger_frozen_window1.html => dom/workers/test/WorkerDebugger_frozen_iframe1.html
rename : dom/workers/test/WorkerDebugger_frozen_window2.html => dom/workers/test/WorkerDebugger_frozen_iframe2.html
rename : dom/workers/test/suspend_window.html => dom/workers/test/suspend_iframe.html
2017-09-12 13:21:17 -04:00
Samael Wang
f9a1a3b070 Bug 1364364 - Part 4: Add test case. r=smaug
MozReview-Commit-ID: BozQDPdx0MI

--HG--
extra : rebase_source : 861931ed42bd00cb698e051818d98808d828d65e
2017-08-30 17:00:12 +08:00
Christoph Kerschbaumer
7aa9de237b Bug 1397653 - Update tests within docshell/ to comply with new toplevel data: URI navigation policy. r=smaug 2017-09-10 13:22:12 +02:00
Samael Wang
437fb82030 Bug 1375833 - Part 4.1: Revert test_bug123696.html & update file_bug1326251.html. r=smaug
Revert test_bug123696.html to what it was before bug 1326251 laned. Update
file_bug1326251.html to reflect the change that static frame entries won't be
cleared on reloading.

MozReview-Commit-ID: F93ZBNv1Gj

--HG--
extra : rebase_source : e6573c38d03656a41b5e016bc402ef0c579a1797
2017-08-21 18:28:53 +08:00
Samael Wang
4c4325a56c Bug 1375833 - Part 3: Add test case. r=smaug
MozReview-Commit-ID: L86sMEzfU4h

--HG--
extra : rebase_source : da7c3919a2ce66fc2fa9e8cf09f826a2e463d1b3
2017-08-11 18:30:49 +08:00
Mike Conley
a48193a566 Bug 1385453 - Disable tab warming in browser_bug343515.js test. r=billm
MozReview-Commit-ID: 9DOv9drNi9n

--HG--
extra : rebase_source : f7927107e5374404f2043550e0cd1c9ee46f5991
2017-08-23 16:43:55 -04:00
Henry Chang
9e499caed6 Bug 1386391 - Poll to check if a document has loaded rather than a definite timeout. r=smaug
MozReview-Commit-ID: B293QZe3LIz

--HG--
extra : rebase_source : ae336c328b48799a3a952f8d14cb8532fc179a58
extra : source : ee4a89243a26456b495737d889402619d3e186cc
2017-08-14 10:34:04 +08:00
Christoph Kerschbaumer
c9a21fe70b Bug 1385981 - Convert docshell/test/navigation/test_sessionhistory.html to comply with new data: URI inheritance model. r=smaug 2017-08-01 10:59:05 +02:00
Boris Zbarsky
8fd50f23d4 Bug 1379762 part 2. Use a more reliable test to figure out when we can skip firing onload in nsDocumentViewer::LoadComplete. r=smaug
Unfortunately, GetRestoringDocument can be false by the time we reach
LoadComplete, if part of the restoration process managed to set up and then
remove onload blockers.  If that happens, we still don't want to fire a load
event for a document that has already has one fired.

Note that we could also use a boolean on the document to record whether we've
fired a load event, as long as we were careful to unset it when the readyState
transitions backwards from COMPLETE (e.g. document.open).  It's not clear which
approach is more robust.
2017-07-17 23:21:41 -04:00
Boris Zbarsky
24a1bc48da Bug 1379762 part 1. Don't call MediaFeaturesChanged if our override device pixel ratio is set to its current value. r=dbaron 2017-07-17 23:21:41 -04:00
Yoshi Huang
71b8c7686e Bug 1377492 - fix mochitest-1 failure in docshell when data: URI is a unique origin. r=smaug
When we turn on the pref security.data_uri.unique_opaque_origin to make
data URI is unique origin, the following tests will fail because now
data document is treated as cross origin, so we replace data URIs with
seperate files, hence it will still in the same origin.
2017-07-12 10:35:54 +08:00
Yoshi Huang
c6b138004a Bug 1376592 - rewrite test_triggeringprincipal_window_open.html. r=ckerschb
See the test in
http://searchfox.org/mozilla-central/rev/fdb811340ac4e6b93703d72ee99217f3b1d250ac/docshell/test/navigation/test_triggeringprincipal_window_open.html#59

If we turn on the pref, dataWin.onload won't be called as now dataWin is
cross origin, so we change it to use postMessage instead.
2017-06-30 11:06:17 -07:00
Florian Quèze
66f6d259bc Bug 1374282 - script generated patch to remove Task.jsm calls, r=Mossop. 2017-06-22 12:51:42 +02:00
Christoph Kerschbaumer
e4f38c8d7c Bug 1362993 - Rewrite gBrowser.addTab() to use BrowserTestUtils.addTab(). r=florian 2017-05-15 21:49:50 +02:00
Carsten "Tomcat" Book
3e0a5441c6 Merge mozilla-central to mozilla-inbound 2017-03-17 14:55:15 +01:00
Kris Maglione
9e1cbea297 Bug 1333990: Part 2b - Don't enable editor until layout has started. r=ehsan
In order to support asynchronous loading of extension content scripts, we need
to be able to exit the HTML parser flush loop immediately after inserting the
document element. Normally this doesn't cause problems, but when we enter edit
mode with an empty element selected, the editor inserts a <br> node, and a
<br> node at the start of the <html> element causes issues.

These changes solve that issue by putting off entering editor mode until we
begin laying out the document.

MozReview-Commit-ID: H2ksNz0jRxs

--HG--
extra : rebase_source : 26e0d254744363f5bd60f3b4f4df7b51c3dc446f
2017-03-14 21:22:06 -07:00
Brad Werth
983df24b1c Bug 1151421 Part 3: Update tests of pageYOffset/scrollY to round off when checking expected results. r=smaug
MozReview-Commit-ID: JDS5l06FAaf

--HG--
extra : rebase_source : c7fa999490b04e591f12b3fe123d6409811f9bfe
2017-03-16 12:05:56 -07:00
Florian Quèze
9d62681259 Bug 1345253 - Use element.firstChild.remove() instead of element.removeChild(element.firstChild), r=jaws. 2017-03-08 10:17:52 +01:00
Frederik Braun
1f33988252 Bug 1337186 - rm trailing whitespaces from navigation/test_bug386782 r=smaug
MozReview-Commit-ID: 3MLyDfWrE6X

--HG--
extra : rebase_source : fe574541057275706eb4c52e2e6522342e8ec4d4
2017-02-15 11:39:01 +01:00
Frederik Braun
f3063f9162 Bug 1337186 - rm data: from navigation/test_bug386782 r=smaug
MozReview-Commit-ID: GSBZaRvuVNg

--HG--
extra : rebase_source : f739a99b7e12d09e5ef7b27d6b26edea43ae8eeb
2017-02-15 11:38:32 +01:00
Geoff Brown
a0613e7f32 Bug 874423 - Skip test_bug430723.html on OSX/Win opt. r=me,a=test-only 2017-01-24 14:49:05 -05:00
Florian Quèze
0e0865f4fc 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
Samael Wang
e9ecfaecc0 Bug 1326251 - Part 2: Add test case. r=smaug
MozReview-Commit-ID: 5YfIoH1f4fD

--HG--
extra : rebase_source : 9e60560cfefc8129af78953f744e0f7dc917fe03
2017-01-24 14:58:04 +08:00
Christoph Kerschbaumer
dd581118f0 Bug 1329288 - Test ContentPolicy blocks opening a new window. r=smaug 2017-01-22 17:42:42 +01:00
Sebastian Hengst
040a162daf Backed out changeset 828efd8ce683 (bug 1329288) 2017-01-22 13:09:53 +01:00
Christoph Kerschbaumer
5b0e184329 Bug 1329288 - Test ContentPolicy blocks opening a new window. r=smaug 2017-01-22 07:30:10 +01:00
Florian Quèze
85611a7b6d Bug 1331081 - script generated patch to omit addEventListener/removeEventListener's third parameter when it's false, r=jaws.
--HG--
extra : rebase_source : a22344ee1569f58f1f0a01017bfe0d46a6a14602
2017-01-17 11:50:25 +01:00
Sebastian Hengst
855e7a17e9 Bug 1310297 - Remove test annotations using b2g, mulet or gonk: docshell. r=RyanVM
MozReview-Commit-ID: BI6jc9bsXCE

--HG--
extra : rebase_source : 1127a829ff222a40b7b3358507c7ce3afe81ecea
2016-11-05 11:29:14 +01:00
Samael Wang
104fe2c997 Bug 1300461 - UpdateIndex on LOAD_NORMAL_REPLACE, ReplaceEntry at requestedIndex when available. r=smaug
--HG--
extra : rebase_source : 9bb3c7488a1785ee5c4106b8e024555f31b3220c
2016-09-30 11:55:10 +08:00
Christoph Kerschbaumer
f3823e7b2d Bug 1289382 - Test TriggeringPrincipal where one iframe navigates another iframe through window.open(). r=smaug 2016-08-02 14:42:34 -07:00
Christoph Kerschbaumer
df69556f81 Bug 1289382 - Test TriggeringPrincipal where parent navigates iframe through window.open. r=smaug 2016-08-02 14:40:35 -07:00
Christoph Kerschbaumer
68d0afbedc Bug 1289818 - Test TriggeringPrincipal for a simple window.open(). r=smaug 2016-08-02 14:37:47 -07:00
Christoph Kerschbaumer
670eb81ce7 Bug 1181370 - Test that triggeringPrincipal(owner) and referrer are identical for (sub) iframe navigations. r=bz 2016-07-26 12:50:40 +02:00
Mike Conley
0c3578df60 Bug 1276738 - Tag a bunch of tests that exercise opening windows with openwindow. r=me
There are a series of tests strewn about the tree that seem to exercise window
opening in one form or another, so I thought I'd put them under a tag.

MozReview-Commit-ID: 74JwLUTzaMU

--HG--
extra : rebase_source : 87439bacd9643ab63d015f58f44af2f8a74675a0
extra : source : 9d903a6a12aa7182252ec3e220c89b569c14e11b
2016-04-29 14:29:03 -04:00
Carsten "Tomcat" Book
a91653581d Backed out changeset 9d903a6a12aa (bug 1276738) for test failures in test_blank_named_window.html on a CLOSED TREE
--HG--
extra : rebase_source : cd1218144d092a62764b014cffb6b0a92b5f9141
2016-06-02 08:13:16 +02:00
Mike Conley
0d5fa55d26 Bug 1276738 - Tag a bunch of tests that exercise opening windows with openwindow. r=me
There are a series of tests strewn about the tree that seem to exercise window
opening in one form or another, so I thought I'd put them under a tag.

MozReview-Commit-ID: 74JwLUTzaMU

--HG--
extra : rebase_source : 0c92084914ffe44a781f034b2416e17905656607
2016-04-29 14:29:03 -04:00
Ryan VanderMeulen
1b64a90f42 Bug 1263213 - Disable test_reserved.html on debug e10s for frequent failures.
--HG--
extra : histedit_source : d5849d0cb56b64a6e94478a9187319c25be62078
2016-04-25 21:45:46 -04:00
Ryan VanderMeulen
e22a2d1d81 No bug - Re-enable various tests on Windows debug e10s that no longer fail.
--HG--
extra : histedit_source : 37d53b3f1958a608e96d34799e3ff123e901aed1
2016-04-15 13:26:01 -04:00
Geoff Brown
29977660c0 Bug 1251013 - Update android_version annotations in test manifests - mochitest; r=jmaher 2016-03-17 10:00:48 -06:00
Mike de Boer
2f562a286b Bug 1241930: Part 4 - convert all assertion methods used inside content tasks to the Assert.* family in docshell tests. r=mconley 2016-03-04 14:32:29 +01:00
Olli Pettay
9b0e1b6a77 Bug 947755, try to avoid use of setTimeout when there is an event to use, r=khuey 2016-02-13 03:40:01 +02:00
Blake Kaplan
7fc76b31cd Bug 1239122 - Make docshell browser-chrome tests e10s compatible. r=billm
--HG--
extra : rebase_source : 6f67eb2121bc0bd4829e2784f1a6192e84b09152
2016-01-20 14:14:00 +01:00
Olli Pettay
fb35bc42f0 Bug 1237075 - Navigating from 'manual' to 'auto' session history entry should scroll the page, r=jst
--HG--
extra : rebase_source : c6d901084edf1b17e21c44515a0483c7fbcc77dd
2016-01-06 04:03:42 +02:00
Jonathan Griffin
59f626fe96 Bug 1232780 - Disable mochitests which fail on e10s so we can get that suite running, a=test-only 2016-01-05 12:02:47 -08:00
Olli Pettay
2b2b2cc690 Bug 1155730, implement History.scrollRestoration r=jst 2015-12-26 12:59:09 +02:00
Dão Gottwald
3989963e64 Bug 1234520 - Disable test_bug344861.html, test_bug369370.html, test_bug741266.html on Windows 2015-12-22 13:08:39 +01:00
Olli Pettay
9a9ce1ed03 Bug 1003100 - pushState() in iframe fails when reloading with CTRL+F5, r=bz 2015-10-16 20:05:54 +03:00
Blake Kaplan
69b300592b Bug 1197378 - Make docshell tests pass in e10s. r=billm 2015-08-21 16:21:23 -07:00