Commit Graph

576786 Commits

Author SHA1 Message Date
Cameron McCormack
075f0e5256 Bug 1427419 - Part 20: Move inIDOMUtils.getBindingURLs to InspectorUtils. r=bz
This is unused in mozilla-central but still used by comm-central.

The only consumer of this API really just wants the URL strings, so
we return a sequence<DOMString> instead of an array of nsIURI objects.

MozReview-Commit-ID: ITcEe42shHw
2018-01-11 12:38:01 +08:00
Cameron McCormack
45c9e50a65 Bug 1427419 - Part 19: Move inIDOMUtils.getChildrenForNode to InspectorUtils. r=bz
MozReview-Commit-ID: 5AznAfpZIuN
2018-01-11 12:38:00 +08:00
Cameron McCormack
41ac7e60e0 Bug 1427419 - Part 18: Move inIDOMUtils.getParentForNode to InspectorUtils. r=bz
MozReview-Commit-ID: 5GxNmyVHf8u
2018-01-11 12:38:00 +08:00
Cameron McCormack
5a4d54c425 Bug 1427419 - Part 17: Move inIDOMUtils.isIgnorableWhitespace to InspectorUtils. r=bz
This is still being used by the old DOM Inspector in comm-central.

MozReview-Commit-ID: B8fJzjUUewj
2018-01-11 12:38:00 +08:00
Cameron McCormack
0c66b23322 Bug 1427419 - Part 16: Move inIDOMUtils.cssPropertySupportsType to InspectorUtils. r=bz
MozReview-Commit-ID: AfNA6g5lTec
2018-01-11 12:38:00 +08:00
Cameron McCormack
060b4a5e4f Bug 1427419 - Part 15: Move inIDOMUtils.cssPropertyIsShorthand to InspectorUtils. r=bz
MozReview-Commit-ID: LphGIXzOlDB
2018-01-11 12:38:00 +08:00
Cameron McCormack
2212f2845a Bug 1427419 - Part 14: Move inIDOMUtils.getSubpropertiesForCSSProperty to InspectorUtils. r=bz
MozReview-Commit-ID: 8Nyt0V2NUmq
2018-01-11 12:38:00 +08:00
Cameron McCormack
0ef012043a Bug 1427419 - Part 13: Move inIDOMUtils.isValidCSSColor to InspectorUtils. r=bz
MozReview-Commit-ID: DNRfmbDucdT
2018-01-11 12:38:00 +08:00
Cameron McCormack
664c1757c0 Bug 1427419 - Part 12: Move inIDOMUtils.colorToRGBA to InspectorUtils. r=bz
MozReview-Commit-ID: 9EAdNibvZ4
2018-01-11 12:38:00 +08:00
Cameron McCormack
2eef6d3612 Bug 1427419 - Part 11: Move inIDOMUtils.rgbToColorName to InspectorUtils. r=bz
MozReview-Commit-ID: LZcGUEO4Ois
2018-01-11 12:38:00 +08:00
Cameron McCormack
6e85270511 Bug 1427419 - Part 10: Remove unused nsIDOMUtils.colorNameToRGB. r=bz
MozReview-Commit-ID: 962UjCZqX6I
2018-01-11 12:38:00 +08:00
Cameron McCormack
f5ef2d0a72 Bug 1427419 - Part 9: Move inIDOMUtils.getCSSValuesForProperty to InspectorUtils. r=bz
MozReview-Commit-ID: D3jf42KI7kO
2018-01-11 12:38:00 +08:00
Cameron McCormack
1a8d3bfd54 Bug 1427419 - Part 8: Move inIDOMUtils.getCSSPropertyNames to InspectorUtils. r=bz
While we're at it, move to a more friendly API. EXCLUDE_SHORTHANDS is
currently unused so we drop that.

MozReview-Commit-ID: H64ou63We4a
2018-01-11 12:37:59 +08:00
Cameron McCormack
c81f633513 Bug 1427419 - Part 7: Move inIDOMUtils.isInheritedProperty to InspectorUtils. r=bz
MozReview-Commit-ID: AwILrjGiJ3L
2018-01-11 12:37:59 +08:00
Cameron McCormack
710da9d3e3 Bug 1427419 - Part 6: Move selector methods from inIDOMUtils to InspectorUtils. r=bz
MozReview-Commit-ID: 8FKRPeIijkC
2018-01-11 12:37:59 +08:00
Cameron McCormack
fc4a76fb7f Bug 1427419 - Part 5: Move nsIDOMUtils.getCSSLexer to InspectorUtils. r=bz
MozReview-Commit-ID: 4UGiS3I2V6B
2018-01-11 12:37:59 +08:00
Cameron McCormack
7371ec9f08 Bug 1427419 - Part 4: Move rule line number methods from inIDOMUtils to InspectorUtils. r=bz
MozReview-Commit-ID: HUxWcMPzrSq
2018-01-11 12:37:59 +08:00
Cameron McCormack
abddba8b81 Bug 1427419 - Part 3: Move inIDOMUtils.getCSSStyleRules to InspectorUtils. r=bz
MozReview-Commit-ID: 3pcxsYhguOk
2018-01-11 12:37:59 +08:00
Cameron McCormack
04c11b322d Bug 1427419 - Part 2: Move nsIDOMUtils.getAllStyleSheets to InspectorUtils. r=bz
MozReview-Commit-ID: J6lIx4uvMlS
2018-01-11 12:37:59 +08:00
Cameron McCormack
563e7a0e4a Bug 1427419 - Part 1: Add an InspectorUtils chrome-only IDL namespace. r=bz,tromey
Also add a way to access it from SpecialPowers for tests and from
importGlobalProperties for system JS scopes.

MozReview-Commit-ID: IewEs0Gf2M9
2018-01-11 12:37:59 +08:00
Randell Jesup
c359f64e82 Bug 1429219: Ensure VP8 simulcast with temporal layers won't fail if there aren't enough bits r=drno 2018-01-10 20:41:09 -05:00
Randell Jesup
aa370f7694 Bug 1426449: set the correct number of temporal layers for screencasts r=drno 2018-01-10 20:41:03 -05:00
Kate McKinley
e97980a95e Bug 1424917 - Remove support for HSTS Priming. r=mayhemer, r=ckerschb
This patch removes support and tests for HSTS priming from the tree.
2018-01-10 11:07:00 -05:00
Ryan VanderMeulen
e876c969d0 Bug 1428087 - Annotate 366583-1.xul to allow for up to 1 assertion on Windows. a=test-only
--HG--
extra : rebase_source : e5f6885b319bbb9819e4325cac11b35901f94c10
2018-01-10 20:46:36 -05:00
Ryan VanderMeulen
32c01229f9 Bug 1426797 - Mark image-size.xul as random on Windows. a=test-only
--HG--
extra : rebase_source : 6a247228bc12ebfb112cb92845f6c2073de6a5fa
2018-01-10 20:46:36 -05:00
vincentliu
b059ffc41f Bug 1418999 - Update PipelineId to associate the latest ImageContainer. r=sotaro 2018-01-11 09:45:02 +08:00
arthur.iakab
5e902ff6cd Backed out changeset 28f876e75d47 (bug 1417680)for failing GTest
--HG--
extra : rebase_source : 2890c797a7cf05d6e82d84e64fd4cd5ed6ec5eb9
2018-01-11 02:56:49 +02:00
Andrew Sutherland
a0ec53afae Bug 1416879 - Part 6: Test cancellation of diverted client-intercepted streams. r=bkelly
This adds a test where we have a ServiceWorker return 2 different types
of streams that Firefox recognizes as downloads which are handled by
diversion of the channel to the parent.  The diverted downloads are
then cancelled and we verify that cancellation actually results in the
underlying connections being closed and/or the ServiceWorker notified.

Our 2 types of streams are:
1. A pass-through stream that is incrementally delivered through use of
   an .sjs file that delivers data using setInterval.
2. A SW-authored ReadableStream (which is not enabled by default, so we
   set a pref.)

Determining when the .sjs's stream is canceled is accomplished by
opening a second "monitor" connection that only completes when the
streaming connection is closed.

In all cases we differentiate between cancelation and timeouts firing.

--HG--
extra : rebase_source : 255ea1b97d632363d7465d6d116a8c37dcca85c3
extra : source : 840a6e04bcea7d87e362adf14a37b7c17e20f043
2018-01-04 18:38:43 -05:00
Andrew Sutherland
8244fa6b69 Bug 1416879 - Part 5: FetchStreamReader needs to cancel its reader when it encounters write errors. r=baku, f=bkelly
Currently, FetchStreamReader never signals to the JS stream code that
the reader has been closed.  This means that when a ServiceWorker
passes a ReadableStream to respondWith and the HTTP Channel gets
canceled, the JS code will keep generating the stream without ever
realizing the data's not going anywhere.  It's necessary to cancel
the reader.  Or do something like that, this seems to work!

--HG--
extra : rebase_source : 88952a917c48b9fa7e421f640b7fb57b15cf7d4d
extra : source : 994dc643a2ab62f03fef780a58971b476a4b6f4a
2018-01-04 18:09:32 -05:00
Andrew Sutherland
f3a816271e Bug 1416879 - Part 4: FetchDriver needs to propagate write failures. r=baku
In the scenario where a ServiceWorker returns a pass-through fetch via
`evt.respondWith(fetch("underlying"))`, in order for the "underlying"
HTTP channel to be canceled when the outer HTTP channel is canceled,
FetchDriver's OnDataAvailable method needs to return an error when
the output pipe experiences an error.

Unfortunately, the contract for ReadSegments is effectively that it
returns NS_OK regardless of what the rv of the write handler returned,
so relying on the returned rv is insufficient.  And because various
Write*() methods will all fast-path to returning NS_OK if a count of 0
is passed, it's necessary to infer a closed/broken pipe by noticing
that we tried to write more than 0 bytes of data but 0 bytes were
written.  (This is safe because the pipe we write into was created
by FetchDriver::OnStartRequest which explicitly creates an infinite
pipe, so it's not possible for the write to fail due to lack of space
in the pipe.)

--HG--
extra : rebase_source : 0a1f9f7a4c244934ff255a07e78608c8ea6fef0e
extra : source : 8e4fd74e7f5e69df7363bdb560f79dde347ce082
2018-01-04 18:04:55 -05:00
Andrew Sutherland
2da7a3c221 Bug 1416879 - Part 3: (Also Bug 1418795) SyntheticDiversionListener should handle !mIPCOpen. r=bkelly
The SyntheticDiversionListener needs to handle the case where the IPC
connection is gone.  This patch avoids calling Send* methods which will
crash the content process if the actor has already been destroyed.
Additionally, OnDataAvailable will return an error in such a case so
that the caller can properly handle the error rather than continuing to
attempt to send data to a listener that doesn't care.  This latter
change is an artifact of a previous hack attempt to fix a related
diversion issue that is probably not required for this stack, but makes
sense as a fix, so I've left it in.

--HG--
extra : rebase_source : 44ee7941be7619a8532c5194eca88fb0ca6323f7
extra : source : 5453b8a58f0c2c28dc7c407c531c266972bff423
2018-01-04 13:59:13 -05:00
Andrew Sutherland
6684613c61 Bug 1416879 - Part 2: Allow for diversion cancellation and trigger for intercepted channels. r=bkelly, r=mayhemer
The diversion mechanism never expected to be dealing with data sourced
from the content process, but that's exactly what happens with
ServiceWorker-intercepted channels with the current child-intercept
situation (which is being fixed).

In order to allow timely cancellation of diverted intercepted
channels, there needs to be a way to relay to the HttpChannelChild
that it needs to be canceled so that the synthesized pump can be
canceled and diversion can be marked as complete.  This patch adds
such a mechanism to ADivertableParentChannel and PHttpChannel for the
exclusive use of InterceptedHttpChannel and then uses it.

--HG--
extra : rebase_source : db71e927bd1837c6a67f6d56df52cfbb7294df73
extra : source : d156f6b687e1cd8717bf813ab1b944e87b67ed5d
2018-01-04 18:38:07 -05:00
Andrew Sutherland
1b42d677f3 Bug 1416879 - Part 1: DivertComplete should only be sent at OnStopRequest for synthesized responses. r=bkelly
Diversion for intercepted channels with a synthesized response is a
special case.  It is not appropriate to send DivertComplete when
mEventQ has been drained, because we are not dealing with the usual
mEventQ-enqueued OnDataAvailable payloads that had been received over
the network and sent down to the child.  In this case, all the data
originates in the child and does not go through mEventQ.  As such,
the correct place to send DivertComplete is at OnStopComplete for the
synthesized response.

--HG--
extra : rebase_source : a4e1593d38629173b829014a3c316ad156094580
extra : source : 714d3942fb10a96e60e14c475e24e640b9ddd8cc
2018-01-04 18:56:46 -05:00
Myk Melez
c38886f551 Bug 1428093 - remove unnecessary dialog-button-box padding; r=dao
MozReview-Commit-ID: JncFbnSIpIy
2018-01-11 10:43:54 -08:00
Myk Melez
ef991271e1 Bug 1429544 - remove obsolete rule that disables scrolling in pref subdialogs; r=dao
MozReview-Commit-ID: 8i4yID6YdLZ
2018-01-11 10:43:53 -08:00
Jon Coppeard
20b2d0162c Bug 1429535 - Split up ScriptLoader::ProcessScriptElement method r=baku 2018-01-11 12:05:26 +00:00
862ff35d21 Bug 1405824 - Add a RefCountedShmem type that supports manual cross-process reference counting. r=jrmuizel 2018-01-04 16:23:18 +00:00
Andrea Marchesini
58646af781 Bug 1430061 - Signal Proxy, in fetch(), doesn't have to be nullified in order to avoid race conditions, r=bkelly 2018-01-12 15:51:34 +01:00
Andrea Marchesini
88f737d012 Bug 1425440 - Get rid of GetChildAt_Deprecated in nsTypeAheadFind, r=catalinb 2018-01-12 15:33:14 +01:00
Andrea Marchesini
bdcf861cca Bug 1425440 - Get rid of GetChildAt_Deprecated in nsFrameSelection, r=catalinb 2018-01-12 15:33:14 +01:00
Andrea Marchesini
7e9322fba6 Bug 1425440 - Get rid of GetChildAt_Deprecated in selection, r=catalinb 2018-01-12 15:33:13 +01:00
Andrea Marchesini
43c8e4e21b Bug 1425440 - Get rid of GetChildAt_Deprecated in nsRange, r=catalinb 2018-01-12 15:33:13 +01:00
Rofael Aleezada
ccff779855 Bug 1427710 part 1 - Make TokenKind an enum class. r=jandem 2018-01-12 15:16:12 +01:00
Mike Hommey
f1dcc7b8db Bug 1427344 - Add Debian CRT objects to GCC. r=nfroyd
One of the last remaining differences when building Firefox on Debian
with all the changes we've done so far is that linking against the
system libc statically links some CRT objects. This causes massive
differences in the resulting binaries because of slight differences
in those objects (because they weren't compiled with the same compiler
and because they're not for the exact same glibc version)

In practice, their content difference don't cause any problem. If they
did, we wouldn't be able to run our builds on newer systems than those
we build them on. The only hypothetical risk would be to run on systems
with a glibc older than Debian 7's, but those already can't run Firefox
anyways (those systems don't have Gtk+3, which is a system requirement).

AFAICT, this is only an hypothetical problem anyways, even such systems
with Gtk+3 should be able to run those builds. Plus, this is a change
that will happen anyways when switching to Debian-based build images,
since they would be using the CRT objects from there. We're merely
making it happen earlier so that the differences from switching to
Debian-based build images are more tractable.

Note we only do this when building GCC on Debian, allowing to roll back
to CentOS-based toolchains by just switching back the toolchain jobs to
use the desktop-build docker image again.
2018-01-12 21:39:57 +09:00
Mike Hommey
e17b79e152 Bug 1427344 - Build GCC without --disable-initfini-array. r=nfroyd
When building on Debian (which we now are), this means we enable
.init_array/.fini_array.

When building on CentOS, this means no change. Which implies we could
roll back to CentOS-based toolchains by just switching back the
toolchain jobs to use the desktop-build docker image again.

This change causes massive differences in the resulting binaries because
of the offset differences, but practically speaking, there is no
difference. .init_array/.fini_array have been supported in glibc for 18
years.
2018-01-12 21:39:56 +09:00
Mike Hommey
1b4c9cdebd Bug 1427340 - Build toolchains on a Debian-based docker image. r=gps
... except libdmg-hfsplus. RedHat decided to patch libbz2 to have a
different soname, so a binary built on Debian can't run on
RedHat/CentOS. Ironically, a binary built on RedHat/CentOS can run
on Debian. While we could use some tricks to make libdmg-hfsplus built
on Debian work, at this point, it's not worth the effort. We can live
with libdmg-hfsplus being built on CentOS until the builds that use it
switch to Debian, which is imminent.

... and except mingw32-nsis. Sourceforce renewed their certificate last
week and somehow the corresponding CA is not yet recognized by the
ca-certificates in Debian wheezy (an update is underway but see below)

... and except wine, because it requires more 32-bits packages than can
be installed on the toolchain-build docker image. But all things
considered, the mingw32 builds don't need to be using the same docker
images as the linux builds, and they could be, like the android builds,
be based on a more recent build image. So the corresponding toolchains
can be built on a more recent version of Debian too.

Consequently, we keep all the mingw32 related toolchains on the
desktop-build image for now.
2018-01-12 21:31:10 +09:00
Mike Hommey
eb3cf6d41b Bug 1430030 - Enable parallelism when building wine, upx and fxc2. r=ted 2018-01-12 21:25:59 +09:00
Steve Pfister
a513316b3d Bug 1338497 - make the safebrowsing notification dismiss when navigating to other domains, r=gijs
This moves the Safe Browsing notification banner into its own object, makes it aware of the current base domain,
and adds a function that's called when the location changes to determine if it should dismiss or not.

MozReview-Commit-ID: 31JQ4dUyFb4

--HG--
extra : rebase_source : e6d6589b0eef2d132fa355d4a6b36d2c429004af
extra : histedit_source : e385d8d7b609985ff29d8c9ff2d9ed55fc58bb85%2Ce8fb5de30938510a2b5d6a709b051e754a9ebc54
2018-01-12 00:53:31 -05:00
Gijs Kruitbosch
1f11d6af6f Bug 1426250 - make tests actually pass valid mouse coordinates when testing Customize Mode, r=jaws
MozReview-Commit-ID: IglKedBqrWQ

--HG--
extra : rebase_source : a388f02b8d5e00f7e670f41d049518be1de370dc
extra : histedit_source : 8f79f40d24f5456e22787a169cc9f6ae21c03c1e
2018-01-05 21:35:27 +00:00
Gijs Kruitbosch
6f12989f12 Bug 1426250 - allow changing log preference at runtime for CUI.jsm, r=jaws
MozReview-Commit-ID: 9kYBC27wowg

--HG--
extra : rebase_source : 014c898dff8b446cbaa87e1567b644a66dfe5b53
extra : histedit_source : 9e16d035a25f195c2e67278a4ecc7ff4fe07aaab
2018-01-05 21:31:53 +00:00