Closed Bug 1273203 Opened 8 years ago Closed 8 years ago

Remove the getStructuredData API from BrowserElement

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla49
Tracking Status
firefox49 --- fixed

People

(Reporter: bzbarsky, Assigned: bzbarsky)

References

Details

(Whiteboard: btpp-active)

Attachments

(1 file)

It's not used, and it's using the microdata API, which we want to remove.
Blocks: 909633
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
Comment on attachment 8753031 [details] [diff] [review]
Remove the getStructuredData API from BrowserElement

Review of attachment 8753031 [details] [diff] [review]:
-----------------------------------------------------------------

> Cu.import("resource://gre/modules/Task.jsm");
> Cu.import("resource://gre/modules/Microformats.js");

Can be removed too.
Basically I think you can revert the changes in bug 1195801.

::: dom/browser-element/BrowserElementChildPreload.js
@@ -1696,1 @@
>    _processMicroformatValue(field, value) {

_processMicroformatValue() and _processMicroformatItem() can be removed too.

::: dom/browser-element/BrowserElementParent.js
@@ -1207,5 @@
>        });
>      return req;
>    },
>  
> -  getStructuredData: defineDOMRequestMethod('get-structured-data'),

Also need to remove the "got-structured-data": this._gotDOMRequestResult entry in mmCalls.
Attachment #8753031 - Flags: review?(kchen) → review+
> _processMicroformatValue() and _processMicroformatItem() can be removed too.

Ah, good catch.  Removed those and the other bits.
Hmm.  The try run at https://treeherder.mozilla.org/#/jobs?repo=try&revision=c709f2ecdcfc didn't have those issues, so I assume they come from addressing the review comments in comment 3.  :(

And indeed, those failing runs have stuff like:

07:56:03     INFO -  JavaScript error: chrome://global/content/BrowserElementChildPreload.js, line 1450: ReferenceError: Task is not defined

I thought I'd checked for uses of Task in there, but clearly I failed somehow.  :(  It needs to stay.
Whiteboard: btpp-active
https://hg.mozilla.org/mozilla-central/rev/6104a65d2bef
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
Flags: needinfo?(bzbarsky)
Er, the test support files?  Yes they should have.
Pushed by bzbarsky@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/16150ec04e4d
followup.  Remove now-unused test support files.
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: