Commit Graph

182 Commits

Author SHA1 Message Date
Nika Layzell
3d4a532d9d Bug 1434768 - Part 3: Rewrite JS consumers of .sessionHistory, r=bz 2018-04-10 17:49:45 -04:00
Christoph Kerschbaumer
daddfac335 Bug 1439713 - Update tests relying on nsIContentPolicy. r=bz 2018-03-29 11:14:58 +02:00
Florian Quèze
c5f15a4700 Bug 1339461 - script-generated patch to convert foo.indexOf(...) == -1 to foo.includes(), r=Mossop. 2018-02-01 20:45:22 +01:00
Mike Conley
67c974fc50 Bug 1397426 - Stop disabling tab warming in browser_bug343515.js. r=billm
Tab warming was originally disabled in this test because it was accidentally
setting the DocShell to be active at an unexpected time.

Because tab warming no longer activates DocShells, we can revert this change,
though we also have to make it deal with the fact that switching tabs no longer
makes docShells become activate immediately.

MozReview-Commit-ID: K0fiA5AVfEm
2017-10-23 17:01:48 -04:00
Kartikaya Gupta
3c1a3e8f0e Bug 1334189 - Enable mochitest-plain for linux64-qr. r=jrmuizel
MozReview-Commit-ID: nbcWhDq5de
2017-12-13 18:38:39 -05:00
Bill McCloskey
142c9a9dbb Bug 1412456 - Test changes to no longer use interposition (r=felipe,bgrins,mrbkap)
MozReview-Commit-ID: 2nQPOSGTr1s
2017-12-07 12:55:24 -08:00
Andreea Pavel
26ac595cba Backed out 9 changesets (bug 1412456) for crashing talos g2 and unexpected network connections in browser-chrome's browser_searchEngine_behaviors.js r=backout a=backout on a CLOSED TREE
Backed out changeset 0c01a98f4fd5 (bug 1412456)
Backed out changeset 27077db47231 (bug 1412456)
Backed out changeset f35ec2a884f8 (bug 1412456)
Backed out changeset 602b30ac3c69 (bug 1412456)
Backed out changeset b1ff1050c589 (bug 1412456)
Backed out changeset f100d953f9eb (bug 1412456)
Backed out changeset d85af60fe259 (bug 1412456)
Backed out changeset 736f38486832 (bug 1412456)
Backed out changeset 13a637602dc2 (bug 1412456)
2017-12-07 12:20:21 +02:00
Bill McCloskey
427710d960 Bug 1412456 - Test changes to no longer use interposition (r=felipe,bgrins,mrbkap)
MozReview-Commit-ID: 2nQPOSGTr1s
2017-12-06 21:17:05 -08:00
Dorel Luca
81b4b85d01 Backed out 8 changesets (bug 1412456) for ESlint failure on browser_urlbarKeepStateAcrossTabSwitches.js:13:49 r=backout on a CLOSED TREE
Backed out changeset 0e88de036c55 (bug 1412456)
Backed out changeset 49b93f807db0 (bug 1412456)
Backed out changeset 039e980b7dc6 (bug 1412456)
Backed out changeset c7698410ddbd (bug 1412456)
Backed out changeset e56a1ba26b7c (bug 1412456)
Backed out changeset 0c4506e124ac (bug 1412456)
Backed out changeset a7aec2ce903b (bug 1412456)
Backed out changeset 3e9fb71f1e8e (bug 1412456)
2017-12-07 07:09:33 +02:00
Bill McCloskey
a0f07d3df7 Bug 1412456 - Test changes to no longer use interposition (r=felipe,bgrins,mrbkap)
MozReview-Commit-ID: 2nQPOSGTr1s
2017-12-06 20:46:58 -08:00
Mike Conley
310d1d5642 Backed out changeset e7a6fe9f9ce7 (bug 1397426) 2017-12-06 15:58:02 -05:00
Mike Conley
497d2a5b9f Bug 1397426 - Stop disabling tab warming in browser_bug343515.js. r=billm
Tab warming was originally disabled in this test because it was accidentally
setting the DocShell to be active at an unexpected time.

Because tab warming no longer activates DocShells, we can revert this change,
though we also have to make it deal with the fact that switching tabs no longer
makes docShells become activate immediately.

MozReview-Commit-ID: K0fiA5AVfEm
2017-10-23 17:01:48 -04:00
Bevis Tseng
c9ce1a04f7 Bug 1414136 - Fix test failures in session history relying on non-comformant Promise handling. r=sawang 2017-11-10 10:33:25 +08:00
Peter Van der Beken
a8401db6ec Bug 1383059 - Remove instanceof for supplemental interfaces. Part 1: add Window.isChromeWindow and switch |instanceof [nsIDOM]ChromeWindow| to use it instead. r=bz. 2017-10-06 13:47:27 +02:00
Samael Wang
4b7e285375 Bug 1364364 - Part 4: Add test case. r=smaug
MozReview-Commit-ID: BozQDPdx0MI
2017-08-30 17:00:12 +08:00
Ryan VanderMeulen
e07311eba2 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)
2017-09-12 13:21:17 -04:00
Samael Wang
b133642478 Bug 1364364 - Part 4: Add test case. r=smaug
MozReview-Commit-ID: BozQDPdx0MI
2017-08-30 17:00:12 +08:00
Christoph Kerschbaumer
529db3ab92 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
35ed48783a 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
2017-08-21 18:28:53 +08:00
Samael Wang
7c1070a2c1 Bug 1375833 - Part 3: Add test case. r=smaug
MozReview-Commit-ID: L86sMEzfU4h
2017-08-11 18:30:49 +08:00
Mike Conley
e3edb3e84f Bug 1385453 - Disable tab warming in browser_bug343515.js test. r=billm
MozReview-Commit-ID: 9DOv9drNi9n
2017-08-23 16:43:55 -04:00
Henry Chang
b3e9c888e8 Bug 1386391 - Poll to check if a document has loaded rather than a definite timeout. r=smaug
MozReview-Commit-ID: B293QZe3LIz
2017-08-14 10:34:04 +08:00
Christoph Kerschbaumer
d3eaab7d60 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
e09114d150 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
593182b1c6 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
69aa4d72fe 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
eae0e4a27e 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
d0406d270c Bug 1374282 - script generated patch to remove Task.jsm calls, r=Mossop. 2017-06-22 12:51:42 +02:00
Christoph Kerschbaumer
5452a95b49 Bug 1362993 - Rewrite gBrowser.addTab() to use BrowserTestUtils.addTab(). r=florian 2017-05-15 21:49:50 +02:00
Carsten "Tomcat" Book
dfd22b262a Merge mozilla-central to mozilla-inbound 2017-03-17 14:55:15 +01:00
Kris Maglione
e029920775 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
2017-03-14 21:22:06 -07:00
Brad Werth
f7233d46e0 Bug 1151421 Part 3: Update tests of pageYOffset/scrollY to round off when checking expected results. r=smaug
MozReview-Commit-ID: JDS5l06FAaf
2017-03-16 12:05:56 -07:00
Florian Quèze
b15de4893d Bug 1345253 - Use element.firstChild.remove() instead of element.removeChild(element.firstChild), r=jaws. 2017-03-08 10:17:52 +01:00
Frederik Braun
9bb821fea0 Bug 1337186 - rm trailing whitespaces from navigation/test_bug386782 r=smaug
MozReview-Commit-ID: 3MLyDfWrE6X
2017-02-15 11:39:01 +01:00
Frederik Braun
d7982e6333 Bug 1337186 - rm data: from navigation/test_bug386782 r=smaug
MozReview-Commit-ID: GSBZaRvuVNg
2017-02-15 11:38:32 +01:00
Geoff Brown
53072e919b 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
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
Samael Wang
d9154d0284 Bug 1326251 - Part 2: Add test case. r=smaug
MozReview-Commit-ID: 5YfIoH1f4fD
2017-01-24 14:58:04 +08:00
Christoph Kerschbaumer
1ab2797cdf Bug 1329288 - Test ContentPolicy blocks opening a new window. r=smaug 2017-01-22 17:42:42 +01:00
Sebastian Hengst
8900069c91 Backed out changeset 828efd8ce683 (bug 1329288) 2017-01-22 13:09:53 +01:00
Christoph Kerschbaumer
dd146d3165 Bug 1329288 - Test ContentPolicy blocks opening a new window. r=smaug 2017-01-22 07:30:10 +01:00
Florian Quèze
63de711857 Bug 1331081 - script generated patch to omit addEventListener/removeEventListener's third parameter when it's false, r=jaws. 2017-01-17 11:50:25 +01:00
Sebastian Hengst
c64e9ca31d Bug 1310297 - Remove test annotations using b2g, mulet or gonk: docshell. r=RyanVM
MozReview-Commit-ID: BI6jc9bsXCE
2016-11-05 11:29:14 +01:00
Samael Wang
36ba32aa9c Bug 1300461 - UpdateIndex on LOAD_NORMAL_REPLACE, ReplaceEntry at requestedIndex when available. r=smaug 2016-09-30 11:55:10 +08:00
Christoph Kerschbaumer
f4e3c21b56 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
8186f23ccb Bug 1289382 - Test TriggeringPrincipal where parent navigates iframe through window.open. r=smaug 2016-08-02 14:40:35 -07:00
Christoph Kerschbaumer
b9f432231c Bug 1289818 - Test TriggeringPrincipal for a simple window.open(). r=smaug 2016-08-02 14:37:47 -07:00
Christoph Kerschbaumer
ee83a7c41c 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
cb0ddc9b0e 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
2016-04-29 14:29:03 -04:00
Carsten "Tomcat" Book
2a562a6a7f Backed out changeset 9d903a6a12aa (bug 1276738) for test failures in test_blank_named_window.html on a CLOSED TREE 2016-06-02 08:13:16 +02:00