Commit Graph

629650 Commits

Author SHA1 Message Date
Emilio Cobos Álvarez
006a4ab94a Bug 1516366 - Move nsOnloadBlocker and nsDocumentOnStack to nsDocument.cpp, and shrink nsDocument.h to the minimmum. r=smaug
This needs to add a few of includes in other places which were relying on the
massive (now gone) list in nsDocument.h.

I also needed to move an AnimationTimeline destructor out of line because it
relied on dom::Animation being defined, yet Animation.h includes
AnimationTimeline.h, so include hell.

Differential Revision: https://phabricator.services.mozilla.com/D15366
2018-12-29 20:41:42 +01:00
Emilio Cobos Álvarez
b833919871 Bug 1516366 - Move CC / nsISupports bits to nsIDocument. r=smaug
This allows us to remove the MOZ_CRASH-ing implementation I added earlier in
this series.

Differential Revision: https://phabricator.services.mozilla.com/D15365
2018-12-29 20:41:41 +01:00
Emilio Cobos Álvarez
e3568cb8ad Bug 1516366 - Move NS_DOCUMENT_NOTIFY_OBSERVERS to nsIDocument.h. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D15364
2018-12-29 20:41:40 +01:00
Emilio Cobos Álvarez
1165f7d4ed Bug 1516366 - Move CloneDocHelper to nsIDocument. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D15363
2018-12-29 20:41:39 +01:00
Emilio Cobos Álvarez
f7401d4d89 Bug 1516366 - Move Init, Destroy and RemovedFromDocShell to nsIDocument. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D15362
2018-12-29 20:41:38 +01:00
Emilio Cobos Álvarez
6d77395190 Bug 1516366 - Move BlockOnload and UnlockOnload to nsIDocument, and devirtualize them. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D15361
2018-12-29 20:41:37 +01:00
Emilio Cobos Álvarez
a9e10105d5 Bug 1516366 - Move EventTarget methods to nsIDocument. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D15360
2018-12-29 20:41:36 +01:00
Emilio Cobos Álvarez
d66facd45a Bug 1516366 - Move various miscellaneous methods from nsDocument to nsIDocument. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D15359
2018-12-29 20:41:35 +01:00
Emilio Cobos Álvarez
aab2c27c3e Bug 1516366 - Merge nsIDocument::DocAddSizeOfExcludingThis and nsDocument::DocAddSizeOfExcludingThis. r=smaug
No point in having both really.

Differential Revision: https://phabricator.services.mozilla.com/D15358
2018-12-29 20:41:34 +01:00
Emilio Cobos Álvarez
e2c716a29d Bug 1516366 - Move mExpandoAndGeneration from nsDocument to nsIDocument. r=smaug
Now that bindgen can represent it properly (bug 1516365) we can do this.

Differential Revision: https://phabricator.services.mozilla.com/D15357
2018-12-29 20:41:33 +01:00
Emilio Cobos Álvarez
97ceb59666 Bug 1516366 - Move some setters from nsDocument to nsIDocument. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D15356
2018-12-29 20:41:32 +01:00
Emilio Cobos Álvarez
8dae1360c2 Bug 1516366 - Move some static functions from nsDocument to nsIDocument. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D15355
2018-12-29 20:41:31 +01:00
Emilio Cobos Álvarez
dce45c2cad Bug 1516366 - Remove unused declaration. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D15354
2018-12-29 20:41:30 +01:00
Emilio Cobos Álvarez
5952097059 Bug 1516366 - Remove unused mFirstBaseNodeWithHref member. r=smaug
This is done via SetBaseURIUsingFirstBaseWithHref now.

Differential Revision: https://phabricator.services.mozilla.com/D15353
2018-12-29 20:41:29 +01:00
Emilio Cobos Álvarez
f131713362 Bug 1516366 - Move base classes from nsDocument to nsIDocument. r=smaug
This is a big step in order to merge both.

Also allows to remove some very silly casts, though it causes us to add some
ToSupports around to deal with ambiguity of casts from nsIDocument to
nsISupports, and add a dummy nsISupports implementation that will go away later
in the series.

Differential Revision: https://phabricator.services.mozilla.com/D15352
2018-12-29 20:41:28 +01:00
Emilio Cobos Álvarez
ecc88f298e Bug 1516366 - Remove uses of nsCOMArray<nsIDocument>. r=bzbarsky,smaug
Just use nsTArray. They're used to keep an array of strong references to
documents, and never use nsISupports-specific methods.

Plus they're are allocated on the stack so it should be safe to access them via
ranged for, so do that.

This is needed because nsCOMArray<T> depends on the cast from T to nsISupports
not to be ambiguous. I could fix that if needed, but it seems easier to just not
use it in these two cases.

Differential Revision: https://phabricator.services.mozilla.com/D15351
2018-12-29 20:41:20 +01:00
Emilio Cobos Álvarez
4fd57b7de3 Bug 1516366 - Sprinkle some ToSupports around xpcom. r=froydnj
This will be needed for the next patches since the cast from nsIDocument* to
nsISupports* will become ambiguous, and I don't really want to replace all users
of nsCOMPtr<nsIDocument> with RefPtr.

We have ToSupports to handle this, so use it.

Differential Revision: https://phabricator.services.mozilla.com/D15350
2018-12-29 20:37:35 +01:00
Timothy Guan-tin Chien
543ccba485 Bug 1516763 - Remove the feature to set a direction on the "richlistbox" element. r=NeilDeakin
This reverts the change implemented in bug 490178 in preparation for removing the inner scrollbox of the "richlistbox" binding.

--HG--
rename : toolkit/content/tests/chrome/test_richlist_direction.xul => toolkit/content/tests/chrome/test_richlistbox.xul
extra : rebase_source : 2a769cb8e47432574c47ba6565467c33ad3831bc
2018-12-29 13:05:04 +00:00
Coroiu Cristina
2edc28a37f Backed out 2 changesets (bug 1064172) for Wr failures at /css/css-text/boundary-shaping/boundary-shaping-010.html
Backed out changeset 8126c43fb9e7 (bug 1064172)
Backed out changeset 107a4383fa0c (bug 1064172)
2018-12-29 16:43:23 +02:00
Jonathan Kew
49f58b6031 Bug 1064172 - Add WPT reftests for properties that inhibit text shaping across inline element boundaries. r=jwatt
--HG--
rename : layout/reftests/fonts/LinLibertine_Re-4.7.5.woff => testing/web-platform/tests/css/css-text/boundary-shaping/resources/LinLibertine_Re-4.7.5.woff
2018-12-04 23:48:33 -05:00
Jonathan Kew
9ce81d127e Bug 1064172 - Prevent shaping across element boundaries when margin/border/padding is present, vertical-align is not 'baseline', or there is a bidi isolation boundary. r=jwatt 2018-12-05 00:27:47 -05:00
Daniel Varga
d9fb185f5b Merge mozilla-central to mozilla-inbound. a=merge 2018-12-29 11:43:43 +02:00
Daniel Varga
732a632f8d Merge mozilla-inbound to mozilla-central. a=merge 2018-12-29 11:35:40 +02:00
longsonr
6f0b15e90a Bug 1516551 - Part 3 fix comment to refer to the correct class name r=dholbert 2018-12-29 09:18:38 +00:00
longsonr
7072a2b798 Bug 1516551 - Part 2 rename nsSVGTransform to SVGTransform r=dholbert
--HG--
rename : dom/svg/nsSVGTransform.cpp => dom/svg/SVGTransform.cpp
rename : dom/svg/nsSVGTransform.h => dom/svg/SVGTransform.h
2018-12-29 09:15:40 +00:00
Bogdan Tara
ddb8707cbc Backed out changeset 2b4dd7891375 (bug 1510296) for build bustages CLOSED TREE 2018-12-29 07:30:23 +02:00
Michael Kaply
8c84b2b25d Bug 1510296 - Update Google search for new codes. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D13087

--HG--
extra : moz-landing-system : lando
2018-12-28 22:26:06 +00:00
Bogdan Tara
6defca7262 Backed out 5 changesets (bug 1513681) for browser_autoplay_blocked.js failures CLOSED TREE
Backed out changeset d24ddb803761 (bug 1513681)
Backed out changeset 6f52b229d953 (bug 1513681)
Backed out changeset 79a78732c3ac (bug 1513681)
Backed out changeset d0a9422928ae (bug 1513681)
Backed out changeset 23b5a58e3bcc (bug 1513681)

--HG--
rename : toolkit/actors/AutoplayChild.jsm => toolkit/actors/AudibleAutoplayChild.jsm
2018-12-29 04:00:53 +02:00
Tom Prince
80d4fb46b9 No bug: [taskgraph] Don't set optimize_target_tasks by branch; r=dustin
The only branch where it set differently is `try`/`try-comm-central`, but it gets
overriden there in `set_try_config`.

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

--HG--
extra : moz-landing-system : lando
2018-12-28 21:13:48 +00:00
alwu
8e9ac45c53 Bug 1513681 - part5 : remove event 'AudibleAutoplayMediaOccurred'. r=jaws
This event is used for shield-study which has finished, so we could remove it.

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

--HG--
extra : moz-landing-system : lando
2018-12-21 19:01:10 +00:00
alwu
52780efeaa Bug 1513681 - part4 : remove the logic about setting globally blocked in PermissionUI. r=daleharvey
We've handle showing the blocking icon in patch2, so we don't need to set block permission in PermissionUI.

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

--HG--
extra : moz-landing-system : lando
2018-12-28 22:24:13 +00:00
alwu
c498537436 Bug 1513681 - part3 : rename 'AudibleAutoplayChild' actor r=jaws
Use more proper name for actor which will handle all autoplay related events.

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

--HG--
rename : toolkit/actors/AudibleAutoplayChild.jsm => toolkit/actors/AutoplayChild.jsm
extra : moz-landing-system : lando
2018-12-21 19:00:40 +00:00
alwu
efdf530254 Bug 1513681 - part2 : handle 'GloballyAutoplayBlocked' event r=jaws,daleharvey
Handle the process from receiving event to showing the block icon.

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

--HG--
extra : moz-landing-system : lando
2018-12-28 09:12:44 +00:00
alwu
6f035acde6 Bug 1513681 - part1 : dispatch 'GloballyAutoplayBlocked' event when site is permanent blocked. r=cpearce,smaug
This event is used to notify tab that this site is permanently blocked and we should show the blocking icon for it. Patch2 will handle following details.

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

--HG--
extra : moz-landing-system : lando
2018-12-18 18:11:56 +00:00
Bogdan Tara
d2a41cb853 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-12-28 23:53:12 +02:00
Bogdan Tara
fff0a1f4f9 Merge inbound to mozilla-central. a=merge 2018-12-28 23:50:12 +02:00
longsonr
2ea3c4dbf3 Bug 1516551 - Part 1 rename SVGTransform to DOMSVGTransform r=dholbert
--HG--
rename : dom/svg/SVGTransform.cpp => dom/svg/DOMSVGTransform.cpp
rename : dom/svg/SVGTransform.h => dom/svg/DOMSVGTransform.h
2018-12-28 17:20:15 +00:00
Sylvestre Ledru
cccdda3c2a Bug 1516555 - Reformat everything to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2018-12-28 15:48:06 +00:00
Vedant Nevetia
b8a81425e5 Bug 1514181 - Replace browser/themes/osx/toolbarbutton-dropmarker{,@2x}.png with arrow-dropdown-12.svg r=dao
Differential Revision: https://phabricator.services.mozilla.com/D15406

--HG--
extra : moz-landing-system : lando
2018-12-28 15:27:21 +00:00
Vedant Nevetia
327f6bb31a Bug 1514175 - Remove macOS fallback styling for the bookmarking panel tag selector checkboxes r=dao
Differential Revision: https://phabricator.services.mozilla.com/D15468

--HG--
extra : moz-landing-system : lando
2018-12-28 15:22:49 +00:00
Vlad Baicu
b0e869dfdd Bug 1515966 - Download notification click action now opens about:downloads. r=sdaswani
Differential Revision: https://phabricator.services.mozilla.com/D15215

--HG--
extra : moz-landing-system : lando
2018-12-28 14:50:38 +00:00
Jan-Ivar Bruaroey
cbb94950ec Bug 1321221 - Delay getDisplayMedia() promise until first frame arrives, to pass wpt. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D15283

--HG--
extra : moz-landing-system : lando
2018-12-28 03:13:11 +00:00
Jan-Ivar Bruaroey
c8bbcb8047 Bug 1321221 - Implement getDisplayMedia() and update related wpt tests. r=pehrsons,smaug
Differential Revision: https://phabricator.services.mozilla.com/D15058

--HG--
extra : moz-landing-system : lando
2018-12-28 03:12:57 +00:00
Rob Wood
ddd69f99e8 Bug 1504013 - Add the ability to measure loadtime in raptor, and use loadtime as the overall test result for tp6 suites; r=jmaher,acreskey
Differential Revision: https://phabricator.services.mozilla.com/D14306

--HG--
extra : moz-landing-system : lando
2018-12-27 21:35:13 +00:00
Margareta Eliza Balazs
cb6d56ac9c Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-12-28 11:38:42 +02:00
Margareta Eliza Balazs
7a922172a9 Merge inbound to mozilla-central. a=merge 2018-12-28 11:29:35 +02:00
Masayuki Nakano
6ea1231fae Bug 1498823 - Make KeymapWrapper::FilterEvents() ignore synthesized KeyPress events r=m_kato
With an event filter method, we're logging all key events on any widgets to
check whether a key is pressed or not, to set
WidgetKeyboardEvent::mIsRepeat properly.  If iBus and Fcitx work as expected,
they synthesize key events with setting their own modifier state which indicate
the events are synthesized by IME.  In this expected case, synthesized key
events are not caught by the filter.

On the other hand, in some environment, they keep handling key events
asynchronously but they or something another module synthesizes key events
without the flag and such events are caught by the filter because the events
are posted into the event queue.  Therefore, we decide that such synthesized
events are always generated by auto-repeat (first events which are always
filtered by IME are treated as first press, and then, synthesized events are
treated as repeated events because of no key release events).

This patch makes KeymapWrapper::FilterEvents() ignore coming KeyPress
events if:
- the time is exactly same as previous KeyPress event
- and IMContextWrapper instance is now waiting a GDK_KEY_PRESS event
- and hardware_keycode of waiting GDK_KEY_PRESS event is same as
  keyCode of the KeyPress event

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

--HG--
extra : moz-landing-system : lando
2018-12-28 07:02:05 +00:00
Cameron McCormack
220a9b83b3 Bug 1516493 - Use process count for AWSY page load count and explicitly drop the preallocated process r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D15397

--HG--
extra : moz-landing-system : lando
2018-12-28 03:41:05 +00:00
Daniel Holbert
bb0c446650 Bug 1516576: Adjust dom/svg/*.cpp files to include their own header first. r=longsonr
Differential Revision: https://phabricator.services.mozilla.com/D15443

--HG--
extra : moz-landing-system : lando
2018-12-28 02:47:10 +00:00
Ting-Yu Lin
af42705511 Bug 1508762 Part 2 - Fix a restyle bug if there's column-span:all under ib-split setting. r=dholbert
This is to prevent Part 1 from breaking
testing/web-platform/tests/css/css-multicol/multicol-span-all-restyle-002.html

After introducing Part 1, we now use CreateContinuingFrame() to create
non-column-span wrapper frames, which use nsFrame::Init() rather than
InitAndRestoreFrame() to initialize them. Because the bits in
aState.mAdditionalStateBits are added to frames only when
nsCSSFrameConstructor::InitAndRestoreFrame() is called. We need a new
way to add the NS_FRAME_PART_OF_IBSPLIT to non-column-span wrapper
frames.

Note that we used to add NS_FRAME_PART_OF_IBSPLIT to both column-span
wrapper and non-column-span wrapper. After this patch, column-span
wrapper won't have NS_FRAME_PART_OF_IBSPLIT. That's fine because
column-span wrappers are not linked with other frames and they
shouldn't get this bit set.

Depends on D15134

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

--HG--
extra : moz-landing-system : lando
2018-12-28 02:25:40 +00:00