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

17349 Коммитов

Автор SHA1 Сообщение Дата
Narcis Beleuzu b7b79b2538 Backed out 3 changesets (bug 1488973) for causing TV failures on browser_resource_uri.js
Backed out changeset 6eab8a1b17ce (bug 1488973)
Backed out changeset c06b2c594294 (bug 1488973)
Backed out changeset 819df51e3083 (bug 1488973)
2018-10-24 10:49:10 +03:00
Zibi Braniecki 1b21b22d57 Bug 1488973: Wrap privileged promises in a promise for the document we`re returning to. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D7961

--HG--
extra : moz-landing-system : lando
2018-10-23 18:59:06 +00:00
arthur.iakab 0d669cb499 Merge inbound to mozilla-central a=merge 2018-10-24 07:15:44 +03:00
Noemi Erli 06a8cd8e3c Backed out changeset bee1c344cb47 (bug 1491909) for failures in browser/components/extensions/test/xpcshell/test_ext_geckoProfiler_control.js 2018-10-24 04:23:13 +03:00
Denis Palmeiro fc930ad16f Bug 1491909 - Add an AllocPolicy to mozilla::JSONWriter r=jwalden,mstange
JSONWriter currently calls new and delete indirectly through mozilla::MakeUnique to allocate a buffer.  Becuase of this, the methods of this class cannot be invoked within Spidermonkey due to https://searchfox.org/mozilla-central/source/config/check_vanilla_allocations.py#6-14.  Therefore, JSONWriter needs an AllocPolicy template parameter so that the allocation and deallocation routines can be changed to match the JS AllocPolicy when invoked within SpiderMonkey.

Differential Revision: https://phabricator.services.mozilla.com/D7279

--HG--
extra : moz-landing-system : lando
2018-10-23 20:46:31 +00:00
Ehsan Akhgari e6c5cd6e52 Bug 1501404 - Part 1: Remove the XPCOM registration for RequestContextService r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D9570

--HG--
extra : moz-landing-system : lando
2018-10-23 20:07:17 +00:00
Margareta Eliza Balazs 1a7c7d8823 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-10-23 12:31:53 +03:00
Andrea Marchesini 4439acd683 Bug 1498510 - Move nsICSPEventListener out of CSP object, r=ckerschb 2018-10-23 08:17:13 +02:00
Julian Descottes 73e3a16c0d Bug 1499096 - Use ok() with 2 arguments instead of 3 when possible;r=Standard8
Depends on D8740.
This changeset replaces calls to ok with 3 arguments to calls with 2 arguments
in situations where the switch does not have a significant impact on the assert.

Differential Revision: https://phabricator.services.mozilla.com/D8741

--HG--
extra : moz-landing-system : lando
2018-10-23 07:13:35 +00:00
Julian Descottes 52b85a20e2 Bug 1499096 - Update wrong usage of ok() with todo_is();r=Standard8
Depends on D8739.
This changeset updates calls to ok() that were most likely intended
for is(), but are not working as is.

Differential Revision: https://phabricator.services.mozilla.com/D8740

--HG--
extra : moz-landing-system : lando
2018-10-23 07:13:02 +00:00
Julian Descottes 2fcd6cb020 Bug 1499096 - Update tests using ok() to is();r=Standard8
This changeset updates all the test that were wrongly using ok() and wanted to
use is() AND for which the assert is still passing without any modification
required.

Differential Revision: https://phabricator.services.mozilla.com/D8739

--HG--
extra : moz-landing-system : lando
2018-10-23 07:12:23 +00:00
Daniel Varga 5255e1718f Backed out 6 changesets (bug 1489301) for Linting opt failure at /builds/worker/checkouts/gecko/dom/bindings/parser/WebIDL.py
Backed out changeset 1c0823540b44 (bug 1489301)
Backed out changeset 529524df76a6 (bug 1489301)
Backed out changeset f34bc8a40bec (bug 1489301)
Backed out changeset 168cf9cea716 (bug 1489301)
Backed out changeset 19ca10fa3772 (bug 1489301)
Backed out changeset ff8fb091198e (bug 1489301)
2018-10-23 03:49:00 +03:00
Nika Layzell 10810d7fe5 Bug 1500011 - Use CheckedInt more in CalculateBufferSizeForImage, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D9145
2018-10-22 20:37:06 -04:00
Nika Layzell b54aa3a790 Bug 1489301 - Part 3: Fix test expecting interfaces not exposed on System, r=bzbarsky
The `Window` interface is now exposed on system globals, so the check is now
invalid.

Differential Revision: https://phabricator.services.mozilla.com/D9403
2018-10-22 20:12:55 -04:00
Nika Layzell 0f6872435c Bug 1489301 - Part 2: Fix broken [Func] condition assuming Window object, r=bzbarsky
This condition unwraps the global to a window, and doesn't check before
dereferencing. This is no longer valid now that the corresponding interfaces
are exposed on BackstagePass.

Differential Revision: https://phabricator.services.mozilla.com/D9402
2018-10-22 20:12:55 -04:00
Boris Zbarsky c4ab99ad31 Bug 1500956 part 3. Fix our DOM pre-insertion checks to actually match the spec. r=smaug 2018-10-23 00:32:01 +02:00
Boris Zbarsky ba8cc6ef72 Bug 1500956 part 2. Change our EnsurePreInsertionValidity implementation to follow the spec more closely. r=smaug
This is basically putting in
https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity step 3
and moving step 4 to the right place in the order of steps.  This matters,
because step 3 throws a different exception from all the other steps.
2018-10-23 00:32:00 +02:00
Boris Zbarsky 5bb4f3a8ba Bug 1500956 part 1. Change IsAllowedAsChild to take an ErrorResult instead of returning a boolean. r=smaug
The spec algorithms have a step that throws NotFoundError in between steps that
throw HierarchyRequestError.  We can't really implement that with our current
setup.

This changeset does not change observable behavior.
2018-10-23 00:32:00 +02:00
Hiroyuki Ikezoe 9f4a9ec916 Bug 1494422 - Test cases for viewport calculation. r=botond
Depends on D8690

Differential Revision: https://phabricator.services.mozilla.com/D8691

--HG--
extra : moz-landing-system : lando
2018-10-19 22:11:24 +00:00
Hiroyuki Ikezoe 43d051c26b Bug 1494422 - Introduce extend-to-zoom and resolve width and height using it. r=botond
The relevant parts of the spec are:
 https://drafts.csswg.org/css-device-adapt/#resolve-extend-to-zoom
 https://drafts.csswg.org/css-device-adapt/#resolve-initial-width-height
 https://drafts.csswg.org/css-device-adapt/#resolve-width
 https://drafts.csswg.org/css-device-adapt/#resolve-height

This patch also introduces the parsing steps for width and height values in
viewport meta tag.
https://drafts.csswg.org/css-device-adapt/#width-and-height-properties

Differential Revision: https://phabricator.services.mozilla.com/D8690

--HG--
extra : moz-landing-system : lando
2018-10-19 04:19:21 +00:00
Jim Blandy 7937c2dd77 Bug 1499792: Remove unneeded 'ThrottledEventQueue' forward declarations. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D9008

--HG--
extra : moz-landing-system : lando
2018-10-18 12:20:14 +00:00
Narcis Beleuzu 5d00f78a13 Backed out changeset 8dd09fad1f35 (bug 1492648) for bc failures on browser_auto_close_window.js
--HG--
rename : docshell/base/nsDocShellLoadState.cpp => docshell/base/nsDocShellLoadInfo.cpp
rename : docshell/base/nsDocShellLoadState.h => docshell/base/nsDocShellLoadInfo.h
2018-10-19 10:11:33 +03:00
Brendan Dahl 934e37ef92 Bug 1486888 - Support XUL broadcasters in non-XUL documents. r=smaug
The majority of the XUL broadcaster logic is moved out of XULDocument and
into a separate class (XULBroadcastManager). The hookup points for when
listeners need to be created and listeners need to be notified is now
handled by the XULElement itself and nsDocument. To avoid any overhead,
the XULBroadcastManager is only ever created when a document uses a
listener.

The new approach does have the disadvantage that broadcasting can now only
work with XULElements, but going forward we'd like to discontinue this
feature and rely on MutationObservers to implement similar things.

One test had to be modified to use XUL elements instead of HTML elements
because of the reason noted above.

Differential Revision: https://phabricator.services.mozilla.com/D8888

--HG--
extra : moz-landing-system : lando
2018-10-19 01:22:46 +00:00
Kyle Machulis 0bb3246aa5 Bug 1492648 - Move from nsDocShellLoadInfo to nsDocShellLoadState r=bzbarsky,nika
Creates the nsDocShellLoadState object, which is basically
nsDocShellLoadInfo plus a few extra fields to make it usable as a
single argument to nsDocShell::LoadURI (and eventually
nsDocShell::InternalLoad).

Subframe history handling is a huge logic block in
nsDocShell::LoadURI, which is only used on history loads. This patch
also extracts the logic out into its own function to make the body of
LoadURI clearer.

Differential Revision: https://phabricator.services.mozilla.com/D6944

--HG--
rename : docshell/base/nsDocShellLoadInfo.cpp => docshell/base/nsDocShellLoadState.cpp
rename : docshell/base/nsDocShellLoadInfo.h => docshell/base/nsDocShellLoadState.h
extra : moz-landing-system : lando
2018-10-18 22:14:54 +00:00
Margareta Eliza Balazs c56977420d Merge inbound to mozilla-central. a=merge 2018-10-18 13:20:43 +03:00
Jim Blandy 9ac840bc86 Bug 1499473: Simplify TabGroup a bit, now that ThrottledEventQueue::Create is infallible. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D8915

--HG--
extra : moz-landing-system : lando
2018-10-17 20:41:59 +00:00
Ehsan Akhgari 7050737f77 Bug 1493978 - Recognize Mac newlines as well as Windows newlines in the string passed to alert/confirm r=qdot
Differential Revision: https://phabricator.services.mozilla.com/D8896

--HG--
extra : moz-landing-system : lando
2018-10-17 17:36:11 +00:00
Ehsan Akhgari 9d62cd6360 Bug 1498369 - Ensure the promise returned from Document.hasStorageAccess() will propagate user activation r=baku
Differential Revision: https://phabricator.services.mozilla.com/D9011

--HG--
extra : moz-landing-system : lando
2018-10-17 17:51:45 +00:00
Ehsan Akhgari 15457d3d7d Bug 1499549 - Ensure that we only check the corresponding Content Blocking exception list when testing whether a top-level document is on the Content Blocking allow list r=francois
Differential Revision: https://phabricator.services.mozilla.com/D8927

--HG--
extra : moz-landing-system : lando
2018-10-17 17:06:00 +00:00
Cameron McCormack 16007d2b66 Bug 1495984 - Make css::URLValue::IsLocalRef call into CssUrlData::is_fragment. r=emilio
This fixes the issue that we should no longer be looking for control characters.



MozReview-Commit-ID: 8k89Aheq3NY

Differential Revision: https://phabricator.services.mozilla.com/D8876

--HG--
extra : moz-landing-system : lando
2018-10-17 09:43:45 +00:00
Cameron McCormack a7510da8d0 Bug 1499408 - Part 2: Have css::URLValue get URLExtraData from its CssUrlData. r=emilio
MozReview-Commit-ID: IqZGzkHlSZD

Depends on D8874

Differential Revision: https://phabricator.services.mozilla.com/D8875

--HG--
extra : moz-landing-system : lando
2018-10-17 09:43:32 +00:00
Emilio Cobos Álvarez 54175e6475 Bug 1498860 - Add window.screenLeft / window.screenTop as aliases of screenX / screenY. r=smaug
Tests are at https://github.com/web-platform-tests/wpt/pull/13543.

Spec is waiting on those, but this matches all other browsers.

Differential Revision: https://phabricator.services.mozilla.com/D8917

--HG--
extra : moz-landing-system : lando
2018-10-17 02:20:15 +00:00
Nathan Froyd 4161aeea38 Bug 1499848 - make TimeoutExecutor timers slightly more efficient; r=baku
Instead of creating a timer and then setting the timer's target, we can
determine the timer's target and pass it in directly when the timer is
created.  This reordering of steps is slightly more efficient, since
SetTarget() is both a virtual call and requires locking, both of which
can be skipped if we know the target at timer creation time.
2018-10-17 19:57:36 -04:00
Andrea Marchesini ca0ca5deb7 Bug 1500733 - Remove canvas.imagebitmap_extensions.enabled preference, r=aosmond 2018-10-23 23:35:44 +02:00
Andrea Marchesini e4a7eded18 Bug 1500733 - Remove the support for BufferSource in createImageBitmap, r=aosmond 2018-10-23 23:35:43 +02:00
Nika Layzell 7367cf400e Bug 1489301 - Part 3: Fix test expecting interfaces not exposed on System, r=bzbarsky
The `Window` interface is now exposed on system globals, so the check is now
invalid.

Differential Revision: https://phabricator.services.mozilla.com/D9403
2018-10-23 16:03:51 -04:00
Nika Layzell 91cec0e775 Bug 1489301 - Part 2: Fix broken [Func] condition assuming Window object, r=bzbarsky
This condition unwraps the global to a window, and doesn't check before
dereferencing. This is no longer valid now that the corresponding interfaces
are exposed on BackstagePass.

Differential Revision: https://phabricator.services.mozilla.com/D9402
2018-10-23 16:03:51 -04:00
Steve Fink 003974e698 Bug 1499177 - Fix rooting hazard between return value and destructor in structured clone test function, r=perry
--HG--
extra : rebase_source : afc130aa00cb90ac0601ca9c8e1473eff5bcc316
2018-10-15 12:41:28 -07:00
Cosmin Sabou 884e6b7585 Merge mozilla-inbound to mozilla-central. a=merge 2018-10-16 19:24:57 +03:00
Gijs Kruitbosch 9048f58f8f Bug 1477669 - remove feed preview code and associated files/code, r=flod,mak,nika
Differential Revision: https://phabricator.services.mozilla.com/D8524

--HG--
extra : moz-landing-system : lando
2018-10-16 12:47:36 +00:00
Margareta Eliza Balazs 3d989d097f Merge inbound to mozilla-central. a=merge 2018-10-16 12:31:18 +03:00
Hiroyuki Ikezoe a7c14457fd Bug 1431601 - Implement "Resolve min-zoom and max-zoom values" in the spec. r=botond
https://drafts.csswg.org/css-device-adapt/#constraining-min-max-zoom

The test case in this commit fails without this change, width will be 8000 and
height will be 4800 respectively when it fails.

Depends on D8320

Differential Revision: https://phabricator.services.mozilla.com/D8321

--HG--
extra : moz-landing-system : lando
2018-10-15 23:53:44 +00:00
Hiroyuki Ikezoe 8527cd4c72 Bug 1431601 - Run meta viewport tests on Desktop. r=botond
Depends on D8319

Differential Revision: https://phabricator.services.mozilla.com/D8320

--HG--
extra : moz-landing-system : lando
2018-10-15 23:53:43 +00:00
Hiroyuki Ikezoe d513867baa Bug 1431601 - Rewrite test_meta_viewportX.html with add_task. r=botond
Depends on D8318

Differential Revision: https://phabricator.services.mozilla.com/D8319

--HG--
extra : moz-landing-system : lando
2018-10-15 23:53:43 +00:00
Hiroyuki Ikezoe c43cc6396c Bug 1431601 - Move getViewportInfo function into viewport_helpers.js. r=botond
Depends on D8317

Differential Revision: https://phabricator.services.mozilla.com/D8318

--HG--
extra : moz-landing-system : lando
2018-10-15 23:53:43 +00:00
Hiroyuki Ikezoe c874b7fb45 Bug 1431601 - Align boolean member in nsViewportInfo. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D8316

--HG--
extra : moz-landing-system : lando
2018-10-15 23:53:42 +00:00
Boris Zbarsky 5a0e236dba Bug 1497301 part 4. Simplify Location::CheckURL. r=bholley
The main change is to just use the principal bindings pass us to do our
CheckLoadURI check.  If we do that, we don't have to care about the current
JSContext.
2018-10-12 11:07:18 -04:00
Boris Zbarsky f99994ef07 Bug 1497301 part 3. Change a bunch of Location function signatures to take an ErrorResult. r=bholley
This way we can propagate errors out usefully.
2018-10-15 14:17:48 -04:00
Noemi Erli 014b37a409 Merge inbound to mozilla-central. a=merge 2018-10-16 01:20:08 +03:00
Ehsan Akhgari 0324774e90 Bug 1498720 - Ensure that we revoke a subframe's storage access when it is removed from the DOM r=baku
Differential Revision: https://phabricator.services.mozilla.com/D8615

--HG--
extra : moz-landing-system : lando
2018-10-15 10:37:11 +00:00