summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/Bindings/NavigatorObject.h
AgeCommit message (Collapse)Author
2020-07-23LibJS: Simplify Cell::initialize()Andreas Kling
Remove the Interpreter& argument and pass only GlobalObject&. We can find everything we need via the global object anyway.
2020-06-21LibJS+LibWeb: Add JS::Object::inherits(class_name)Andreas Kling
To allow implementing the DOM class hierarchy in JS bindings, this patch adds an inherits() function that can be used to ask an Object if it inherits from a specific C++ class (by name). The necessary overrides are baked into each Object subclass by the new JS_OBJECT macro, which works similarly to C_OBJECT in LibCore. Thanks to @Dexesttp for suggesting this approach. :^)
2020-06-20LibWeb: Split JS wrapper constructors into construct/initializeAndreas Kling
2020-06-20LibJS: Pass GlobalObject& to native functions and property accessorsAndreas Kling
More work towards supporting multiple global objects. Native C++ code now get a GlobalObject& and don't have to ask the Interpreter for it. I've added macros for declaring and defining native callbacks since this was pretty tedious and this makes it easier next time we want to change any of these signatures.
2020-05-21LibWeb: Send User-Agent in HTTP requestsAndreas Kling
Coming soon to a Browser Market Share graph near you! :^)
2020-04-03LibWeb: Add "navigator" object and expose navigator.userAgentAndreas Kling
A lot of web content looks for this property. We'll probably have to tweak this as we go, but at least now we have it. :^)