Граф коммитов

716 Коммитов

Автор SHA1 Сообщение Дата
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
Junior Hsu ab6f1793a2 Bug 1373198 - Part 8: disable rcwn for dom mochitest tests which require deterministic cache behavior, r=smaug 2017-07-11 20:11:00 +02:00
Junior Hsu daf1b50996 Bug 1373198 - Part 3-1: disable rcwn for dom mochitest tests which require deterministic cache behavior, r=bz 2017-07-11 02:04:00 +02: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 2924991bf6 Bug 1368456 - remove Promise.jsm imports in tests, r=mconley. 2017-06-23 11:25:52 +02: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
Geoff Brown c353084858 Bug 1333702 - Allow assertion in test_bug385434.html; r=jmaher
Intermittent assertions observed for several months.
2017-06-02 08:46:06 -06:00
Ben Kelly e89c30f6c4 Bug 1363829 P9 Make docshell chrome tests wait for next paint to avoid races. r=smaug 2017-05-31 17:13:19 -07:00
Geoff Brown 061c806f3d Bug 1300351 - Fix non-standard manifest annotation; r=me,test-only
Just introduced this - did not put spaces in the right place.
2017-05-15 16:17:02 -06:00
Geoff Brown 0f0c36efe3 Bug 1300351 - Disable browser_onbeforeunload_navigation.js on non-debug windows; r=jmaher 2017-05-15 16:02:02 -06:00
Christoph Kerschbaumer e4f38c8d7c Bug 1362993 - Rewrite gBrowser.addTab() to use BrowserTestUtils.addTab(). r=florian 2017-05-15 21:49:50 +02:00
Christoph Kerschbaumer 8972930163 Bug 1363687 - Have gBrowser.loadOneTab() provide a valid triggeringPrincipal. r=gijs 2017-05-11 08:43:54 +02:00
Wes Kocher 1b5ad2c128 Merge inbound to central, a=merge
MozReview-Commit-ID: DfRZi0gKjit
2017-05-10 16:48:03 -07:00
Gijs Kruitbosch faf81a4714 Bug 1087380 - avoid alternate (www....com) URI fixup for localhost and items with ports, r=bz
MozReview-Commit-ID: HB9SxRSWnz

--HG--
extra : rebase_source : 99a9708588b277e31c8082b9579371609fc658d1
2017-05-06 19:59:24 +01:00
Christoph Kerschbaumer ebc12ce415 Bug 1359204 - Test view-source can open link is not blocked by security policies. r=gijs 2017-05-10 18:43:22 +02:00
Samael Wang d158894b17 Bug 1347823 - Part 3: Add a test case. r=smaug
MozReview-Commit-ID: 9zwD0m1tknN

--HG--
extra : rebase_source : e98798b8d224596468c096ef8b69c7c67e6241ac
2017-04-28 17:01:48 +08:00
Mike Conley a6486de489 Bug 1336763 - Wait for the browser to say it can go back before going back in browser_grouped_shistory_dead_navigate.js test. r=mystor
This test was accidentally taking advantage of the fact that closing a tab will result
in a nested event loop while waiting for the permitUnload messages to be sent back and
forth from the content process. This meant that the message that tells the parent that
the browser (which is having its history set) can now go back had a chance to be received
by the parent.

With the patches in bug 1336763, we're no longer spinning the event loop if the closing
tab doesn't have a beforeunload event handler in it, so we need to wait for the browser
to report that it can go back before actually sending it back in order to avoid a
test failure.

MozReview-Commit-ID: Lpl55iErrvf

--HG--
extra : rebase_source : 87b2d6a0fb448f729b82860de9d17c0db26097e7
2017-04-27 15:07:55 -04:00
Florian Queze 37ff4fc7cc Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Sebastian Hengst a07223d699 Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout 2017-04-14 23:39:22 +02:00
Florian Queze 95d4d20c17 Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Dan Banner cdf987089d Bug 1107904 - Remove packed.js and references to it as it is unused. r=standard8
MozReview-Commit-ID: K5TLF92pHq4

--HG--
extra : rebase_source : 295bf325a07fa8ec4c55a8babf5418588308dca6
2017-04-12 11:10:00 +01:00
Joel Maher 42a14db555 Bug 1350496 - add BUG_COMPONENT to docshell/* files. r=overholt
MozReview-Commit-ID: LpBfQrwEUS7
2017-04-09 05:43:52 -04:00
Christoph Kerschbaumer 78d8448ba5 Bug 1352778 - Do not reset triggeringPrincipal but only principalToInherit within loadInfo when forced to. r=gijs 2017-04-03 20:06:53 +02:00
Maxim Breev f982515e79 Add a new flag to nsIWebProgressListener for redirects (bug 1342989). r=smaug
MozReview-Commit-ID: 5q29n6d3Iz8
2017-04-01 20:07:47 +03:00
Valentin Gosu e0f474ede9 Bug 1326175 - Stop preserving empty passwords in URLs r=mcmanus
MozReview-Commit-ID: 7wdZSJmpErF

--HG--
extra : rebase_source : 100061a5c1921f1a10cf339207548aceb3afbe49
2017-03-27 23:56:28 +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
Blake Kaplan 3a0ce09963 Bug 1346286 - Remove CPOWs from browser_bug554155.js. r=Gijs
MozReview-Commit-ID: IrvBw8LNt3B

--HG--
extra : rebase_source : ad7d508c1bbb071a6a937fbe633ce71b22cdd7c9
2017-03-09 15:52:25 -08: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
Brad Werth b1269f11fa Bug 1151421 Part 2: Add test of fractional scroll position properties. r=smaug
MozReview-Commit-ID: 4a8eQeJz7fV

--HG--
extra : rebase_source : 8074ec268965b6ccd53140e581d07b10233c13f1
2017-03-14 17:31:22 -07:00
Sebastian Hengst 327f200d1e Backed out changeset a84ec98ccaab (bug 1151421) 2017-03-14 18:45:06 +01:00
Brad Werth 8a94c7de5f Bug 1151421 Part 2: Add test of fractional scroll position properties. r=smaug
MozReview-Commit-ID: 4a8eQeJz7fV

--HG--
extra : rebase_source : 8d39a1dd41164610bb86c3340dd7fbe1a9a54857
2017-03-13 19:12:09 -07:00
Valentin Gosu 5847af980b Bug 1324243 - Normalize IPv6 r=manishearth
MozReview-Commit-ID: 1UFIdeWrz1E

--HG--
extra : rebase_source : cb7e44b0afe06426e3268e80d94a2f59af633b9b
2017-03-09 00:55:05 +01: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
Christoph Kerschbaumer c1f499b304 Bug 1341754: Test SetURI in Location passes triggeringPrincipal. r=smaug 2017-03-07 12:50:47 +01:00
Christoph Kerschbaumer ba60c4b63d Bug 1341589 - Test TriggeringPrincipal on history entry for view-source loads. r=gijs 2017-03-02 17:45:24 +01:00
Masatoshi Kimura 7be7b11a1c Bug 1342144 - Remove version parameter from the type attribute of script elements. r=jmaher
This patch is generated by the following sed script:
find . ! -wholename '*/.hg*' -type f \( -iname '*.html' -o -iname '*.xhtml' -o -iname '*.xul' -o -iname '*.js' \) -exec sed -i -e 's/\(\(text\|application\)\/javascript\);version=1.[0-9]/\1/g' {} \;

MozReview-Commit-ID: AzhtdwJwVNg

--HG--
extra : rebase_source : e8f90249454c0779d926f87777f457352961748d
2017-02-23 06:10:07 +09: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
Tooru Fujisawa ac2db69fbf Bug 1338250 - Remove remaining legacy generator from docshell/test/. r=smaug 2017-02-11 01:53:23 +09:00
Valentin Gosu fd0c022031 Bug 1275746 - Fix tests that assume a HTTP url without a hostname is valid r=bz,MattN,jdm,markh
MozReview-Commit-ID: DzRenakrcAG
2016-07-07 16:20:47 +03: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
Gijs Kruitbosch 8faf5c08a8 Bug 1333164 - fix invalid references to mochitest stylesheet, r=erahm
MozReview-Commit-ID: 1Xxt72jYdm7

--HG--
extra : rebase_source : 15d854ffd6a142687fe5232149a0e370f1c058c2
2017-01-24 14:24:04 +00: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 0ff3acc32c Bug 1326251 - Part 3: Fix broken test case. r=smaug
MozReview-Commit-ID: 9KbKIHbbbmX

--HG--
extra : rebase_source : a2cddea1890d536d5c8a4a80b8fbc626252deb2b
2017-01-18 18:09:54 +08: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
Gabor Krizsanits 216527edfc Bug 1303113 - Turn e10s-multi on in Nightly. r=me 2017-01-23 14:15:30 +01:00
Christoph Kerschbaumer dd581118f0 Bug 1329288 - Test ContentPolicy blocks opening a new window. r=smaug 2017-01-22 17:42:42 +01:00