Commit Graph

520085 Commits

Author SHA1 Message Date
Nicholas Nethercote
5b394d20a8 Bug 1338957 (part 2) - Remove out-of-date comment. r=mstange.
Bug 1337189 part 17 was the change that made this comment no longer true.
2017-02-13 16:36:25 +11:00
Nicholas Nethercote
b623b482a6 Bug 1338957 (part 1) - Reformat PseudoStack.h. r=mstange.
This patch:

- Reformats PseudoStack.h to more closely follow Mozilla style.

- Rewrites some comments to make them more readable, e.g. by properly
  delimiting sentences with upper-case letters and full stops.

- Replaces sMin() with std::min(), because <algorithm> no longer causes
  problems.

- Reorders PseudoStack so that all the data members are at the end, which makes
  them easier to see.
2017-02-13 16:36:25 +11:00
William Chen
7690af08a2 Bug 1332511 - Adjust telemetry histograms for time to first input probes. r=jwatt, data=bsmedberg 2017-01-31 21:49:06 -07:00
Jonathan Kew
e3da20fa36 Bug 1315752 - Avoid using LookupLocalFont to find the Osaka-Mono face in InitSingleFaceList, so we don't risk triggering a font-download prompt. r=mstange
The issue is that with Osaka becoming a downloadable asset rather than a
    universally pre-installed font, it's possible for a user's system to be in
    a state where the Osaka-Regular face is present (and therefore the Osaka
    family shows up in the main font family list), but Osaka-Mono has still not
    been downloaded. Until recently, I wasn't aware that the family could be in
    that partially-installed state, but apparently it does happen (perhaps
    depending on how the download was originally triggered).

    The download prompt then occurs when we use LookupLocalFont() to find the
    Osaka-Mono face, because that calls CGFontCreateWithFontName, which is
    aware of the downloadable font assets; so when it is asked for Osaka-Mono,
    and sees that it hasn't been downloaded, it offers to help out.

    We tried to avoid this by checking for the presence of the Osaka family
    before calling LookupLocalFont(), and that solved things for most users
    (where the Osaka family was either fully installed or not installed at
    all), but it fails in the case where the Regular face is present but Mono
    isn't.

    So this patch works around that by avoiding LookupLocalFont (and therefore
    CGFontCreateWithFontName) altogether, and instead searching the faces
    actually present in the main Osaka family. If Osaka-Mono is installed, it
    will be found there and we can then duplicate its font entry and create the
    separate Osaka-Mono family; and if not, we safely (and silently) ignore it.
2017-02-13 21:47:16 +00:00
Sebastian Hengst
3ce82bcd4f Backed out changeset 45dd83a63162 (bug 1339202) for crashing in image processing related tests, e.g. xpcshell test test_imgtools.js. r=backout 2017-02-13 22:34:54 +01:00
Boris Zbarsky
e1822e6a63 Bug 1306170 part 6. Implement WindowOrWorkerGlobalScope.origin. r=bkelly 2017-02-13 16:06:47 -05:00
Boris Zbarsky
19cf0c0f4e Bug 1306170 part 5. Run the HTML interfaces web platform test in workers as well as windows. r=bkelly 2017-02-13 16:06:46 -05:00
Boris Zbarsky
83b7e32013 Bug 1306170 part 4. Fix idlharness to properly handle FrozenArray return types. r=bkelly 2017-02-13 16:06:46 -05:00
Boris Zbarsky
0de977d491 Bug 1306170 part 3. Fix idlharness to properly handle single-element exposure sets on interfaces and exposure sets on members. r=bkelly
This is fixing two problems.

1) Consider this interface:

  [Exposed=(Window,Worker)]
  interface Foo {
    [Exposed=(Window)]
    void someMethod();
  };

Without these changes, idlharness will check for a someMethod method on
Foo.prototype in all globals where the Foo interface is exposed, and will fail
in a worker, because someMethod is not exposed there.  That's what the blocks
ending with "continue" in IdlInterface.prototype.test_members and
IdlInterface.prototype.test_interface_of fix.  This needs the "default_set"
argument to exposure set computation, because if there isn't any exposure set
specified on a member, it gets the exposure set of its interface.


2)  Consider this interface:

  [Exposed=SharedWorker]
  interface Foo {
  };

The code without these changes does:

        var globals = exposed.length === 1
                    ? exposed[0].rhs.value
                    : ["Window"];

which sets "globals" to the _string_ "SharedWorker".  Then it does
member.exposed = exposed_in(globals).  expose_in tries to figure out which sort
of global we're running in.  The interesting part is _just_ visible in the
context in the diff.  Say we're running in a dedicated worker.  Then this test:

     if ('DedicatedWorkerGlobalScope' in self &&
         self instanceof DedicatedWorkerGlobalScope) {

tests true and this return value:

         return globals.indexOf("Worker") >= 0 ||
                globals.indexOf("DedicatedWorker") >= 0;

returns true, because if you recall the variable globals is the _string_
"SharedWorker", so globals.indexOf("Worker") >= 0.  Yay Python typing.

The fix for this is to make sure that globals ends up as the _list_
["SharedWorker"] in this case, so our indexOf checks in exposed_in do the right
things.  That's the:

    if (typeof set == "string") {
        set = [ set ];

bit.
2017-02-13 16:06:46 -05:00
Boris Zbarsky
198ac838ce Bug 1306170 part 2. Split the IDLs out of the HTML interfaces web platform test so we can run it in both windows and workers. r=bkelly
--HG--
rename : testing/web-platform/tests/html/dom/interfaces.html => testing/web-platform/tests/html/dom/resources/interfaces.idl
rename : testing/web-platform/tests/html/dom/interfaces.html => testing/web-platform/tests/html/dom/resources/untested-interfaces.idl
2017-02-13 16:06:46 -05:00
Boris Zbarsky
8bf1ca33e7 Bug 1306170 part 1. Change the HTML general interfaces web platform test to have WindowOrWorkerGlobalScope. r=bkelly 2017-02-13 16:06:45 -05:00
Boris Zbarsky
d7e6d48b2f Bug 1338725 part 2. Move GetClasses/DoGetClasses from nsIContent to Element. r=baku 2017-02-13 16:06:45 -05:00
Boris Zbarsky
4d33eb6307 Bug 1338725 part 1. Change the matcher functions used for nsContentList to take an Element argument, not nsIContent. r=baku 2017-02-13 16:06:45 -05:00
Andrew Osmond
1683b602b4 Bug 1339202 - Decode images to shared surfaces for WebRender. r=tnikkel 2017-02-08 15:48:59 -05:00
Markus Stange
482895edd5 Bug 1335337 - Restrict special <button type="menu"> theming to XUL <button> elements. r=Enn
MozReview-Commit-ID: 8qqsQMroTS

--HG--
extra : rebase_source : 56efe694cf8ab2d2a8a109277e5b77e1a71c2529
extra : amend_source : 245f569ffe87ff833c2d56efc65cd35a9f3bbf04
2017-02-10 13:20:19 -05:00
Sebastian Hengst
ebe4ae4dc3 Backed out changeset c27179ee59e9 (bug 1339129) for failing xpcshell tests netwerk/cookie/test/unit_ipc/test_ipc_parser_0001.js and test_ipc_parser_0019.js. r=backout 2017-02-13 21:23:52 +01:00
Michael Layzell
0515563c38 Bug 1339153 - Part 2: Add a test to ensure that view-source pages are not loaded as though they have a Large-Allocation header, r=smaug
MozReview-Commit-ID: CDYNC6UDScJ
2017-02-13 14:42:24 -05:00
Michael Layzell
a71fd85f7d Bug 1339153 - Part 1: Correctly emulate missing headers in nsViewSourceChannel::GetResponseHeader, r=bz
MozReview-Commit-ID: 34bCA7wKkmh
2017-02-13 14:42:24 -05:00
Trevor Saunders
570037515c bug 1339128 - reference parent proxy by id r=eeejay 2017-02-13 14:52:07 -05:00
Ehsan Akhgari
cbdcae43c2 Bug 1339129 - Remove access to HTTP-only cookies from the child process; r=jdm 2017-02-13 14:08:38 -05:00
Andrew Osmond
42d8ee76ab Bug 1290293 - Part 2f. Assert there is no frame on the finish decoding error path. r=tnikkel 2017-02-10 08:33:11 -05:00
Andrew Osmond
e7ce25346c Bug 1290293 - Part 2c. Make nsGIFDecoder2 use B8G8R8X8 only for unpaletted frames. r=tnikkel 2016-11-03 10:32:21 -04:00
Jan de Mooij
b05dcaf0a2 Bug 1338894 - Rewrite NurseryAwareHashMap to speed up WrapperMap sweeping. r=jonco 2017-02-13 19:11:19 +01:00
Sebastian Hengst
8caccb81dd Backed out changeset f4f59e7c1be7 (bug 1337543) for crashing in various mochitest and web-platform-tests, e.g. dom/security/test/csp/test_child-src_worker.html. r=backout on a CLOSED TREE 2017-02-13 19:00:56 +01:00
Sebastian Hengst
ed19785e65 Backed out changeset 2f2511d69d2e (bug 1337543) 2017-02-13 19:00:01 +01:00
Sebastian Hengst
6d0a01350d Backed out changeset c0157164852c (bug 1337543) 2017-02-13 18:59:57 +01:00
Sebastian Hengst
72db5e922e Backed out changeset 9e09a36b7c0c (bug 1337543) 2017-02-13 18:59:52 +01:00
Sebastian Hengst
c88c3d119a Backed out changeset a8b7ae2ed577 (bug 1337543) 2017-02-13 18:59:48 +01:00
Sebastian Hengst
db434480b3 Backed out changeset 901f0df29f8f (bug 1337543) 2017-02-13 18:59:44 +01:00
Sebastian Hengst
fe52a15c05 Backed out changeset 7508565a3a0d (bug 1337543) 2017-02-13 18:59:39 +01:00
Paolo Amadini
279b83bca6 Bug 1333741 - Add tests for temporary permissions when reloading all the pages using the tab context menu. r=johannh
MozReview-Commit-ID: CNjj57WCTc1

--HG--
extra : rebase_source : 9f91766de9d0dd2c3faf6549626ecf7ab0134e79
2017-02-10 14:13:20 +00:00
Jonathan Kew
17fb7377be Bug 1339119 - Actually use the locale from macOS instead of throwing it away in OSPreferences::ReadSystemLocales. r=gandalf 2017-02-13 17:51:13 +00:00
Ben Kelly
e0636b2dca Bug 1337543 P7 Update WPT test expectations now that CSP is applied in service workers. r=baku 2017-02-13 12:15:59 -05:00
Ben Kelly
414b756468 Bug 1337543 P6 Persist response headers for offlined service worker scripts. r=baku 2017-02-13 12:15:59 -05:00
Ben Kelly
7529d95c7c Bug 1337543 P5 Move code to fill InternalHeaders from an nsIChannel response into utility method. r=baku 2017-02-13 12:15:59 -05:00
Ben Kelly
7a88545b94 Bug 1337543 P4 Apply CSP headers to ServiceWorker when loading offlined script. r=baku 2017-02-13 12:15:59 -05:00
Ben Kelly
30ce58b092 Bug 1337543 P3 Factor out code to set WorkerPrivate CSP from headers. r=baku 2017-02-13 12:15:58 -05:00
Ben Kelly
c1df3df72e Bug 1337543 P2 Improve ServiceWorker asserts and verify load principal does not inherit CSP. r=baku 2017-02-13 12:15:58 -05:00
Ben Kelly
2a1682f2ee Bug 1337543 P1 ServiceWorker should not inherit CSP from registration principal. r=baku 2017-02-13 12:15:58 -05:00
Jan de Mooij
a196f8f3a1 Bug 1337024 part 2 - Port Baseline stubs for adding dense/unboxed elements to CacheIR. r=evilpie 2017-02-13 17:38:51 +01:00
Tom Schuster
39312086de Bug 1339036 - Rename JSTYPE_VOID to JSTYPE_UNDEFINED. r=arai 2017-02-13 17:26:16 +01:00
Ryan VanderMeulen
750fff80d2 Backed out changeset f1dd3438f8b5 (bug 1168376) for ESLint failures. 2017-02-13 11:23:40 -05:00
Leonardo Couto
fb1a32612f Bug 1168376 - Show transferred size in request summary. r=Honza 2017-02-09 01:30:31 +01:00
Stone Shih
2d032dc8f3 Bug 1337619 - Reset mGoingToDispatchAllMessages flag before early return. r=baku
MozReview-Commit-ID: LWKfJQ86A3W
2017-02-03 10:27:55 +08:00
Julian Hector
3610edb99c Bug 1329216 - Move default printer name querying. r=bobowen 2017-02-13 13:08:20 +01:00
Julian Hector
94cad21ec7 Bug 1329216 - Pass default printer name to child. r=mconley 2017-02-13 13:07:44 +01:00
André Bargull
da565844f3 Bug 1339031 - Part 2: Remove unneeded version calls from non-standard tests. r=evilpie 2017-02-13 03:03:15 -08:00
André Bargull
4662d3495a Bug 1339031 - Part 1: Use the default JavaScript version in standard tests. r=evilpie 2017-02-13 03:04:26 -08:00
André Bargull
23bfe02cd8 Bug 1339030 - Don't skip tests using detachArrayBuffer when running in browser. r=evilpie 2017-02-13 03:06:36 -08:00
André Bargull
b550bb939c Bug 1339029 - Remove unused parameter from internal DataView read/write methods. r=evilpie 2017-02-13 03:05:23 -08:00